Skip to content

Commit 393a24a

Browse files
Fix deprecated NodeTraverser::DONT_TRAVERSE_CHILDREN (#333)
* Fix deprecated NodeTraverser::DONT_TRAVERSE_CHILDREN * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <[email protected]>
1 parent f8d1ea1 commit 393a24a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PhpParser\Node\Expr\New_;
1111
use PhpParser\Node\Expr\Ternary;
1212
use PhpParser\Node\Name\FullyQualified;
13-
use PhpParser\NodeTraverser;
13+
use PhpParser\NodeVisitor;
1414
use PHPStan\Type\Type;
1515
use PHPStan\Type\TypeCombinator;
1616
use Rector\NodeAnalyzer\ArgsAnalyzer;
@@ -78,7 +78,7 @@ public function refactor(Node $node): null|FuncCall|int
7878
);
7979

8080
if ($hasIsArrayCheck) {
81-
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
81+
return NodeVisitor::DONT_TRAVERSE_CHILDREN;
8282
}
8383

8484
return null;

0 commit comments

Comments
 (0)