Skip to content

Commit 8df3320

Browse files
committed
[ci-review] Rector Rectify
1 parent d7306e3 commit 8df3320

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/CodeQuality/Rector/Class_/TypeWillReturnCallableArrowFunctionRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PhpParser\Node\Expr\MethodCall;
1212
use PhpParser\Node\Expr\PropertyFetch;
1313
use PhpParser\Node\Expr\Variable;
14+
use PhpParser\Node\FunctionLike;
1415
use PhpParser\Node\Scalar\String_;
1516
use PhpParser\Node\Stmt\Class_;
1617
use PHPStan\Reflection\ClassReflection;
@@ -171,7 +172,7 @@ public function refactor(Node $node): ?Class_
171172
}
172173

173174
// no match
174-
if (! $innerClosure instanceof Node\FunctionLike) {
175+
if (! $innerClosure instanceof FunctionLike) {
175176
return null;
176177
}
177178

0 commit comments

Comments
 (0)