Skip to content

Commit 382f572

Browse files
committed
[ci-review] Rector Rectify
1 parent 763e473 commit 382f572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PhpParser/Node/BetterNodeFinder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\PhpParser\Node;
66

7+
use PhpParser\Node\Stmt\ClassMethod;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr\Variable;
910
use PhpParser\Node\Expr\Yield_;
@@ -239,7 +240,7 @@ public function findInstancesOfScoped(array $nodes, string|array $types): array
239240
$this->simpleCallableNodeTraverser->traverseNodesWithCallable(
240241
$nodes,
241242
static function (Node $subNode) use ($types, &$foundNodes): ?int {
242-
if ($subNode instanceof Class_ || ($subNode instanceof FunctionLike && ! $subNode instanceof Stmt\ClassMethod)) {
243+
if ($subNode instanceof Class_ || ($subNode instanceof FunctionLike && ! $subNode instanceof ClassMethod)) {
243244
return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
244245
}
245246

0 commit comments

Comments
 (0)