mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-22 11:57:44 +00:00
fix casting
This commit is contained in:
@@ -266,7 +266,7 @@ class ActivityType extends AbstractType
|
|||||||
|
|
||||||
return array_map(
|
return array_map(
|
||||||
fn (string $id): ?Person => $this->om->getRepository(Person::class)->findOneBy(['id' => (int) $id]),
|
fn (string $id): ?Person => $this->om->getRepository(Person::class)->findOneBy(['id' => (int) $id]),
|
||||||
explode(',', (string) $personsAsString)
|
explode(',', $personsAsString)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
@@ -292,7 +292,7 @@ class ActivityType extends AbstractType
|
|||||||
|
|
||||||
return array_map(
|
return array_map(
|
||||||
fn (string $id): ?ThirdParty => $this->om->getRepository(ThirdParty::class)->findOneBy(['id' => (int) $id]),
|
fn (string $id): ?ThirdParty => $this->om->getRepository(ThirdParty::class)->findOneBy(['id' => (int) $id]),
|
||||||
explode(',', (string) $thirdpartyAsString)
|
explode(',', $thirdpartyAsString)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
@@ -329,7 +329,7 @@ class ActivityType extends AbstractType
|
|||||||
|
|
||||||
return array_map(
|
return array_map(
|
||||||
fn (string $id): ?User => $this->om->getRepository(User::class)->findOneBy(['id' => (int) $id]),
|
fn (string $id): ?User => $this->om->getRepository(User::class)->findOneBy(['id' => (int) $id]),
|
||||||
explode(',', (string) $usersAsString)
|
explode(',', $usersAsString)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user