---
title: "lint/phpdoc/add-missing-param"
pagination: false
---

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

<RuleId id="lint/phpdoc/add-missing-param" />

In the [`coding-style`](/docs/rules/sets/coding-style) set. Safe fix.

## What it does

PHPDoc should contain `@param` for all params.

## Configuration

```toml title="pun.toml"
[lint.rules]
"phpdoc/add-missing-param" = "error"
```

To skip it in some files, add an [override](/docs/configuration/pun-toml#lint) or a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `only-untyped` | `bool` | Any | `true` | `only_untyped` |

## Replaces

- [`phpdoc_add_missing_param_annotation`](https://cs.symfony.com/doc/rules/phpdoc/phpdoc_add_missing_param_annotation.html) (php-cs-fixer)

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