fix code syntax using php stan

This commit is contained in:
nobohan
2021-12-06 10:06:55 +01:00
parent 3c3d63e286
commit 15c7c6ccde
5 changed files with 5 additions and 7 deletions

View File

@@ -289,7 +289,7 @@ class ActivityType extends AbstractType
if (null === $thirdpartyAsString) {
return [];
}
return array_map(
fn (string $id): ?ThirdParty => $this->om->getRepository(ThirdParty::class)->findOneBy(['id' => (int) $id]),
explode(',', $thirdpartyAsString)