We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5d242 commit c74b5a3Copy full SHA for c74b5a3
1 file changed
rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php
@@ -12,6 +12,7 @@
12
use PhpParser\Node\Expr\StaticCall;
13
use PHPStan\Reflection\FunctionReflection;
14
use PHPStan\Reflection\MethodReflection;
15
+use PHPStan\Type\MixedType;
16
use Rector\DowngradePhp80\NodeAnalyzer\UnnamedArgumentResolver;
17
use Rector\NodeAnalyzer\ArgsAnalyzer;
18
use Rector\Rector\AbstractRector;
@@ -106,7 +107,7 @@ private function removeNamedArguments(MethodCall | StaticCall | New_ | FuncCall
106
107
if ($node instanceof MethodCall) {
108
$callerType = $this->getType($node->var);
109
- if ($callerType instanceof \PHPStan\Type\MixedType) {
110
+ if ($callerType instanceof MixedType) {
111
foreach ($node->getArgs() as $arg) {
112
if ($arg->name instanceof Node) {
113
$arg->name = null;
0 commit comments