fix casting

This commit is contained in:
Julien Fastré 2021-12-08 09:52:06 +01:00
parent e297d82533
commit 9d5409d8d9

View File

@ -266,7 +266,7 @@ class ActivityType extends AbstractType
return array_map(
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(
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(
fn (string $id): ?User => $this->om->getRepository(User::class)->findOneBy(['id' => (int) $id]),
explode(',', (string) $usersAsString)
explode(',', $usersAsString)
);
}
));