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

Update Slovakia.php #228

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
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
12 changes: 11 additions & 1 deletion src/Countries/Slovakia.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

protected function allHolidays(int $year): array
{
return array_merge([
$holidays = array_merge([
'Deň vzniku Slovenskej republiky' => '01-01',
'Zjavenie Pána (Traja králi)' => '01-06',
'Sviatok práce' => '05-01',
Expand All @@ -27,6 +27,16 @@
'Prvý sviatok vianočný' => '12-25',
'Druhý sviatok vianočný' => '12-26',
], $this->variableHolidays($year));

if ($year === 2018) {
$holidays['Výročie Deklarácie slovenského národa'] = '10-30',

Check failure on line 32 in src/Countries/Slovakia.php

View workflow job for this annotation

GitHub Actions / phpstan

Syntax error, unexpected ',' on line 32
Nielsvanpach marked this conversation as resolved.
Show resolved Hide resolved
}

if ($year < 2024) {
$holidays['Sedembolestná Panna Mária'] = '09-01',

Check failure on line 36 in src/Countries/Slovakia.php

View workflow job for this annotation

GitHub Actions / phpstan

Syntax error, unexpected ',' on line 36
Nielsvanpach marked this conversation as resolved.
Show resolved Hide resolved
}

return $holidays;
}

/** @return array<string, CarbonImmutable> */
Expand Down
Loading