Skip to content

Commit 25dd593

Browse files
authored
Merge pull request #49218 from nextcloud/fix/external-storage-int
2 parents f47d1e9 + 8b8e476 commit 25dd593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files_external/lib/Controller/StoragesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function index() {
271271
*
272272
* @return DataResponse
273273
*/
274-
public function show($id, $testOnly = true) {
274+
public function show(int $id, $testOnly = true) {
275275
try {
276276
$storage = $this->service->getStorage($id);
277277

@@ -303,7 +303,7 @@ public function show($id, $testOnly = true) {
303303
* @return DataResponse
304304
*/
305305
#[PasswordConfirmationRequired]
306-
public function destroy($id) {
306+
public function destroy(int $id) {
307307
try {
308308
$this->service->removeStorage($id);
309309
} catch (NotFoundException $e) {

0 commit comments

Comments
 (0)