Skip to content

Commit dc7b56e

Browse files
committed
[ci-review] Rector Rectify
1 parent 48c89e2 commit dc7b56e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
use PhpParser\Node\Expr\ArrowFunction;
1111
use PhpParser\Node\Expr\Assign;
1212
use PhpParser\Node\Expr\Closure;
13+
use PhpParser\Node\Expr\Throw_;
1314
use PhpParser\Node\Expr\Variable;
1415
use PhpParser\Node\Stmt\Expression;
1516
use PhpParser\Node\Stmt\Return_;
16-
use PhpParser\Node\Stmt\Throw_;
1717
use PHPStan\Analyser\Scope;
1818
use Rector\NodeTypeResolver\Node\AttributeKey;
1919
use Rector\Php72\NodeFactory\AnonymousFunctionFactory;
@@ -108,7 +108,7 @@ public function refactor(Node $node): Closure
108108
return null;
109109
}
110110

111-
if (! $node->expr instanceof Node\Expr\Throw_) {
111+
if (! $node->expr instanceof Throw_) {
112112
return null;
113113
}
114114

0 commit comments

Comments
 (0)