Skip to content

Commit

Permalink
fix: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
martenb committed Nov 17, 2023
1 parent 47f0a28 commit 3bf2ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AggregationFunction/FunctionSum.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function processDataSource($dataSource): void
? $this->column
: current($dataSource->getRootAliases()) . '.' . $this->column;

$this->result = $dataSource
$this->result = (int) $dataSource
->select(sprintf('SUM(%s)', $column))
->setMaxResults(1)
->setFirstResult(0)
Expand Down

0 comments on commit 3bf2ffc

Please sign in to comment.