analyse/classes/incompatible-override
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/incompatible-override" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
OverridingMethodRule(phpstan-classes)checkPhpDocMethodSignatures(phpstan-parameters)ImpureConstruct(mago-analyzer)ImpureStaticVariable(mago-analyzer)IncompatibleConstantOverride(mago-analyzer)IncompatibleConstantType(mago-analyzer)IncompatibleConstantVisibility(mago-analyzer)IncompatibleParameterCount(mago-analyzer)IncompatibleParameterType(mago-analyzer)IncompatiblePropertyOverride(mago-analyzer)IncompatiblePropertyReadonly(mago-analyzer)IncompatiblePropertyStatic(mago-analyzer)IncompatiblePropertyType(mago-analyzer)IncompatiblePropertyVisibility(mago-analyzer)IncompatibleReadonlyModifier(mago-analyzer)IncompatibleReturnType(mago-analyzer)IncompatibleStaticModifier(mago-analyzer)IncompatibleVisibility(mago-analyzer)MissingOverrideAttribute(mago-analyzer)impureFunction.pure(phpstan)impureMethod.pure(phpstan)impurePropertyHook.pure(phpstan)method.abstractOverridingNonAbstract(phpstan)method.childParameterType(phpstan)method.childReturnType(phpstan)method.deprecatedClass(phpstan)method.deprecatedEnum(phpstan)method.deprecatedInterface(phpstan)method.deprecatedTrait(phpstan)method.impure(phpstan)method.impureOverridePureUnlessCallable(phpstan)method.impureOverridePureUnlessParameterPassed(phpstan)method.internal(phpstan)method.internalClass(phpstan)method.internalEnum(phpstan)method.internalInterface(phpstan)method.internalTrait(phpstan)method.missingOverride(phpstan)method.nonStatic(phpstan)method.override(phpstan)method.parentMethodFinal(phpstan)method.parentMethodFinalByPhpDoc(phpstan)method.protected(phpstan)method.static(phpstan)method.tentativeReturnType(phpstan)method.visibility(phpstan)parameter.byRef(phpstan)parameter.missing(phpstan)parameter.notByRef(phpstan)parameter.notOptional(phpstan)parameter.notVariadic(phpstan)parameter.variadic(phpstan)