Skip to content
Snippets Groups Projects

Adding PHPStan ignore lines because we have to make static calls.

Closes #3517043

The comments in the code already address why we can't use dependency injection, which is causing PHPStan to fail.

// Can't use it with Dependency Injection because runs from script or

// hook_update_N where DI is not available.

Thus, I added the following above the lines to ignore. // @phpstan-ignore-next-line

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading