From 4d8bcc5a5a2832c867c9ebc1c790b5517a952c93 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 22 Oct 2024 14:51:02 +0200 Subject: [PATCH] Fix fixture for persons --- src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php index c5cb71d60..535d7d5e5 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php @@ -275,7 +275,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord */ public function getRandomGender(): string { - return $this->genders[array_rand($this->genders)]; + return $this->genders[array_rand($this->genders)->value]; } /**