From c284e49134df1bca157edbef896d5b0f96a72129 Mon Sep 17 00:00:00 2001 From: Oleksander Piskun Date: Mon, 2 Dec 2024 15:43:29 +0300 Subject: [PATCH] fix(external_storage): Cast id to int --- apps/files_external/lib/Service/StoragesService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 88b9cf78ec3cf..67de6e8b6b8c1 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -117,7 +117,7 @@ protected function readConfig() { * @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 @@ public function updateStorage(StorageConfig $updatedStorage) { * * @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)) {