From 6ac02d57cbaa6dba1a8621f42c576765b7e80408 Mon Sep 17 00:00:00 2001 From: Corey Taylor Date: Fri, 21 Nov 2025 16:32:15 -0600 Subject: [PATCH] Fix connection helper rector processing unrelated nodes --- src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php b/src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php index 392104c4..5f3319fc 100644 --- a/src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php +++ b/src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php @@ -51,10 +51,10 @@ public function refactor(Node $node): ?Node $parent = $node->getAttribute(AttributeKey::PARENT_NODE); if ($parent instanceof Expression) { $this->removeNode($parent); - - return null; } } + + return null; } // Ensure the node is a method call on the ConnectionHelper instance