Skip to content

Commit

Permalink
fix(external_storage): Cast id to int
Browse files Browse the repository at this point in the history
follow up to #49218

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Nov 25, 2024
1 parent 54b1d17 commit 70e56d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files_external/lib/Controller/UserStoragesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function index() {
*
* {@inheritdoc}
*/
public function show($id, $testOnly = true) {
public function show(int $id, $testOnly = true) {
return parent::show($id, $testOnly);
}

Expand Down Expand Up @@ -182,7 +182,7 @@ public function create(
#[NoAdminRequired]
#[PasswordConfirmationRequired]
public function update(
$id,
int $id,
$mountPoint,
$backend,
$authMechanism,
Expand Down Expand Up @@ -233,7 +233,7 @@ public function update(
*/
#[NoAdminRequired]
#[PasswordConfirmationRequired]
public function destroy($id) {
public function destroy(int $id) {
return parent::destroy($id);
}
}

0 comments on commit 70e56d2

Please sign in to comment.