Skip to content

Commit cd7eb93

Browse files
committed
skip no-type params in RenameParamToMatchTypeRector
1 parent c5d9fdf commit cd7eb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function refactor(Node $node): ?Node
8585

8686
foreach ($node->params as $param) {
8787
// skip as array-like
88-
if ($param->variadic) {
88+
if ($param->variadic || $param->type === null) {
8989
continue;
9090
}
9191

0 commit comments

Comments
 (0)