Merge pull request #49218 from nextcloud/fix/external-storage-int

This commit is contained in:
John Molakvoæ 2024-11-12 10:50:23 +01:00 committed by GitHub
commit 25dd59313f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,7 +271,7 @@ abstract class StoragesController extends Controller {
*
* @return DataResponse
*/
public function show($id, $testOnly = true) {
public function show(int $id, $testOnly = true) {
try {
$storage = $this->service->getStorage($id);
@ -303,7 +303,7 @@ abstract class StoragesController extends Controller {
* @return DataResponse
*/
#[PasswordConfirmationRequired]
public function destroy($id) {
public function destroy(int $id) {
try {
$this->service->removeStorage($id);
} catch (NotFoundException $e) {