Closed
Description
What would you like to do?
In that pull request FakerPHP has marked property access as deprecated
/**
* @param string $attribute
*
* @deprecated Use a method instead.
*/
public function __get($attribute)
{
trigger_deprecation('fakerphp/faker', '1.14', 'Accessing property "%s" is deprecated, use "%s()" instead.', $attribute, $attribute);
return $this->format($attribute);
}
Before/After code snippets
- $this->faker->lastName;
+ $this->faker->lastName();