diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index 383a6d7a31ac1..0128dc9ffc0a3 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -285,7 +285,7 @@ private function extractFileIdsFromTask(Task $task): array { /** @var int|list $inputSlot */ $inputSlot = $task->getInput()[$key]; if (is_array($inputSlot)) { - $ids += $inputSlot; + $ids = array_merge($inputSlot, $ids); } else { $ids[] = $inputSlot; } @@ -297,14 +297,14 @@ private function extractFileIdsFromTask(Task $task): array { /** @var int|list $outputSlot */ $outputSlot = $task->getOutput()[$key]; if (is_array($outputSlot)) { - $ids += $outputSlot; + $ids = array_merge($outputSlot, $ids); } else { $ids[] = $outputSlot; } } } } - return array_values($ids); + return $ids; } /**