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

lint/types/add-refactor-param-phpdoc

Not in any preset. In Rector’s rector/rector-preset set. Safe fix.

What it does

Add @param node type to refactor() method based on getNodeTypes() of a Rector rule, to avoid instanceof checks and unknown types reported by PHPStan

Configuration

[lint.rules]
"types/add-refactor-param-phpdoc" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

More lint/types rules · Edit this page

Last updated on

Was this page helpful?