Skip to content

Commit

Permalink
[BUGFIX] Use spread operator for where constraints
Browse files Browse the repository at this point in the history
Fixes #277
  • Loading branch information
fnagel committed Mar 21, 2024
1 parent 62b19a0 commit 156b957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/Tcemain.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ protected function getDeleteArrayForTable(int $postId, string $tableName, string
$queryBuilder
->select('uid')
->from($tableName)
->where(CompositeExpression::and($constraints));
->where(CompositeExpression::and(...$constraints));

$rows = $queryBuilder->execute()->fetchAll();

Expand Down

0 comments on commit 156b957

Please sign in to comment.