From 9d5409d8d9e0df8c5f0e53e758dde60817732b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 8 Dec 2021 09:52:06 +0100 Subject: [PATCH] fix casting --- src/Bundle/ChillActivityBundle/Form/ActivityType.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php index 8578b0a8a..d19f4ce19 100644 --- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php +++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php @@ -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) ); } ));