---
title: "format/phpdoc/tag-casing"
pagination: false
---

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

<RuleId id="format/phpdoc/tag-casing" />

Not in any preset. Safe fix.

## What it does

Fixes casing of PHPDoc tags.

## Configuration

```toml title="pun.toml"
[format.rules]
"phpdoc/tag-casing" = true
```

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

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `tags` | `list` | Any | `["inheritDoc"]` | `tags` |

## Replaces

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

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