From 3ebc6dd0443b523b040bd658fe90081bf280f8d0 Mon Sep 17 00:00:00 2001 From: seananderson Date: Fri, 2 Jul 2021 14:02:51 +0100 Subject: [PATCH] fix: change to not empty check rather than count. --- src/QueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index f6274f6..82e3d63 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; }