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

docs: fix code examples in README.md #231

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading