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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
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); |
|
|
|
} |
|
|
|
} |