aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2024-05-07 08:56:22 +0200
committerMarcel Klehr <mklehr@gmx.net>2024-05-14 11:38:41 +0200
commitfff2fb8e77c7a58aa9323c13daa355d6d8f3a118 (patch)
tree82ae2e09e33ad5aa5350eee73c11ceb22f216dfd /lib/private
parentec27c538b531108ab2cf26fe3264d001f9230aa2 (diff)
downloadnextcloud-server-fff2fb8e77c7a58aa9323c13daa355d6d8f3a118.tar.gz
nextcloud-server-fff2fb8e77c7a58aa9323c13daa355d6d8f3a118.zip
fix: psalm issue
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/TaskProcessing/Manager.php8
1 files changed, 5 insertions, 3 deletions
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>|int $inputSlot */
+ $inputSlot = $task->getInput()[$key];
+ if (is_array($inputSlot)) {
+ $ids += $inputSlot;
} else {
- $ids[] = $task->getInput()[$key];
+ $ids[] = $inputSlot;
}
}
}