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