Skip to content

Commit

Permalink
Update README.md to remove named parameter from make (#227)
Browse files Browse the repository at this point in the history
Named parameters are given via func_get_args. Remove the parameter to example work.

Fixes #213
  • Loading branch information
arnebr committed May 21, 2024
1 parent b7ef716 commit fdd5779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ In case your country has specific rules for calculating holidays,
for example region specific holidays, you can pass this to the constructor of your country class.

```php
$holidays = Holidays::for(Germany::make(region: 'DE-BW'))->get();
$holidays = Holidays::for(Germany::make('DE-BW'))->get();
```

The value, `DE-BW`, will be passed to the region parameter of the constructor of a country.
Expand Down

0 comments on commit fdd5779

Please sign in to comment.