Skip to content

Commit

Permalink
fix(files_external): cast storage id int
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Nov 12, 2024
1 parent 1c28e81 commit 51df897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_external/lib/Controller/StoragesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function index() {
*
* @return DataResponse
*/
public function show($id, $testOnly = true) {
public function show(int $id, $testOnly = true) {
try {
$storage = $this->service->getStorage($id);

Expand Down Expand Up @@ -302,7 +302,7 @@ public function show($id, $testOnly = true) {
* @return DataResponse
*/
#[PasswordConfirmationRequired]
public function destroy($id) {
public function destroy(int $id) {
try {
$this->service->removeStorage($id);
} catch (NotFoundException $e) {
Expand Down

0 comments on commit 51df897

Please sign in to comment.