analyse/classes/internal-static-property-access
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/internal-static-property-access" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
RestrictedStaticPropertyUsageRule(phpstan-classes)staticProperty.deprecatedClass(phpstan)staticProperty.deprecatedEnum(phpstan)staticProperty.deprecatedInterface(phpstan)staticProperty.deprecatedTrait(phpstan)staticProperty.internal(phpstan)staticProperty.internalClass(phpstan)staticProperty.internalEnum(phpstan)staticProperty.internalInterface(phpstan)staticProperty.internalTrait(phpstan)staticProperty.protected(phpstan)