fix(files_external): cast storage id int

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/49218/head
skjnldsv 2024-11-12 10:28:01 +07:00
parent f47d1e99db
commit 8b8e4763ed
1 changed files with 2 additions and 2 deletions

@ -271,7 +271,7 @@ abstract class StoragesController extends Controller {
* *
* @return DataResponse * @return DataResponse
*/ */
public function show($id, $testOnly = true) { public function show(int $id, $testOnly = true) {
try { try {
$storage = $this->service->getStorage($id); $storage = $this->service->getStorage($id);
@ -303,7 +303,7 @@ abstract class StoragesController extends Controller {
* @return DataResponse * @return DataResponse
*/ */
#[PasswordConfirmationRequired] #[PasswordConfirmationRequired]
public function destroy($id) { public function destroy(int $id) {
try { try {
$this->service->removeStorage($id); $this->service->removeStorage($id);
} catch (NotFoundException $e) { } catch (NotFoundException $e) {