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

lint/phpdoc/no-superfluous-tags

In the dead-code set. Safe fix.

What it does

Removes @param, @return and @var tags that don’t provide any useful information.

Configuration

[lint.rules]
"phpdoc/no-superfluous-tags" = "error"

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

Options

Name Type Allowed values Default Upstream name
allow-hidden-params bool Any false allow_hidden_params
allow-mixed bool Any false allow_mixed
allow-unused-params bool Any false allow_unused_params
remove-inheritdoc bool Any false remove_inheritdoc

Replaces

More lint/phpdoc rules · Edit this page

Last updated on

Was this page helpful?