analyse/dead-code/impossible-static-type-check
In the analyse-recommended preset and every stricter one. Report only.
Configuration
[analyse.rules]
"dead-code/impossible-static-type-check" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ImpossibleCheckTypeStaticMethodCallRule(phpstan-classes)staticMethod.alreadyNarrowedType(phpstan)staticMethod.impossibleType(phpstan)