Skip to content

Commit

Permalink
Reconfigure PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Nov 21, 2024
1 parent 69f7d41 commit 7557775
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"scripts": {
"phpstan": "phpstan analyse src -c phpstan.neon --level=max --no-progress -vvv",
"phpstan": "phpstan analyse -c phpstan.neon --no-progress -vvv",
"cs-fix": "phpcbf",
"cs-check": "phpcs"
},
Expand Down
20 changes: 20 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
parameters:
level: max
paths:
- src
ignoreErrors:
-
message: '#^Implementing PHPStan\\Rules\\IdentifierRuleError is not covered by backward compatibility promise\. The interface might change in a minor PHPStan version\.$#'
identifier: phpstanApi.interface
count: 1
path: src/Rules/Error/SafeRuleError.php

-
message: '#^Implementing PHPStan\\Rules\\LineRuleError is not covered by backward compatibility promise\. The interface might change in a minor PHPStan version\.$#'
identifier: phpstanApi.interface
count: 1
path: src/Rules/Error/SafeRuleError.php

-
message: '#^Implementing PHPStan\\Rules\\RuleError is not covered by backward compatibility promise\. The interface might change in a minor PHPStan version\.$#'
identifier: phpstanApi.interface
count: 1
path: src/Rules/Error/SafeRuleError.php
includes:
- phpstan-safe-rule.neon

0 comments on commit 7557775

Please sign in to comment.