analyse/type-coverage/constant
In the analyse-basic preset and every stricter one. Report only.
What it does
Each constant declaration without a native type, while fewer than min percent (default 99) of the project’s constant declarations have one; measure = true reports the coverage instead.
Configuration
[analyse.rules]
"type-coverage/constant" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ConstantTypeCoverageRule(phpstan-classes)typeCoverage.constantTypeCoverage(type-coverage)