diff options
author | Alexander Piskun <oleksandr2088@icloud.com> | 2024-12-03 15:58:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-03 15:58:34 +0300 |
commit | f1754ee2e1a3c977d05d31c61adb195b9f50fee8 (patch) | |
tree | 0ba888e0103b33ee89e496ec6bf752a29412044b /apps | |
parent | 6014be44f2cccbd32becbb24f717e5cbca47c115 (diff) | |
parent | 1022c47d27527cb8025f2d8b6c2b7276650bba77 (diff) | |
download | nextcloud-server-f1754ee2e1a3c977d05d31c61adb195b9f50fee8.tar.gz nextcloud-server-f1754ee2e1a3c977d05d31c61adb195b9f50fee8.zip |
Merge pull request #49602 from nextcloud/fix/external-storage-service-cast-id
fix(external_storage): Cast id to int
Diffstat (limited to 'apps')
-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 88b9cf78ec3..67de6e8b6b8 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -117,7 +117,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)) { @@ -433,7 +433,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)) { |