diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index 9d85716..5fcdd7e 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -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; }