Skip to content

Commit

Permalink
Update CarbonGermanHolidays.php
Browse files Browse the repository at this point in the history
Sorry - I was a bit too quick here. Now it should be fine.
  • Loading branch information
fatelgit authored Apr 21, 2023
1 parent e827119 commit bedbb65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ public static function getHolidays($year, $states = self::ALL_STATES)
$holidays['1. Weihnachtstag'] = mktime(0, 0, 0, 12, 25, $year);
$holidays['2. Weihnachtstag'] = mktime(0, 0, 0, 12, 26, $year);

if (in_array(self::BERLIN, self::MECKLENBURG_VORPOMMERN, $states)) {
if (array_intersect([self::BERLIN, self::MECKLENBURG_VORPOMMERN], $states)) {
$holidays['Internationaler Frauentag'] = mktime(0, 0, 0, 3, 8, $year);
}

if (in_array(self::BRANDENBURG, $states)) {
$holidays['Ostersonntag'] = $easterSunday;
$holidays['Pfingstsonntag'] = strtotime('+49 days', $easterSunday);
Expand Down

0 comments on commit bedbb65

Please sign in to comment.