Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.
This repository was archived by the owner on May 13, 2026. It is now read-only.

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

@illepic

Description

@illepic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions