Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Sep 6, 2024
1 parent 1e65de3 commit 6ca8102
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Countries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getInRange(?CarbonImmutable $from, ?CarbonImmutable $to): array
}
}

usort($allHolidays, static fn (array $a, array $b) => $a['date'] <=> $b['date']);
usort($allHolidays, static fn (array $a, array $b): int => $a['date'] <=> $b['date']);

$mappedHolidays = [];
/** @var array{date: CarbonImmutable, name: string} $holiday */
Expand Down
2 changes: 1 addition & 1 deletion src/Countries/Taiwan.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function lunarCalendar(string $input, int $year): ?string
}

$dateTime = new DateTime;
$dateTime->setTimestamp($parsedTimestamp);
$dateTime->setTimestamp((int) $parsedTimestamp);
$dateTime->setTimezone(new DateTimeZone($this->timezone));

return $dateTime->format('m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"name": "Novo leto 2",
"date": "2024-01-02"
},
{
"name": "Pre\u0161ernov dan, slovenski kulturni praznik",
"date": "2024-02-08"
},
{
"name": "Velikono\u010dni ponedeljek",
"date": "2024-04-01"
Expand All @@ -27,10 +31,6 @@
"name": "Dan dr\u017eavnosti",
"date": "2024-06-25"
},
{
"name": "Pre\u0161ernov dan, slovenski kulturni praznik",
"date": "2024-08-02"
},
{
"name": "Marijino vnebovzetje",
"date": "2024-08-15"
Expand Down

0 comments on commit 6ca8102

Please sign in to comment.