analyse/statements/magic-constant-out-of-context
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"statements/magic-constant-out-of-context" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
MagicConstantContextRule(phpstan-classes)magicConstant.outOfClass(phpstan)magicConstant.outOfFunction(phpstan)magicConstant.outOfNamespace(phpstan)magicConstant.outOfTrait(phpstan)