From fc08dc2ac0c35f9f34916b553664982daec18c38 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 8ad7f1815290e..145c88594761f 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -292,7 +292,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); @@ -324,7 +324,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) {