Skip to content

Commit 7d0c546

Browse files
authored
Update PHPStan 2.0 (#22)
1 parent 82e0b38 commit 7d0c546

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require-dev": {
1717
"ergebnis/composer-normalize": "^2.0",
1818
"friendsofphp/php-cs-fixer": "^2.17",
19-
"phpstan/phpstan": "~0.12.0",
19+
"phpstan/phpstan": "^2.0",
2020
"phpunit/phpunit": "^9.2"
2121
},
2222
"autoload": {

phpstan.neon

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ parameters:
22
level: 7
33
paths: [ src ]
44
ignoreErrors:
5-
- '/If condition is always false/'
6-
- '/If condition is always true/'
7-
- '/Unreachable statement/'
8-
5+
- identifier: deadCode.unreachable
6+
- identifier: empty.offset
7+
- identifier: if.alwaysFalse
8+
- identifier: if.alwaysTrue
9+
- identifier: method.unused

0 commit comments

Comments
 (0)