---
title: "lint/phpdoc/no-superfluous-tags"
pagination: false
---

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

<RuleId id="lint/phpdoc/no-superfluous-tags" />

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

## What it does

Removes `@param`, `@return` and `@var` tags that don't provide any useful information.

## Configuration

```toml title="pun.toml"
[lint.rules]
"phpdoc/no-superfluous-tags" = "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 |
| --- | --- | --- | --- | --- |
| `allow-hidden-params` | `bool` | Any | `false` | `allow_hidden_params` |
| `allow-mixed` | `bool` | Any | `false` | `allow_mixed` |
| `allow-unused-params` | `bool` | Any | `false` | `allow_unused_params` |
| `remove-inheritdoc` | `bool` | Any | `false` | `remove_inheritdoc` |

## Replaces

- [`no_superfluous_phpdoc_tags`](https://cs.symfony.com/doc/rules/phpdoc/no_superfluous_phpdoc_tags.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)
