---
title: "analyse/classes/incompatible-property-override"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="analyse/classes/incompatible-property-override" />

In the [`analyse-basic`](/docs/rules/presets/analyse-basic) preset and every stricter one. Report only.

## Configuration

```toml title="pun.toml"
[analyse.rules]
"classes/incompatible-property-override" = "on"
```

To skip it in some files or lines, add an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`OverridingPropertyRule`](https://phpstan.org/error-identifiers/property.abstractOverridingNonAbstractHook) (phpstan-classes)
- [`IncompatiblePropertyAccess`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`IncompatibleReadonlyModifier`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`IncompatibleStaticModifier`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`InvalidOverrideAttribute`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`InvalidStaticMethodCall`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`InvalidStaticPropertyAccess`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`property.abstractOverridingNonAbstractHook`](https://phpstan.org/error-identifiers/property.abstractOverridingNonAbstractHook) (phpstan)
- [`property.deprecatedClass`](https://phpstan.org/error-identifiers/property.deprecatedClass) (phpstan)
- [`property.deprecatedEnum`](https://phpstan.org/error-identifiers/property.deprecatedEnum) (phpstan)
- [`property.deprecatedInterface`](https://phpstan.org/error-identifiers/property.deprecatedInterface) (phpstan)
- [`property.deprecatedTrait`](https://phpstan.org/error-identifiers/property.deprecatedTrait) (phpstan)
- [`property.extraNativeType`](https://phpstan.org/error-identifiers/property.extraNativeType) (phpstan)
- [`property.internal`](https://phpstan.org/error-identifiers/property.internal) (phpstan)
- [`property.internalClass`](https://phpstan.org/error-identifiers/property.internalClass) (phpstan)
- [`property.internalEnum`](https://phpstan.org/error-identifiers/property.internalEnum) (phpstan)
- [`property.internalInterface`](https://phpstan.org/error-identifiers/property.internalInterface) (phpstan)
- [`property.internalTrait`](https://phpstan.org/error-identifiers/property.internalTrait) (phpstan)
- [`property.missingNativeType`](https://phpstan.org/error-identifiers/property.missingNativeType) (phpstan)
- [`property.nativeType`](https://phpstan.org/error-identifiers/property.nativeType) (phpstan)
- [`property.nonStatic`](https://phpstan.org/error-identifiers/property.nonStatic) (phpstan)
- [`property.notReadable`](https://phpstan.org/error-identifiers/property.notReadable) (phpstan)
- [`property.notWritable`](https://phpstan.org/error-identifiers/property.notWritable) (phpstan)
- [`property.override`](https://phpstan.org/error-identifiers/property.override) (phpstan)
- [`property.parentPropertyFinal`](https://phpstan.org/error-identifiers/property.parentPropertyFinal) (phpstan)
- [`property.parentPropertyFinalByPhpDoc`](https://phpstan.org/error-identifiers/property.parentPropertyFinalByPhpDoc) (phpstan)
- [`property.phpDocType`](https://phpstan.org/error-identifiers/property.phpDocType) (phpstan)
- [`property.protected`](https://phpstan.org/error-identifiers/property.protected) (phpstan)
- [`property.readOnly`](https://phpstan.org/error-identifiers/property.readOnly) (phpstan)
- [`property.readWrite`](https://phpstan.org/error-identifiers/property.readWrite) (phpstan)
- [`property.static`](https://phpstan.org/error-identifiers/property.static) (phpstan)
- [`property.visibility`](https://phpstan.org/error-identifiers/property.visibility) (phpstan)

[More analyse/classes rules](/docs/rules/analyse/classes) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
