Problem/Motivation

See https://git.drupalcode.org/project/search_exclude/-/jobs/4138033

Note: Using configuration file /builds/project/search_exclude/web/modules/custom/search_exclude/phpstan.neon.
 ------ ---------------------------------------------------------------------- 
  Line   src/Plugin/Search/SearchExcludeNodeSearch.php                         
 ------ ---------------------------------------------------------------------- 
  175    \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
 ------ ---------------------------------------------------------------------- 
 [ERROR] Found 1 error                                                          

Steps to reproduce

See https://git.drupalcode.org/project/search_exclude/-/jobs/4138033

Proposed resolution

Use dependency injection.

Remaining tasks

Merge request

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

trackleft2 created an issue. See original summary.

trackleft2’s picture

Status: Active » Needs review

baikho made their first commit to this issue’s fork.

baikho’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.