From 200040d9ac15274f7de618b8db20b82bb32cd665 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 34ff9682ee6e0..b18e99f3a47a3 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) {