---
title: "analyse/classes/invalid-implements"
pagination: false
---

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

<RuleId id="analyse/classes/invalid-implements" />

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-implements" = "on"
```

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

## Replaces

- [`ExistingClassesInClassImplementsRule`](https://phpstan.org/error-identifiers/class.nameCase) (phpstan-classes)
- [`classImplements.class`](https://phpstan.org/error-identifiers/classImplements.class) (phpstan)
- [`classImplements.enum`](https://phpstan.org/error-identifiers/classImplements.enum) (phpstan)
- [`classImplements.trait`](https://phpstan.org/error-identifiers/classImplements.trait) (phpstan)
- [`interface.notFound`](https://phpstan.org/error-identifiers/interface.notFound) (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)
