---
title: "analyse/types/missing-method-throws"
pagination: false
---

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

<RuleId id="analyse/types/missing-method-throws" />

In the [`analyse-max`](/docs/rules/presets/analyse-max) preset. Report only. Upstream gates: `exceptions.check.missingCheckedExceptionInThrows`.

## Configuration

```toml title="pun.toml"
[analyse.rules]
"types/missing-method-throws" = "on"
```

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

## Replaces

- [`MissingCheckedExceptionInMethodThrowsRule`](https://phpstan.org/error-identifiers/missingType.checkedException) (phpstan-classes)

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