Skip to content

Commit 2801b24

Browse files
committed
fix(TaskProcessingApiController): Don't use + to merge non-assoc. arrays
Signed-off-by: Marcel Klehr <[email protected]>
1 parent eed6216 commit 2801b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/Controller/TaskProcessingApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private function extractFileIdsFromTask(Task $task): array {
285285
/** @var int|list<int> $inputSlot */
286286
$inputSlot = $task->getInput()[$key];
287287
if (is_array($inputSlot)) {
288-
$ids += $inputSlot;
288+
$ids = array_merge($inputSlot, $ids);
289289
} else {
290290
$ids[] = $inputSlot;
291291
}
@@ -297,7 +297,7 @@ private function extractFileIdsFromTask(Task $task): array {
297297
/** @var int|list<int> $outputSlot */
298298
$outputSlot = $task->getOutput()[$key];
299299
if (is_array($outputSlot)) {
300-
$ids += $outputSlot;
300+
$ids = array_merge($outputSlot, $ids);
301301
} else {
302302
$ids[] = $outputSlot;
303303
}

0 commit comments

Comments
 (0)