diff options
author | Oleksander Piskun <oleksandr2088@icloud.com> | 2024-12-02 15:43:29 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-12-03 13:01:40 +0000 |
commit | 603174b614ab6a340191a62f85d197c56eac32cb (patch) | |
tree | 82e4bb88cbc5b136c14ce91eced4c62f4d7cd328 /apps/files_external/lib | |
parent | 0c32d3838326508d10f291b4046ebc8270ec0b4a (diff) | |
download | nextcloud-server-603174b614ab6a340191a62f85d197c56eac32cb.tar.gz nextcloud-server-603174b614ab6a340191a62f85d197c56eac32cb.zip |
fix(external_storage): Cast id to intbackport/49602/stable30
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Service/StoragesService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 09f7ea954b4..c6a77b45b27 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -134,7 +134,7 @@ abstract class StoragesService { * @return StorageConfig * @throws NotFoundException if the storage with the given id was not found */ - public function getStorage($id) { + public function getStorage(int $id) { $mount = $this->dbConfig->getMountById($id); if (!is_array($mount)) { @@ -450,7 +450,7 @@ abstract class StoragesService { * * @throws NotFoundException if no storage was found with the given id */ - public function removeStorage($id) { + public function removeStorage(int $id) { $existingMount = $this->dbConfig->getMountById($id); if (!is_array($existingMount)) { |