We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c89e2 commit dc7b56eCopy full SHA for dc7b56e
rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php
@@ -10,10 +10,10 @@
10
use PhpParser\Node\Expr\ArrowFunction;
11
use PhpParser\Node\Expr\Assign;
12
use PhpParser\Node\Expr\Closure;
13
+use PhpParser\Node\Expr\Throw_;
14
use PhpParser\Node\Expr\Variable;
15
use PhpParser\Node\Stmt\Expression;
16
use PhpParser\Node\Stmt\Return_;
-use PhpParser\Node\Stmt\Throw_;
17
use PHPStan\Analyser\Scope;
18
use Rector\NodeTypeResolver\Node\AttributeKey;
19
use Rector\Php72\NodeFactory\AnonymousFunctionFactory;
@@ -108,7 +108,7 @@ public function refactor(Node $node): Closure
108
return null;
109
}
110
111
- if (! $node->expr instanceof Node\Expr\Throw_) {
+ if (! $node->expr instanceof Throw_) {
112
113
114
0 commit comments