Skip to content

Commit

Permalink
[BUGFIX] Add missing spread operator in query logicalOr method call
Browse files Browse the repository at this point in the history
Merge pull request #9 from richardkrikler/bugfix/filter-by-settings-categories thx to https://github.com/richardkrikler
  • Loading branch information
sbusemann authored Aug 11, 2024
2 parents ef99c46 + 85d21a3 commit ea259a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/QuestionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea259a5

Please sign in to comment.