diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-11-12 10:28:01 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-11-12 10:28:01 +0100 |
commit | 8b8e4763ed52e4d0d53328c5f3268d54ca533eac (patch) | |
tree | cfbff8b1daecb6c1f92137b0a09e7c24a68045ac | |
parent | f47d1e99db2cccf2ecb3cd5237b6b3d5d5c78bb5 (diff) | |
download | nextcloud-server-8b8e4763ed52e4d0d53328c5f3268d54ca533eac.tar.gz nextcloud-server-8b8e4763ed52e4d0d53328c5f3268d54ca533eac.zip |
fix(files_external): cast storage id intfix/external-storage-int
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files_external/lib/Controller/StoragesController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php index acd4446cde6..858143e5056 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -271,7 +271,7 @@ abstract class StoragesController extends Controller { * * @return DataResponse */ - public function show($id, $testOnly = true) { + public function show(int $id, $testOnly = true) { try { $storage = $this->service->getStorage($id); @@ -303,7 +303,7 @@ abstract class StoragesController extends Controller { * @return DataResponse */ #[PasswordConfirmationRequired] - public function destroy($id) { + public function destroy(int $id) { try { $this->service->removeStorage($id); } catch (NotFoundException $e) { |