Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
switch usage syntax to PHP8 named arguments
  • Loading branch information
smknstd committed Aug 1, 2023
1 parent 1caed0d commit 0768159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ $faker = \Faker\Factory::create();
$faker->addProvider(new \Smknstd\FakerPicsumImages\FakerPicsumImagesProvider($faker));

// return a string that contains a url like 'https://picsum.photos/800/600/'
$faker->imageUrl($width = 800, $height = 600);
$faker->imageUrl(width: 800, height: 600);

// download a properly sized image from picsum into a file with a file path like '/tmp/13b73edae8443990be1aa8f1a483bc27.jpg'
$filePath= $faker->image($dir = '/tmp', $width = 640, $height = 480);
$filePath= $faker->image(dir: '/tmp', width: 640, height: 480);
```

Also, there are some more options :
Expand Down

0 comments on commit 0768159

Please sign in to comment.