mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-24 17:36:02 +02:00
fix cs
This commit is contained in:
parent
80cc9920b4
commit
4d5954cd77
packages
BetterReflection/src/Reflector
NodeTypeResolver/tests/NodeCallerTypeResolver
@ -38,6 +38,7 @@ final class MethodReflector
|
||||
|
||||
/**
|
||||
* @todo possibly cache, quite slow
|
||||
* @return string[]
|
||||
*/
|
||||
public function getMethodReturnTypes(string $class, string $methodCallName): array
|
||||
{
|
||||
@ -116,11 +117,16 @@ final class MethodReflector
|
||||
return [];
|
||||
}
|
||||
|
||||
private function completeParentClasses($types): array
|
||||
/**
|
||||
* @param string[] $types
|
||||
* @return string[]
|
||||
*/
|
||||
private function completeParentClasses(array $types): array
|
||||
{
|
||||
foreach ($types as $type) {
|
||||
$types = array_merge($types, $this->smartClassReflector->getClassParents($type));
|
||||
}
|
||||
|
||||
return $types;
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ final class NestedMethodCallTest extends AbstractNodeTypeResolverTest
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public function testOnNestedDifferentMethodCall(): void
|
||||
{
|
||||
/** @var MethodCall[] $methodCallNodes */
|
||||
|
Loading…
x
Reference in New Issue
Block a user