analyse/classes/enum-case-outside-enum
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/enum-case-outside-enum" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
EnumCaseOutsideEnumRule(phpstan-classes)enum.caseOutsideOfEnum(phpstan)