From 85d21a31909b0663d3ad3551792890d9172715e9 Mon Sep 17 00:00:00 2001 From: Richard Krikler <57064056+richardkrikler@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:37:54 +0200 Subject: [PATCH] [BUGFIX] Add missing spread operator in query logicalOr method call --- Classes/Domain/Repository/QuestionRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Repository/QuestionRepository.php b/Classes/Domain/Repository/QuestionRepository.php index fee23f0..03c95a0 100644 --- a/Classes/Domain/Repository/QuestionRepository.php +++ b/Classes/Domain/Repository/QuestionRepository.php @@ -66,7 +66,7 @@ protected function filterBySettingsCategories(QueryInterface $query, array $and, foreach ($categoryUids as $categoryUid) { $logicalOr[] = $query->equals('categories.uid', (int)$categoryUid); } - $and[] = $query->logicalOr($logicalOr); + $and[] = $query->logicalOr(...$logicalOr); } return $and; }