---
title: "lint/refactor/remove-phpdoc-annotation"
pagination: false
---

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

<RuleId id="lint/refactor/remove-phpdoc-annotation" />

Not in any set. Safe fix.

## What it does

Removes configured annotations from PHPDoc.

## Configuration

```toml title="pun.toml"
[lint.rules]
"refactor/remove-phpdoc-annotation" = "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 |
| --- | --- | --- | --- | --- |
| `annotations` | `list` | Any | `[]` | `annotations` |
| `case-sensitive` | `bool` | Any | `true` | `case_sensitive` |

## Replaces

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