fix(files_external): cast storage id int

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-11-12 10:28:01 +01:00 committed by backportbot[bot]
parent 1c28e81d00
commit 51df897f73

View file

@ -270,7 +270,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);
@ -302,7 +302,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) {