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
  • Loading branch information
richardkrikler committed Aug 4, 2024
1 parent ef99c46 commit 85d21a3
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 85d21a3

Please sign in to comment.