Skip to content

Commit 977c493

Browse files
committed
QueryResultTypeWalkerFetchTypeMatrixTest: cleanup
1 parent 26229db commit 977c493

File tree

2 files changed

+408
-767
lines changed

2 files changed

+408
-767
lines changed

src/Type/Doctrine/Query/QueryResultTypeWalker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public function walkFunction($function): string
438438
return $this->marshalType($nonNegativeInt);
439439
}
440440

441-
if ($this->containsOnlyTypes($exprTypeNoNull, [new IntegerType(), new FloatType(), $this->createNumericString(false)])) {
441+
if ($this->containsOnlyNumericTypes($exprTypeNoNull)) {
442442
return $this->marshalType($exprType); // retains underlying type
443443
}
444444

0 commit comments

Comments
 (0)