analyse/classes/incompatible-property-override
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/incompatible-property-override" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
OverridingPropertyRule(phpstan-classes)IncompatiblePropertyAccess(mago-analyzer)IncompatibleReadonlyModifier(mago-analyzer)IncompatibleStaticModifier(mago-analyzer)InvalidOverrideAttribute(mago-analyzer)InvalidStaticMethodCall(mago-analyzer)InvalidStaticPropertyAccess(mago-analyzer)property.abstractOverridingNonAbstractHook(phpstan)property.deprecatedClass(phpstan)property.deprecatedEnum(phpstan)property.deprecatedInterface(phpstan)property.deprecatedTrait(phpstan)property.extraNativeType(phpstan)property.internal(phpstan)property.internalClass(phpstan)property.internalEnum(phpstan)property.internalInterface(phpstan)property.internalTrait(phpstan)property.missingNativeType(phpstan)property.nativeType(phpstan)property.nonStatic(phpstan)property.notReadable(phpstan)property.notWritable(phpstan)property.override(phpstan)property.parentPropertyFinal(phpstan)property.parentPropertyFinalByPhpDoc(phpstan)property.phpDocType(phpstan)property.protected(phpstan)property.readOnly(phpstan)property.readWrite(phpstan)property.static(phpstan)property.visibility(phpstan)