analyse/classes/constant-in-trait
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/constant-in-trait" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ConstantsInTraitsRule(phpstan-classes)classConstant.inTrait(phpstan)