Merge pull request #52209 from nextcloud/fix/files-external-notify-mount-id-stable28

[stable28] fix: cast mount_id type in files_external:notify command
This commit is contained in:
Andy Scherzinger 2025-04-15 19:10:09 +02:00 committed by GitHub
commit 7a91dcdca4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ class Notify extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
$mount = $this->globalService->getStorage($input->getArgument('mount_id'));
$mount = $this->globalService->getStorage((int)$input->getArgument('mount_id'));
if (is_null($mount)) {
$output->writeln('<error>Mount not found</error>');
return self::FAILURE;