File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
rules/CodeQuality/Reflection Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1717use PHPStan \Type \Type ;
1818use Rector \Enum \ClassName ;
1919use Rector \NodeTypeResolver \NodeTypeResolver ;
20- use Rector \PHPStan \ScopeFetcher ;
2120use Rector \PHPUnit \CodeQuality \ValueObject \ParamTypesAndReturnType ;
2221
2322final readonly class MethodParametersAndReturnTypesResolver
@@ -86,9 +85,7 @@ public function resolveCallParameterTypes(MethodCall|StaticCall $call): ?array
8685 return null ;
8786 }
8887
89- $ scope = ScopeFetcher::fetch ($ call );
90- $ extendedMethodReflection = $ classReflection ->getMethod ($ methodName , $ scope );
91-
88+ $ extendedMethodReflection = $ classReflection ->getNativeMethod ($ methodName );
9289 return $ this ->resolveParameterTypes ($ extendedMethodReflection , $ classReflection );
9390 }
9491
You can’t perform that action at this time.
0 commit comments