From 51df897f737caacbac017a6f1c0501e94afa81b7 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 bc660cd580cc6..802f733b228bd 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -270,7 +270,7 @@ public function index() { * * @return DataResponse */ - public function show($id, $testOnly = true) { + public function show(int $id, $testOnly = true) { try { $storage = $this->service->getStorage($id); @@ -302,7 +302,7 @@ public function show($id, $testOnly = true) { * @return DataResponse */ #[PasswordConfirmationRequired] - public function destroy($id) { + public function destroy(int $id) { try { $this->service->removeStorage($id); } catch (NotFoundException $e) {