aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2024-12-13 10:27:50 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-12-13 10:30:52 +0000
commitabd8b1645c06b3cfa2b21d5a636fa54d95f7eed9 (patch)
tree485a228c506811c6f88c14303041c99d49009e37
parent0b06132770dcff10b8492341c8fca36fcf59a38e (diff)
downloadnextcloud-server-backport/49843/stable29.tar.gz
nextcloud-server-backport/49843/stable29.zip
fix(files_external): wrong type for external mount idbackport/49843/stable29
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
-rw-r--r--apps/files_external/lib/Command/StorageAuthBase.php2
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 db76bb1a233..e831796415e 100644
--- a/apps/files_external/lib/Command/StorageAuthBase.php
+++ b/apps/files_external/lib/Command/StorageAuthBase.php
@@ -67,7 +67,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];