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
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
Open
SystemBack opened this issue
Feb 13, 2024
· 2 comments
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.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 1 week if no further activity occurs. Thank you for your contributions.
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.
The text was updated successfully, but these errors were encountered: