Issue when try to use the create() function in the class_exists, throws an error when the documentation says the the function should not returns error just bool value. #861
I am having an issue when I try to use Faker::create() in a Seeder with Phinx and PHPUnit in a docker container the error occurs in this line the error is the next:
# replace this with a self-enclosed usage example
Faker::create();
Expected output
Create a new faker but instead of that the library throws an error in a core function.
Actual output
I put the output in the summary
I think that is so strange error but we can manage this situation in different ways some that I suggest is to put the logic inside of a try/catch, since this error from POV is not part of the library, like this example.
Summary
I am having an issue when I try to use Faker::create() in a Seeder with Phinx and PHPUnit in a docker container the error occurs in this line the error is the next:
Versions
fakerphp/faker
robmorgan/phinx
Self-enclosed code snippet for reproduction
Expected output
Actual output
I think that is so strange error but we can manage this situation in different ways some that I suggest is to put the logic inside of a try/catch, since this error from POV is not part of the library, like this example.