Skip to content

Commit

Permalink
Merge pull request #49467 from nextcloud/backport/49464/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(external_storage): Cast id to int
  • Loading branch information
marcelklehr authored Dec 6, 2024
2 parents ccedc0a + e876c8f commit ca38feb
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 @@ -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 @@ -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 ca38feb

Please sign in to comment.