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

format/phpdoc/types-order

Not in any preset. Safe fix.

What it does

Sorts PHPDoc types.

Configuration

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

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

Options

Name Type Allowed values Default Upstream name
case-sensitive bool Any false case_sensitive
null-position enum first, last, none "first" null_adjustment
sort enum alphabetical, none "alphabetical" sort_algorithm

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?