From fff2fb8e77c7a58aa9323c13daa355d6d8f3a118 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 7 May 2024 08:56:22 +0200 Subject: fix: psalm issue Signed-off-by: Marcel Klehr --- lib/private/TaskProcessing/Manager.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/private/TaskProcessing') diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 7b0d3104736..2770fd277ab 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -573,10 +573,12 @@ class Manager implements IManager { $ids = []; foreach ($inputShape + $optionalInputShape as $key => $descriptor) { if (in_array(EShapeType::getScalarType($descriptor->getShapeType()), [EShapeType::File, EShapeType::Image, EShapeType::Audio, EShapeType::Video], true)) { - if (is_array($task->getInput()[$key])) { - $ids += $task->getInput()[$key]; + /** @var list|int $inputSlot */ + $inputSlot = $task->getInput()[$key]; + if (is_array($inputSlot)) { + $ids += $inputSlot; } else { - $ids[] = $task->getInput()[$key]; + $ids[] = $inputSlot; } } } -- cgit v1.2.3