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
AddParamTypeToRefactorMethod(rector)