We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e15d04 commit 1b8de73Copy full SHA for 1b8de73
1 file changed
utils/src/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php
@@ -19,7 +19,7 @@
19
use PhpParser\Node\Stmt\Class_;
20
use PhpParser\Node\Stmt\Function_;
21
use PhpParser\Node\Stmt\TryCatch;
22
-use PhpParser\NodeTraverser;
+use PhpParser\NodeVisitor;
23
use Rector\Rector\AbstractRector;
24
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
25
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -63,7 +63,7 @@ public function refactor(Node $node): ?Node
63
$node->stmts,
64
static function (Node $subNode) use (&$hasChanged): int|Expr|null {
65
if ($subNode instanceof Class_ || $subNode instanceof Function_) {
66
- return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
+ return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
67
}
68
69
if ($subNode instanceof ErrorSuppress) {
0 commit comments