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

lint/style/prefer-phpdoc-comment

Not in any set. Unsafe fix: it can change behaviour.

What it does

Comments with annotation should be docblock when used on structural elements.

Configuration

[lint.rules]
"style/prefer-phpdoc-comment" = "error"

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

Options

Name Type Allowed values Default Upstream name
ignored-tags list Any [] ignored_tags

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?