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

lint/phpdoc/no-empty-return

In the coding-style set. Safe fix.

What it does

@return void and @return null annotations must be removed from PHPDoc.

Configuration

[lint.rules]
"phpdoc/no-empty-return" = "error"

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

Replaces

More lint/phpdoc rules · Edit this page

Last updated on

Was this page helpful?