mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
Merge pull request #49218 from nextcloud/fix/external-storage-int
This commit is contained in:
commit
25dd59313f
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue