Skip to content

Commit

Permalink
Update Parameters.php
Browse files Browse the repository at this point in the history
Check for null value
  • Loading branch information
vermeirentony authored Jul 5, 2019
1 parent ba51276 commit fb7c61c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ public function getFilters()
*/
public function hasFilters()
{
if (null === $this->filters) {
return false;
}

return count($this->filters) > 0;
}

Expand Down

0 comments on commit fb7c61c

Please sign in to comment.