Skip to content

Commit

Permalink
Merge pull request #49218 from nextcloud/fix/external-storage-int
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Nov 12, 2024
2 parents f47d1e9 + 8b8e476 commit 25dd593
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 @@ -271,7 +271,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 @@ -303,7 +303,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 25dd593

Please sign in to comment.