---
title: "lint/phpdoc/require-no-named-arguments"
pagination: false
---

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

<RuleId id="lint/phpdoc/require-no-named-arguments" />

Not in any set. Safe fix.

## What it does

There must be `@no-named-arguments` tag in PHPDoc of a class/enum/interface/trait.

## Configuration

```toml title="pun.toml"
[lint.rules]
"phpdoc/require-no-named-arguments" = "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 |
| --- | --- | --- | --- | --- |
| `description` | `string` | Any | `""` | `description` |
| `fix-attribute` | `bool` | Any | `true` | `fix_attribute` |
| `fix-internal` | `bool` | Any | `true` | `fix_internal` |

## Replaces

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