Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions utils/src/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Function_;
use PhpParser\Node\Stmt\TryCatch;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
Expand Down Expand Up @@ -63,7 +63,7 @@ public function refactor(Node $node): ?Node
$node->stmts,
static function (Node $subNode) use (&$hasChanged): int|Expr|null {
if ($subNode instanceof Class_ || $subNode instanceof Function_) {
return NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
}

if ($subNode instanceof ErrorSuppress) {
Expand Down