Skip to content

Commit

Permalink
Fix return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikpeba4ll committed Jan 24, 2024
1 parent cc4a1fa commit b57f4ed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Countries/Ghana.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
class Ghana extends Country
{

protected $timezone = 'Africa/Accra';
protected string $timezone = 'Africa/Accra';

public function countryCode(): string
{
return 'gh';
}

/**
* @return array<string, CarbonImmutable>
*/
protected function christmasDay(int $year): array
{
$christmasDay = new CarbonImmutable($year . "-12-25", $this->timezone);
Expand All @@ -32,7 +35,9 @@ protected function christmasDay(int $year): array
return [$key => $christmasDay];
}


/**
* @return array<string, CarbonImmutable>
*/
protected function boxingDay(int $year): array
{
$christmasDay = new CarbonImmutable($year . "-12-25", $this->timezone);
Expand All @@ -56,6 +61,8 @@ protected function boxingDay(int $year): array
* Get holiday
*
* If it falls on a weekend, the new day to be observed is the next monday
*
* @return array<string, CarbonImmutable>
*
*/
protected function getHoliday(string $nameOfHoliday, int $year, string $monthAndDay): array
Expand Down

0 comments on commit b57f4ed

Please sign in to comment.