===================== Rule ``phpdoc_order`` ===================== Annotations in PHPDoc should be ordered in defined sequence. Configuration ------------- ``order`` ~~~~~~~~~ Sequence in which annotations in PHPDoc should be ordered. Allowed types: ``string[]`` Default value: ``['param', 'throws', 'return']`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New ['param', 'throws', 'return']]``. .. code-block:: diff --- Original +++ New ['param', 'return', 'throws']]``. .. code-block:: diff --- Original +++ New ['param', 'custom', 'throws', 'return']]``. .. code-block:: diff --- Original +++ New `_ with config: ``['order' => ['param', 'return', 'throws']]`` - `@Symfony <./../../ruleSets/Symfony.rst>`_ with config: ``['order' => ['param', 'return', 'throws']]``