analyse/dead-code/impossible-type-check
In the analyse-recommended preset and every stricter one. Report only.
Configuration
[analyse.rules]
"dead-code/impossible-type-check" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ImpossibleCheckTypeFunctionCallRule(phpstan-classes)ImpossibleCondition(mago-analyzer)ImpossibleNullTypeComparison(mago-analyzer)ImpossibleTypeComparison(mago-analyzer)RedundantCondition(mago-analyzer)RedundantNonnullTypeComparison(mago-analyzer)RedundantTypeComparison(mago-analyzer)function.alreadyNarrowedType(phpstan)function.impossibleType(phpstan)