analyse/classes/incompatible-constant-override
In the analyse-basic preset and every stricter one. Report only.
What it does
Reports overrides of final constants, reduced constant visibility, and incompatible native or PHPDoc constant types. Native and PHPDoc covariance checks run with the essential preset and stricter presets.
Configuration
[analyse.rules]
"classes/incompatible-constant-override" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
OverridingConstantRule(phpstan-classes)OverrideFinalConstant(mago-analyzer)classConstant.final(phpstan)classConstant.missingNativeType(phpstan)classConstant.nativeType(phpstan)classConstant.type(phpstan)classConstant.visibility(phpstan)