Browse Source

Merge pull request #49464 from nextcloud/fix/external-storage-controller-cast-id

fix(external_storage): Cast id to int
pull/49477/head
Marcel Klehr 1 year ago
committed by GitHub
parent
commit
8502fe48c2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      apps/files_external/lib/Controller/UserStoragesController.php

4
apps/files_external/lib/Controller/UserStoragesController.php

@ -84,7 +84,7 @@ class UserStoragesController extends StoragesController {
* {@inheritdoc}
*/
#[NoAdminRequired]
public function show($id, $testOnly = true) {
public function show(int $id, $testOnly = true) {
return parent::show($id, $testOnly);
}
@ -209,7 +209,7 @@ class UserStoragesController extends StoragesController {
*/
#[NoAdminRequired]
#[PasswordConfirmationRequired]
public function destroy($id) {
public function destroy(int $id) {
return parent::destroy($id);
}
}
Loading…
Cancel
Save