---
title: "analyse/classes/invalid-interface-property"
pagination: false
---

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

<RuleId id="analyse/classes/invalid-interface-property" />

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

## Configuration

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

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

## Replaces

- [`PropertiesInInterfaceRule`](https://phpstan.org/error-identifiers/property.abstractFinalHook) (phpstan-classes)
- [`property.abstractFinalHook`](https://phpstan.org/error-identifiers/property.abstractFinalHook) (phpstan)
- [`property.abstractInInterface`](https://phpstan.org/error-identifiers/property.abstractInInterface) (phpstan)
- [`property.finalInInterface`](https://phpstan.org/error-identifiers/property.finalInInterface) (phpstan)
- [`property.hookBodyInInterface`](https://phpstan.org/error-identifiers/property.hookBodyInInterface) (phpstan)
- [`property.inInterface`](https://phpstan.org/error-identifiers/property.inInterface) (phpstan)
- [`property.nonHookedInInterface`](https://phpstan.org/error-identifiers/property.nonHookedInInterface) (phpstan)
- [`property.nonPublicInInterface`](https://phpstan.org/error-identifiers/property.nonPublicInInterface) (phpstan)
- [`property.readOnlyInInterface`](https://phpstan.org/error-identifiers/property.readOnlyInInterface) (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)
