---
title: "format/phpdoc/order-by-value"
pagination: false
---

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

<RuleId id="format/phpdoc/order-by-value" />

Not in any preset. Safe fix.

## What it does

Order PHPDoc tags by value.

## Configuration

```toml title="pun.toml"
[format.rules]
"phpdoc/order-by-value" = 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 |
| --- | --- | --- | --- | --- |
| `annotations` | `list` | `author`, `covers`, `coversNothing`, `dataProvider`, `depends`, `group`, `internal`, `method`, `mixin`, `property`, `property-read`, `property-write`, `requires`, `throws`, `uses` | `["covers"]` | `annotations` |

## Replaces

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