From d8c6d7c1c6abfbdb49b50d2204d6edc968b1feb1 Mon Sep 17 00:00:00 2001 From: henk Date: Tue, 20 Sep 2022 13:30:26 +0200 Subject: [PATCH] #14 when no where filter is used, don't apply - corrected check for empty or --- src/Filter/FilterLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filter/FilterLogic.php b/src/Filter/FilterLogic.php index 2e70833..d9befc1 100644 --- a/src/Filter/FilterLogic.php +++ b/src/Filter/FilterLogic.php @@ -137,7 +137,7 @@ public function generateExpressions(QueryBuilder $queryBuilder, QueryNameGenerat protected function doGenerate($queryBuilder, $queryNameGenerator, $resourceClass, $operationName, $context) { if (empty($context['filters'])) { - return; + return []; } $oldWhere = $queryBuilder->getDQLPart('where');