analyse/types/constant-value
In the analyse-essential preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.checkDynamicConstantNameValues).
Configuration
[analyse.rules]
"types/constant-value" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ValueAssignedToGlobalConstantRule(phpstan-classes)constant.value(phpstan)