analyse/dead-code/switch-always-constant
In the analyse-recommended preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.switchConditionAlwaysFalse).
Configuration
[analyse.rules]
"dead-code/switch-always-constant" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
SwitchConditionRule(phpstan-classes)switch.alwaysFalse(phpstan)switch.alwaysTrue(phpstan)switch.duplicateCase(phpstan)