Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
petersowah committed Jan 24, 2024
1 parent 948c63a commit 2900145
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/Countries/Ghana.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace Spatie\Holidays\Countries;

use Carbon\CarbonImmutable;

class Ghana extends Country
{

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

protected function allHolidays(int $year): array
{
return array_merge([
'New Year\'s Day' => '01-01',
'Constitution Day' => '01-07',
'Independence Day' => '03-06',
'May Day' => '05-01',
'Founder\'s Day' => '08-04',
'Kwame Nkrumah Memorial Day' => '09-21',
'Christmas Day' => '12-25',
'Boxing Day' => '12-26',
], $this->variableHolidays($year));
}

protected function variableHolidays(int $year): array

Check failure on line 29 in src/Countries/Ghana.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Spatie\Holidays\Countries\Ghana::variableHolidays() return type has no value type specified in iterable type array.
{
$easter = CarbonImmutable::createFromTimestamp(easter_date($year))
->setTimezone('Africa/Accra');

return [];
}
}

0 comments on commit 2900145

Please sign in to comment.