Skip to content

Commit

Permalink
Merge pull request #118 from designmynight/4.3.0-change-array-check
Browse files Browse the repository at this point in the history
fix: change to not empty check rather than count.
  • Loading branch information
AndersonSean authored Jul 2, 2021
2 parents e31e678 + 3ebc6dd commit eb99a78
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 eb99a78

Please sign in to comment.