---
title: "lint/refactor/rename-phpdoc-tag"
pagination: false
---

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

<RuleId id="lint/refactor/rename-phpdoc-tag" />

Not in any set. Safe fix.

## What it does

Renames PHPDoc tags.

## Configuration

```toml title="pun.toml"
[lint.rules]
"refactor/rename-phpdoc-tag" = "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 |
| --- | --- | --- | --- | --- |
| `case-sensitive` | `bool` | Any | `false` | `case_sensitive` |
| `fix-annotation` | `bool` | Any | `true` | `fix_annotation` |
| `fix-inline` | `bool` | Any | `true` | `fix_inline` |
| `replacements` | `map` | Any | `{  }` | `replacements` |

## Replaces

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

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