Skip to content

Commit f0f2c26

Browse files
committed
Bump to PHPStan ^2.1.32 and ignore false positive instanceof in OR usage
1 parent c2349bd commit f0f2c26

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"require-dev": {
1010
"phpstan/extension-installer": "^1.3",
11-
"phpstan/phpstan": "^2.1.30",
11+
"phpstan/phpstan": "^2.1.32",
1212
"phpstan/phpstan-webmozart-assert": "^2.0",
1313
"phpunit/phpunit": "^11.5",
1414
"rector/rector-src": "dev-main",

phpstan.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,12 @@ parameters:
6767

6868
- '#Asking about instanceof PHPStan\\.* is not covered by backward compatibility promise#'
6969
- '#Method Rector\\(.*?)\\Rector\\FuncCall\\(.*?)::refactor\(\) never returns \d so it can be removed from the return type#'
70+
71+
# false positive intanceof in OR usage
72+
-
73+
identifier: instanceof.alwaysTrue
74+
path: rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php
75+
76+
-
77+
identifier: deadCode.unreachable
78+
path: rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php

0 commit comments

Comments
 (0)