Skip to content

Commit 3b8a70c

Browse files
committed
Fix
1 parent 43bf319 commit 3b8a70c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Type/EntityStorage/GetQueryReturnTypeExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ public function getClass(): string
2525

2626
public function isMethodSupported(MethodReflection $methodReflection): bool
2727
{
28-
return $methodReflection->getName() === 'getQuery';
28+
return in_array($methodReflection->getName(), [
29+
'getQuery',
30+
'getAggregateQuery',
31+
], true);
2932
}
3033

3134
public function getTypeFromMethodCall(

0 commit comments

Comments
 (0)