File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
rules/DowngradePhp80/Rector/MethodCall Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212use PhpParser \Node \Expr \StaticCall ;
1313use PHPStan \Reflection \FunctionReflection ;
1414use PHPStan \Reflection \MethodReflection ;
15+ use PHPStan \Type \MixedType ;
1516use Rector \DowngradePhp80 \NodeAnalyzer \UnnamedArgumentResolver ;
1617use Rector \NodeAnalyzer \ArgsAnalyzer ;
1718use 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 ;
You can’t perform that action at this time.
0 commit comments