mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #49220 from nextcloud/backport/49218/stable28
This commit is contained in:
commit
ceb933c3bd
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue