Skip to content

Commit 3f36fb8

Browse files
committed
Fix deprecated NodeTraverser::DONT_TRAVERSE_CHILDREN
1 parent f8d1ea1 commit 3f36fb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PhpParser\Node\Expr\Ternary;
1212
use PhpParser\Node\Name\FullyQualified;
1313
use PhpParser\NodeTraverser;
14+
use PhpParser\NodeVisitor;
1415
use PHPStan\Type\Type;
1516
use PHPStan\Type\TypeCombinator;
1617
use Rector\NodeAnalyzer\ArgsAnalyzer;
@@ -78,7 +79,7 @@ public function refactor(Node $node): null|FuncCall|int
7879
);
7980

8081
if ($hasIsArrayCheck) {
81-
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
82+
return NodeVisitor::DONT_TRAVERSE_CHILDREN;
8283
}
8384

8485
return null;

0 commit comments

Comments
 (0)