Skip to content

Commit

Permalink
cast count to int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Hristov committed Jul 21, 2020
1 parent 41c835f commit 39bc74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FiltersTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getSingleResultByFilters($filterBy)

public function countByFilters($filterBy): int
{
return $this
return (int)$this
->createQueryBuilderByFilters('entity', $filterBy)
->select('COUNT(entity)')
->getQuery()
Expand Down

0 comments on commit 39bc74f

Please sign in to comment.