Skip to content

Commit

Permalink
fix(TaskProcessingApiController): Don't use + to merge non-assoc. arrays
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jul 1, 2024
1 parent eed6216 commit 2801b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Controller/TaskProcessingApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private function extractFileIdsFromTask(Task $task): array {
/** @var int|list<int> $inputSlot */
$inputSlot = $task->getInput()[$key];
if (is_array($inputSlot)) {
$ids += $inputSlot;
$ids = array_merge($inputSlot, $ids);
} else {
$ids[] = $inputSlot;
}
Expand All @@ -297,7 +297,7 @@ private function extractFileIdsFromTask(Task $task): array {
/** @var int|list<int> $outputSlot */
$outputSlot = $task->getOutput()[$key];
if (is_array($outputSlot)) {
$ids += $outputSlot;
$ids = array_merge($outputSlot, $ids);
} else {
$ids[] = $outputSlot;
}
Expand Down

0 comments on commit 2801b24

Please sign in to comment.