1
0
mirror of https://github.com/rectorphp/rector.git synced 2025-04-24 17:36:02 +02:00
This commit is contained in:
TomasVotruba 2017-11-02 17:52:36 +01:00
parent 80cc9920b4
commit 4d5954cd77
2 changed files with 7 additions and 2 deletions
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 */