Address PHPStan Error

Created on 18 February 2025, about 1 month ago

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

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024