Skip to content

Commit

Permalink
Update PHPStan 2.0 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe authored Nov 21, 2024
1 parent 82e0b38 commit 7d0c546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require-dev": {
"ergebnis/composer-normalize": "^2.0",
"friendsofphp/php-cs-fixer": "^2.17",
"phpstan/phpstan": "~0.12.0",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^9.2"
},
"autoload": {
Expand Down
9 changes: 5 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ parameters:
level: 7
paths: [ src ]
ignoreErrors:
- '/If condition is always false/'
- '/If condition is always true/'
- '/Unreachable statement/'

- identifier: deadCode.unreachable
- identifier: empty.offset
- identifier: if.alwaysFalse
- identifier: if.alwaysTrue
- identifier: method.unused

0 comments on commit 7d0c546

Please sign in to comment.