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 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
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 @@ public function countryCode(): string

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 @@ protected function allHolidays(int $year): array
'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';
}

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

return $holidays;
}

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