Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the first argument is sent to Faker.image() from data.json #6

Open
illepic opened this issue Oct 21, 2017 · 0 comments
Open

Only the first argument is sent to Faker.image() from data.json #6

illepic opened this issue Oct 21, 2017 · 0 comments

Comments

@illepic
Copy link

illepic commented Oct 21, 2017

Within data.json, there is this use of Faker.image():

 "image": {
    "640x480": "Faker.image('dist/public', 720, 200, 'cats', false, true, 'I IS CAT')"
  }

After some weird behavior, we dropped in a quick var_dump(func_get_args()); at the top of \Faker\Provider\Image::image resulting in only the first argument registering:

2017-10-21 at 13 58

Honestly, we probably shouldn't even be writing images out to the filesystem like this to begin with and should just rely on Faker.imageUrl() instead. As you can see, it results in a silly amount of file i/o and residual files:

2017-10-21 at 14 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant