Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

format/phpdoc/order

In the format-laravel preset. Safe fix.

What it does

Annotations in PHPDoc should be ordered in defined sequence.

Configuration

[format.rules]
"phpdoc/order" = true

To skip it in some files, add a @pun-ignore-file comment.

Options

Name Type Allowed values Default Upstream name
order list Any ["param", "throws", "return"] order

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?