Fix fixture for persons

This commit is contained in:
Julie Lenaerts 2024-10-22 14:51:02 +02:00
parent 5dfa5e1e7f
commit 4d8bcc5a5a

View File

@ -275,7 +275,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord
*/ */
public function getRandomGender(): string public function getRandomGender(): string
{ {
return $this->genders[array_rand($this->genders)]; return $this->genders[array_rand($this->genders)->value];
} }
/** /**