You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
In a Laravel project, Faker is provided using a config parameter, 'faker_locale', so the dependency is well instantiated. If not set, fallsback to en_US
Tracking the error message, it seems that there is a typo in Faker\Provider\es_ES\PhoneNumber: function is called tollFreeNumber instead of tollFreePhoneNumber
Changing the function's name solves the issue.
Versions
Version
PHP
7.3.18
fzaninotto/faker
1.9.1
Self-enclosed code snippet for reproduction
// file config\app.php/* |-------------------------------------------------------------------------- | Facker Locale Configuration |-------------------------------------------------------------------------- | | The facker locale determines the default locale that will be used | by the generators. | */'faker_locale' => 'es_ES',
Summary
In a Laravel project, Faker is provided using a config parameter, 'faker_locale', so the dependency is well instantiated. If not set, fallsback to en_US
Tracking the error message, it seems that there is a typo in Faker\Provider\es_ES\PhoneNumber: function is called tollFreeNumber instead of tollFreePhoneNumber
Changing the function's name solves the issue.
Versions
fzaninotto/faker
Self-enclosed code snippet for reproduction
Expected output
Actual output
The text was updated successfully, but these errors were encountered: