---
title: "analyse/casing/inherited-method-case"
pagination: false
---

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

<RuleId id="analyse/casing/inherited-method-case" />

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

## Configuration

```toml title="pun.toml"
[analyse.rules]
"casing/inherited-method-case" = "on"
```

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

## Replaces

- [`WrongCaseOfInheritedMethodRule`](https://github.com/phpstan/phpstan-strict-rules#readme) (phpstan-classes)

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