Skip to content

Commit

Permalink
Merge pull request #49221 from nextcloud/backport/49218/stable29
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Nov 12, 2024
2 parents 8d131e7 + fc08dc2 commit b483558
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 b483558

Please sign in to comment.