aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksander Piskun <oleksandr2088@icloud.com>2024-12-02 15:43:29 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-12-03 13:00:45 +0000
commite25bb2f0b3e5e4e3b0af6293af6614c3ce977883 (patch)
treea84d5d3534149fcad1127782aaf4a2d8b0511110
parentfbfe30716b2fa2b3fd62d3e42703c263d8ffbea4 (diff)
downloadnextcloud-server-backport/49602/stable29.tar.gz
nextcloud-server-backport/49602/stable29.zip
fix(external_storage): Cast id to intbackport/49602/stable29
-rw-r--r--apps/files_external/lib/Service/StoragesService.php4
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 78d36c59ba7..01dafbd0e81 100644
--- a/apps/files_external/lib/Service/StoragesService.php
+++ b/apps/files_external/lib/Service/StoragesService.php
@@ -160,7 +160,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)) {
@@ -476,7 +476,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)) {