From 34f718b824905ecf703e7308f3f1e888a88f63ef Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 24 Jun 2024 09:50:30 +0200 Subject: [PATCH] docs: fix code examples in README.md (#231) Co-authored-by: Christopher Georg Co-authored-by: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7aa2ae0d..f4801cdc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.