Skip to content

Commit

Permalink
Ignore new static() PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
plopesc authored Jun 23, 2023
1 parent e1f9e87 commit 704721e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scaffold/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ includes:
- ../../../phpstan/phpstan-deprecation-rules/rules.neon

parameters:
ignoreErrors:
# new static() is a best practice in Drupal, so we cannot fix that.
- "#^Unsafe usage of new static#"
excludePaths:
- *sites/simpletest/*
- *default.settings.php
Expand Down

0 comments on commit 704721e

Please sign in to comment.