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 8d131e7 commit fc08dc2
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 @@ -292,7 +292,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 @@ -324,7 +324,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 fc08dc2

Please sign in to comment.