forked from fzaninotto/Faker
-
Notifications
You must be signed in to change notification settings - Fork 425
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
After using addProvider method, get a weird result
Versions
| Version | |
|---|---|
| PHP | 7.4.13 |
fakerphp/faker |
1.15.0 |
use Faker\Provider\en_US\Person;
use Faker\Provider\zh_CN\Person as Zh_CNPerson;
// =============================
$this->faker->addProvider(new Person($this->faker));
dump($this->faker->lastName() . ' ' . $this->faker->firstName());
$this->faker->addProvider(new Zh_CNPerson($this->faker));
dd($this->faker->lastName() . ' ' . $this->faker->firstName());sometimes, you may hope to use different names, with addProvider method, get a weird result.
"Kerluke Lexie"
"Turner 杨"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working