Merge pull request #49220 from nextcloud/backport/49218/stable28

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

View file

@ -292,7 +292,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);
@ -324,7 +324,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) {