analyse/classes/inaccessible-class-constant
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/inaccessible-class-constant" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
AccessPrivateConstantThroughStaticRule(phpstan-classes)staticClassAccess.privateConstant(phpstan)