analyse/disallowed/constant
In the analyse-basic preset and every stricter one. Report only.
What it does
Reports uses of the constants and enum cases the config forbids (disallowedConstants, disallowedEnums).
Configuration
[analyse.rules]
"disallowed/constant" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ClassConstantUsages(phpstan-classes)ConstantUsages(phpstan-classes)disallowed.classConstant(phpstan-disallowed-calls)disallowed.constant(phpstan-disallowed-calls)