mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #49464 from nextcloud/fix/external-storage-controller-cast-id
fix(external_storage): Cast id to int
This commit is contained in:
commit
8502fe48c2
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue