Skip to content

Commit

Permalink
Merge pull request #49468 from nextcloud/backport/49464/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(external_storage): Cast id to int
  • Loading branch information
come-nc authored Nov 25, 2024
2 parents 03f8e90 + 0b4d018 commit 28d70d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_external/lib/Controller/UserStoragesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function index() {
* {@inheritdoc}
*/
#[NoAdminRequired]
public function show($id, $testOnly = true) {
public function show(int $id, $testOnly = true) {
return parent::show($id, $testOnly);
}

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

0 comments on commit 28d70d1

Please sign in to comment.