From 8f779a5aaba39cb32b77778a45af81702fee2488 Mon Sep 17 00:00:00 2001 From: Benjamin Gaussorgues Date: Fri, 13 Dec 2024 10:27:50 +0100 Subject: fix(files_external): wrong type for external mount id Signed-off-by: Benjamin Gaussorgues --- apps/files_external/lib/Command/StorageAuthBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('Mount not found'); return [null, null]; -- cgit v1.2.3