File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1919use PhpParser \Node \Stmt \Class_ ;
2020use PhpParser \Node \Stmt \Function_ ;
2121use PhpParser \Node \Stmt \TryCatch ;
22- use PhpParser \NodeTraverser ;
22+ use PhpParser \NodeVisitor ;
2323use Rector \Rector \AbstractRector ;
2424use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
2525use 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) {
You can’t perform that action at this time.
0 commit comments