Skip to content

Commit 452e4be

Browse files
authored
Merge pull request #46222 from nextcloud/fix/task-processing-api-controller/dont-use-plus
2 parents d53fde8 + 224779c commit 452e4be

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
@@ -378,7 +378,7 @@ private function extractFileIdsFromTask(Task $task): array {
378378
/** @var int|list<int> $inputSlot */
379379
$inputSlot = $task->getInput()[$key];
380380
if (is_array($inputSlot)) {
381-
$ids += $inputSlot;
381+
$ids = array_merge($inputSlot, $ids);
382382
} else {
383383
$ids[] = $inputSlot;
384384
}
@@ -390,14 +390,14 @@ private function extractFileIdsFromTask(Task $task): array {
390390
/** @var int|list<int> $outputSlot */
391391
$outputSlot = $task->getOutput()[$key];
392392
if (is_array($outputSlot)) {
393-
$ids += $outputSlot;
393+
$ids = array_merge($outputSlot, $ids);
394394
} else {
395395
$ids[] = $outputSlot;
396396
}
397397
}
398398
}
399399
}
400-
return array_values($ids);
400+
return $ids;
401401
}
402402

403403
/**

0 commit comments

Comments
 (0)