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.
When calling $faker->titleMale with the locale set to 'nl_NL' an exception is thrown.
ErrorException : Non-static method Faker\Provider\nl_NL\Person::title() should not be called statically.
I'm not allowed to set title to be static though.
Versions
Version
PHP
7.2.16
fzaninotto/faker
v1.8.0
Laravel
v5.5
Self-enclosed code snippet for reproduction
echo$faker->titleMale;
Expected output
'Dhr'
Actual output
ErrorException : Non-static method Faker\Provider\nl_NL\Person::title() should not be called statically
/var/www/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Person.php:291
/var/www/vendor/fzaninotto/faker/src/Faker/Generator.php:222
/var/www/vendor/fzaninotto/faker/src/Faker/Generator.php:268
The text was updated successfully, but these errors were encountered:
This is a valid error since the method is not available. There is no available method to access only male titles for this locale. These are the ones that are available:
Summary
When calling
$faker->titleMale
with the locale set to'nl_NL'
an exception is thrown.ErrorException : Non-static method Faker\Provider\nl_NL\Person::title() should not be called statically
.I'm not allowed to set
title
to be static though.Versions
fzaninotto/faker
Self-enclosed code snippet for reproduction
Expected output
Actual output
The text was updated successfully, but these errors were encountered: