Skip to content

Hungarian name generation is broken #502

@mmarton

Description

@mmarton

Summary

Hungarian name generation is broken, with the message:

Unknown format "lastNameFemaleMarried" In Generator.php line 731

Versions

Version
PHP 8.1
fakerphp/faker 1.20

Self-enclosed code snippet for reproduction

class UserFixtures extends Fixture
{
    protected Generator $faker;

    public function __construct()
    {
        $this->faker = Factory::create('hu_HU');
    }

    public function load(ObjectManager $manager): void
    {
        $user = (new User)->setName($this->faker->name());
        $manager->persist($user);
        $manager->flush();
    }
}

Expected output

no error

Actual output

error

possibly caused by of #451

cc zsoltjanes as the author of said PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions