Skip to content

Commit 0b4d018

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix(external_storage): Cast id to int
follow up to #49218 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 03f8e90 commit 0b4d018

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files_external/lib/Controller/UserStoragesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function index() {
8484
* {@inheritdoc}
8585
*/
8686
#[NoAdminRequired]
87-
public function show($id, $testOnly = true) {
87+
public function show(int $id, $testOnly = true) {
8888
return parent::show($id, $testOnly);
8989
}
9090

@@ -209,7 +209,7 @@ public function update(
209209
*/
210210
#[NoAdminRequired]
211211
#[PasswordConfirmationRequired]
212-
public function destroy($id) {
212+
public function destroy(int $id) {
213213
return parent::destroy($id);
214214
}
215215
}

0 commit comments

Comments
 (0)