diff --git a/src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php b/src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php index 392104c..5f3319f 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