Skip to content

Commit

Permalink
Added comments for phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Emmanuel Mercedes authored and Javier Emmanuel Mercedes committed Jan 18, 2024
1 parent 47c40bf commit 1c865ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Countries/DominicanRepublic.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public function countryCode(): string
{
return 'do';
}

/** @return array<string, CarbonImmutable | string> */
protected function allHolidays(int $year): array
{
return array_merge([
Expand All @@ -25,6 +27,8 @@ protected function allHolidays(int $year): array
'Navidad' => '12-25',
], $this->variableHolidays($year));
}

/** @return array<string, CarbonImmutable> */
protected function variableHolidays(int $year): array
{
$easter = CarbonImmutable::createFromTimestamp(easter_date($year))
Expand Down

0 comments on commit 1c865ad

Please sign in to comment.