Skip to content

Commit 5af96b8

Browse files
committed
add back leaveNode() method for bc
1 parent ff2e4fd commit 5af96b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Rector/AbstractRector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ final public function enterNode(Node $node): int|Node|null|array
169169
return $this->postRefactorProcess($originalNode, $node, $refactoredNodeOrState, $filePath);
170170
}
171171

172+
final public function leaveNode(Node $node): array|int|Node|null
173+
{
174+
return null;
175+
}
176+
172177
protected function isName(Node $node, string $name): bool
173178
{
174179
return $this->nodeNameResolver->isName($node, $name);

0 commit comments

Comments
 (0)