mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(external_storage): Cast id to int
follow up to #49218 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
4d138a11f9
commit
9c7fd29262
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