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

lint/laravel/require-phpdoc-types-only

Not in any set. Unsafe fix: it can change behaviour. Runs when laravel is installed.

What it does

Keeps only type annotations in PHPDoc.

Configuration

[lint.rules]
"laravel/require-phpdoc-types-only" = "error"

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

Replaces

More lint/laravel rules · Edit this page

Last updated on

Was this page helpful?