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

format/phpdoc/separation

In the format-laravel preset. Safe fix.

What it does

Annotations in PHPDoc should be grouped together so that annotations of the same type immediately follow each other. Annotations of a different type are separated by a single blank line.

Configuration

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

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

Options

Name Type Allowed values Default Upstream name
groups list-of-lists Any [["author", "copyright", "license"], ["category", "package", "subpackage"], ["property", "property-read", "property-write"], ["deprecated", "link", "see", "since"]] groups
skip-unlisted-annotations bool Any false skip_unlisted_annotations

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?