diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-12-13 10:27:50 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-12-13 10:32:13 +0000 |
commit | 8f779a5aaba39cb32b77778a45af81702fee2488 (patch) | |
tree | 290e92fde669cc8abea6e3ca11e16b0a5176f1c8 | |
parent | 98187b5b0388c50b1750056949641af7899baebd (diff) | |
download | nextcloud-server-8f779a5aaba39cb32b77778a45af81702fee2488.tar.gz nextcloud-server-8f779a5aaba39cb32b77778a45af81702fee2488.zip |
fix(files_external): wrong type for external mount idbackport/49843/stable30
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
-rw-r--r-- | apps/files_external/lib/Command/StorageAuthBase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/StorageAuthBase.php b/apps/files_external/lib/Command/StorageAuthBase.php index 141a96d43bd..6f830a08a60 100644 --- a/apps/files_external/lib/Command/StorageAuthBase.php +++ b/apps/files_external/lib/Command/StorageAuthBase.php @@ -52,7 +52,7 @@ abstract class StorageAuthBase extends Base { protected function createStorage(InputInterface $input, OutputInterface $output): array { try { /** @var StorageConfig|null $mount */ - $mount = $this->globalService->getStorage($input->getArgument('mount_id')); + $mount = $this->globalService->getStorage((int)$input->getArgument('mount_id')); } catch (NotFoundException $e) { $output->writeln('<error>Mount not found</error>'); return [null, null]; |