aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2024-11-25 09:42:53 +0100
committerMarcel Klehr <mklehr@gmx.net>2024-11-25 14:12:47 +0100
commit247ac7c706ccda52be1d20e39c8102f188c140d3 (patch)
treec111c8dbd8d506fb79dec04a8c7484beece668cd
parent7bebbc1e1f3c93c2d48a1ec19f7a04773cf75da7 (diff)
downloadnextcloud-server-backport/49464/stable29.tar.gz
nextcloud-server-backport/49464/stable29.zip
fix(external_storage): Cast id to intbackport/49464/stable29
follow up to #49218 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index b788264d960..e1e37432f03 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -108,7 +108,7 @@ class UserStoragesController extends StoragesController {
*
* {@inheritdoc}
*/
- public function show($id, $testOnly = true) {
+ public function show(int $id, $testOnly = true) {
return parent::show($id, $testOnly);
}
@@ -233,7 +233,7 @@ class UserStoragesController extends StoragesController {
*/
#[NoAdminRequired]
#[PasswordConfirmationRequired]
- public function destroy($id) {
+ public function destroy(int $id) {
return parent::destroy($id);
}
}