Skip to content

Commit ac80ca5

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Rector/AbstractRector.php

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

172+
/**
173+
* @deprecated no longer used
174+
*/
175+
final public function leaveNode(Node $node): array|int|Node|null
176+
{
177+
return null;
178+
}
179+
172180
protected function isName(Node $node, string $name): bool
173181
{
174182
return $this->nodeNameResolver->isName($node, $name);

0 commit comments

Comments
 (0)