Did you try running the code?
It might a missing docblock to help PHPStorm autocompletion
Summer Sale! All accounts are 50% off this week.
I'm trying to use Faker in a Factory that I'm creating. However, some of the documented Faker formatters don't appear to be available. For example, in the following:
public function definition()
{
return [
'shedname' => $this->faker->company(),
'address1' => $this->faker->buildingNumber() . $this->faker->streetName(),
'address2' => $this->faker->secondaryAddress(),
'city' => $this->faker->city(),
'state' => $this->faker->stateAbbr(),
];
}
It seems that secondaryAddress() and stateAbbr() don't exist; PhpStorm is giving me warnings:
It seems they won't fix these specific ones until v2.0
https://github.com/FakerPHP/Faker/issues/356
So, for now, just ignore PHPStorm warnings about them.
Please or to participate in this conversation.