We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed6216 commit 2801b24Copy full SHA for 2801b24
core/Controller/TaskProcessingApiController.php
@@ -285,7 +285,7 @@ private function extractFileIdsFromTask(Task $task): array {
285
/** @var int|list<int> $inputSlot */
286
$inputSlot = $task->getInput()[$key];
287
if (is_array($inputSlot)) {
288
- $ids += $inputSlot;
+ $ids = array_merge($inputSlot, $ids);
289
} else {
290
$ids[] = $inputSlot;
291
}
@@ -297,7 +297,7 @@ private function extractFileIdsFromTask(Task $task): array {
297
/** @var int|list<int> $outputSlot */
298
$outputSlot = $task->getOutput()[$key];
299
if (is_array($outputSlot)) {
300
- $ids += $outputSlot;
+ $ids = array_merge($outputSlot, $ids);
301
302
$ids[] = $outputSlot;
303
0 commit comments