analyse/dead-code/impossible-instanceof
In the analyse-recommended preset and every stricter one. Report only.
Configuration
[analyse.rules]
"dead-code/impossible-instanceof" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ImpossibleInstanceOfRule(phpstan-classes)instanceof.alwaysFalse(phpstan)instanceof.invalidExprType(phpstan)