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 <[email protected]>
  • Loading branch information
marcelklehr authored and backportbot[bot] committed Nov 25, 2024
1 parent 03f8e90 commit 0b4d018
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 0b4d018

Please sign in to comment.