Skip to content

Commit 7c1f4d5

Browse files
committed
[PHPStan] Use NodeVisitor::* on RectorInterface::refactor() @return method and update rules to use specific of its constant
1 parent 34dc1f1 commit 7c1f4d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Rector/AbstractRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ final public function enterNode(Node $node): int|Node|null
188188
}
189189

190190
if ($isIntRefactoredNode) {
191-
// @see NodeTraverser::* codes, e.g. removal of node of stopping the traversing
191+
// @see NodeVisitor::* codes, e.g. removal of node of stopping the traversing
192192
if ($refactoredNode === NodeVisitor::REMOVE_NODE) {
193193
// log here, so we can remove the node in leaveNode() method
194194
$this->toBeRemovedNodeId = spl_object_id($originalNode);

0 commit comments

Comments
 (0)