analyse/control-flow/switch-type-mismatch
In the analyse-strict preset and every stricter one. Report only. Upstream gates: strictRules.switchConditionsMatchingType.
Configuration
[analyse.rules]
"control-flow/switch-type-mismatch" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
MatchingTypeInSwitchCaseConditionRule(phpstan-classes)switch.type(phpstan-strict-rules)