Skip to content

Commit

Permalink
fix: change to not empty check rather than count.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonSean committed Jul 2, 2021
1 parent 0ca0ea6 commit 3ebc6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function addNestedWhereQuery($query, $boolean = 'and'): self
$this->wheres[] = $compiled;
}

if (count($query->filters)) {
if (!empty($query->filters)) {
$this->filters[] = $compiled;
}

Expand Down

0 comments on commit 3ebc6dd

Please sign in to comment.