Skip to content

Commit

Permalink
docs: fix code examples in README.md (#231)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de>
Co-authored-by: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 24, 2024
1 parent adb572e commit 34f718b
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 @@ -65,7 +65,7 @@ You can also pass a specific year.
```php
use Spatie\Holidays\Holidays;

$holidays = Holidays::for(country: 'be', year: 2024))->get();
$holidays = Holidays::for(country: 'be', year: 2024)->get();
```

### Getting holidays between two dates
Expand All @@ -81,7 +81,7 @@ $holidays = Holidays::for('be')->getInRange('2023-06-01', '2024-05-31');
### Getting holidays in a specific language

```php
$holidays = Holidays::for(country: 'be', locale: 'fr'))->get();
$holidays = Holidays::for(country: 'be', locale: 'fr')->get();
```

If the locale is not supported for a country, an exception will be thrown.
Expand Down

0 comments on commit 34f718b

Please sign in to comment.