From 8b8e4763ed52e4d0d53328c5f3268d54ca533eac Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Tue, 12 Nov 2024 10:28:01 +0100 Subject: [PATCH] fix(files_external): cast storage id int Signed-off-by: skjnldsv --- apps/files_external/lib/Controller/StoragesController.php | 4 ++-- 1 file 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) { -- 2.39.5