Skip to content

Commit 224779c

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/Controller/TaskProcessingApiController.php

Lines changed: 3 additions & 3 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,14 +297,14 @@ 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
}
304304
}
305305
}
306306
}
307-
return array_values($ids);
307+
return $ids;
308308
}
309309

310310
/**

0 commit comments

Comments
 (0)