mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
fix: psalm issue
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
ec27c538b5
commit
fff2fb8e77
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue