diff --git a/src/CodeCleaner/PassableByReferencePass.php b/src/CodeCleaner/PassableByReferencePass.php index 372baf8e..5118c5bb 100644 --- a/src/CodeCleaner/PassableByReferencePass.php +++ b/src/CodeCleaner/PassableByReferencePass.php @@ -62,7 +62,7 @@ public function enterNode(Node $node) $args = []; foreach ($node->args as $position => $arg) { - if ($node instanceof VariadicPlaceholder) { + if ($arg instanceof VariadicPlaceholder) { continue; }