Skip to content

Commit 1b79098

Browse files
authored
Merge pull request #363 from cakephp/connection-helper
Fix connection helper rector processing unrelated nodes
2 parents af71e65 + 6ac02d5 commit 1b79098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rector/Rector/MethodCall/StaticConnectionHelperRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public function refactor(Node $node): ?Node
5151
$parent = $node->getAttribute(AttributeKey::PARENT_NODE);
5252
if ($parent instanceof Expression) {
5353
$this->removeNode($parent);
54-
55-
return null;
5654
}
5755
}
56+
57+
return null;
5858
}
5959

6060
// Ensure the node is a method call on the ConnectionHelper instance

0 commit comments

Comments
 (0)