mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(files_external): cast storage id int
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
f47d1e99db
commit
8b8e4763ed
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