Skip to content

Commit c74b5a3

Browse files
committed
[ci-review] Rector Rectify
1 parent 8a5d242 commit c74b5a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use PhpParser\Node\Expr\StaticCall;
1313
use PHPStan\Reflection\FunctionReflection;
1414
use PHPStan\Reflection\MethodReflection;
15+
use PHPStan\Type\MixedType;
1516
use Rector\DowngradePhp80\NodeAnalyzer\UnnamedArgumentResolver;
1617
use Rector\NodeAnalyzer\ArgsAnalyzer;
1718
use Rector\Rector\AbstractRector;
@@ -106,7 +107,7 @@ private function removeNamedArguments(MethodCall | StaticCall | New_ | FuncCall
106107
if ($node instanceof MethodCall) {
107108
$callerType = $this->getType($node->var);
108109

109-
if ($callerType instanceof \PHPStan\Type\MixedType) {
110+
if ($callerType instanceof MixedType) {
110111
foreach ($node->getArgs() as $arg) {
111112
if ($arg->name instanceof Node) {
112113
$arg->name = null;

0 commit comments

Comments
 (0)