fix(external_storage): Cast id to int

pull/49625/head
Oleksander Piskun 2024-12-02 15:43:29 +07:00 committed by backportbot[bot]
parent ce568970ca
commit fbbfead13f
1 changed files with 2 additions and 2 deletions

@ -160,7 +160,7 @@ abstract class StoragesService {
* @return StorageConfig
* @throws NotFoundException if the storage with the given id was not found
*/
public function getStorage($id) {
public function getStorage(int $id) {
$mount = $this->dbConfig->getMountById($id);
if (!is_array($mount)) {
@ -476,7 +476,7 @@ abstract class StoragesService {
*
* @throws NotFoundException if no storage was found with the given id
*/
public function removeStorage($id) {
public function removeStorage(int $id) {
$existingMount = $this->dbConfig->getMountById($id);
if (!is_array($existingMount)) {