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

format/phpdoc/var-without-name

In the format-laravel preset. Safe fix.

What it does

@var and @type annotations of classy properties should not contain the name.

Configuration

[format.rules]
"phpdoc/var-without-name" = true

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

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?