We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab386cb + 15217f2 commit 5f72c48Copy full SHA for 5f72c48
src/Type/RepositoryFindAllDynamicReturnTypeExtension.php
@@ -40,8 +40,8 @@ public function getTypeFromMethodCall(
40
{
41
$variableType = $scope->getType($methodCall->var);
42
43
- if ($methodReflection->getDeclaringClass()->getName() !== Repository::class
44
- || !$variableType instanceof TypeWithClassName) {
+ if (!$variableType instanceof TypeWithClassName
+ || $methodReflection->getDeclaringClass()->getName() !== Repository::class) {
45
return ParametersAcceptorSelector::selectSingle($methodReflection->getVariants())->getReturnType();
46
}
47
0 commit comments