analyse/classes/invalid-property-declaration
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/invalid-property-declaration" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
PropertyInClassRule(phpstan-classes)property.abstract(phpstan)property.abstractFinal(phpstan)property.abstractNonHooked(phpstan)property.abstractPrivate(phpstan)property.abstractWithoutAbstractHook(phpstan)property.final(phpstan)property.finalPrivate(phpstan)property.finalPrivateHook(phpstan)property.hookReadOnly(phpstan)property.hookWithoutBody(phpstan)property.hookedStatic(phpstan)property.hooksNotSupported(phpstan)property.staticAsymmetricVisibility(phpstan)property.virtualDefault(phpstan)