Skip to content

Commit

Permalink
Fix tests snapshot running.
Browse files Browse the repository at this point in the history
  • Loading branch information
bahiirwa committed Jan 18, 2024
1 parent fcb596a commit 8734ba3
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Countries/Uganda.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ protected function allHolidays(int $year): array
return array_merge([

Check failure on line 17 in src/Countries/Uganda.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Spatie\Holidays\Countries\Uganda::allHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|string>.
'New Year\'s Day' => '01-01',
'Liberation Day' => '01-26',
'Archbishop Janani Luwum Day' => '02-16',
'Janani Luwum Day' => '02-16',
'International Women\'s Day' => '03-08',
'Good Friday' => '03-29',
'Eid al-Fitr' => '04-10',
'Labour Day' => '05-01',
'Martyr\'s Day' => '06-03',
Expand All @@ -38,8 +37,9 @@ protected function variableHolidays(int $year): array
->setTimezone('Africa/Nairobi');

return [
'Good Friday' => $easter->subDays(2),
'Easter Sunday' => $easter,
'Easter Monday' => $easter->addDays(),
'Easter Monday' => $easter->addDay(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"name": "New Year's Day",
"date": "2024-01-01"
},
{
"name": "Liberation Day",
"date": "2024-01-26"
},
{
"name": "Janani Luwum Day",
"date": "2024-02-16"
},
{
"name": "International Women's Day",
"date": "2024-03-08"
},
{
"name": "Good Friday",
"date": "2024-03-29"
},
{
"name": "Easter Monday",
"date": "2024-04-01"
},
{
"name": "Eid al-Fitr",
"date": "2024-04-10"
},
{
"name": "Labour Day",
"date": "2024-05-01"
},
{
"name": "Martyr's Day",
"date": "2024-06-03"
},
{
"name": "National Heroes Day",
"date": "2024-06-09"
},
{
"name": "Eid al-Adha",
"date": "2024-06-17"
},
{
"name": "Independence Day",
"date": "2024-10-09"
},
{
"name": "Christmas Day",
"date": "2024-12-25"
},
{
"name": "Boxing Day",
"date": "2024-12-26"
}
]

0 comments on commit 8734ba3

Please sign in to comment.