Skip to content

Commit 1b8de73

Browse files
committed
chore: clean up deprecated NodeTraverser:: constant usage, use Nodevisitor:: instead on RemoveErrorSuppressInTryCatchStmtsRector
1 parent 0e15d04 commit 1b8de73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/src/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use PhpParser\Node\Stmt\Class_;
2020
use PhpParser\Node\Stmt\Function_;
2121
use PhpParser\Node\Stmt\TryCatch;
22-
use PhpParser\NodeTraverser;
22+
use PhpParser\NodeVisitor;
2323
use Rector\Rector\AbstractRector;
2424
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
2525
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -63,7 +63,7 @@ public function refactor(Node $node): ?Node
6363
$node->stmts,
6464
static function (Node $subNode) use (&$hasChanged): int|Expr|null {
6565
if ($subNode instanceof Class_ || $subNode instanceof Function_) {
66-
return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
66+
return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
6767
}
6868

6969
if ($subNode instanceof ErrorSuppress) {

0 commit comments

Comments
 (0)