Skip to content

Commit

Permalink
Merge pull request #8 from Mau04/master
Browse files Browse the repository at this point in the history
fix implicit float to int conversion
  • Loading branch information
micronax authored Sep 19, 2022
2 parents a7c990e + ec2231c commit dfd325d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function getHolidays($year, $states = self::ALL_STATES)
$states = array($states);
}

$penanceDay = mktime(0, 0, 0, 11, 22 - ($year - 1 + $year / 4) % 7, $year);
$penanceDay = mktime(0, 0, 0, 11, 22 - ($year - 1 + ((int) ((int) ($year / 4)) % 7)), $year);


// For all states
Expand Down

0 comments on commit dfd325d

Please sign in to comment.