Skip to content

Commit

Permalink
add array typehints.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Hristov committed Jul 22, 2020
1 parent 39bc74f commit b76460a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FiltersTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public function findByFilters(array $filterBy)
return $this->createQueryBuilderByFilters('entity', $filterBy)->getQuery()->getResult();
}

public function getSingleResultByFilters($filterBy)
public function getSingleResultByFilters(array $filterBy)
{
return $this->createQueryBuilderByFilters('entity', $filterBy)->getQuery()->getSingleResult();
}

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

0 comments on commit b76460a

Please sign in to comment.