diff --git a/rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php b/rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php index 1f02c07a..00970dfb 100644 --- a/rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php +++ b/rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php @@ -10,7 +10,7 @@ use PhpParser\Node\Expr\New_; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Name\FullyQualified; -use PhpParser\NodeTraverser; +use PhpParser\NodeVisitor; use PHPStan\Type\Type; use PHPStan\Type\TypeCombinator; use Rector\NodeAnalyzer\ArgsAnalyzer; @@ -78,7 +78,7 @@ public function refactor(Node $node): null|FuncCall|int ); if ($hasIsArrayCheck) { - return NodeTraverser::DONT_TRAVERSE_CHILDREN; + return NodeVisitor::DONT_TRAVERSE_CHILDREN; } return null;