Skip to content

Commit

Permalink
Fix PHPStan failures in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amralsaleeh committed Feb 15, 2024
1 parent b9f4e2a commit abb61b8
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[
{
"name": "New Year's Day",
"date": "1970-01-01"
},
{
"name": "Eid al-Adha Eve",
"date": "1970-02-16"
},
{
"name": "Eid al-Adha 1. Day",
"date": "1970-02-17"
},
{
"name": "Eid al-Adha 2. Day",
"date": "1970-02-18"
},
{
"name": "Eid al-Adha 3. Day",
"date": "1970-02-19"
},
{
"name": "Eid al-Adha 4. Day",
"date": "1970-02-20"
},
{
"name": "Mother's Day",
"date": "1970-03-21"
},
{
"name": "Western Easter",
"date": "1970-03-29"
},
{
"name": "Independence Day",
"date": "1970-04-17"
},
{
"name": "Labor Day",
"date": "1970-05-01"
},
{
"name": "Eastern Easter",
"date": "1970-05-03"
},
{
"name": "Martyrs' Day",
"date": "1970-05-06"
},
{
"name": "Anniversary of the October War",
"date": "1970-10-06"
},
{
"name": "Eid al-Fitr Eve",
"date": "1970-11-30"
},
{
"name": "Eid al-Fitr 1. Day",
"date": "1970-12-01"
},
{
"name": "Eid al-Fitr 2. Day",
"date": "1970-12-02"
},
{
"name": "Eid al-Fitr 3. Day",
"date": "1970-12-03"
},
{
"name": "Christmas",
"date": "1970-12-25"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[
{
"name": "New Year's Day",
"date": "2037-01-01"
},
{
"name": "Eid al-Adha Eve",
"date": "2037-01-25"
},
{
"name": "Eid al-Adha 1. Day",
"date": "2037-01-26"
},
{
"name": "Eid al-Adha 2. Day",
"date": "2037-01-27"
},
{
"name": "Eid al-Adha 3. Day",
"date": "2037-01-28"
},
{
"name": "Eid al-Adha 4. Day",
"date": "2037-01-29"
},
{
"name": "Mother's Day",
"date": "2037-03-21"
},
{
"name": "Western Easter",
"date": "2037-04-05"
},
{
"name": "Independence Day",
"date": "2037-04-17"
},
{
"name": "Labor Day",
"date": "2037-05-01"
},
{
"name": "Martyrs' Day",
"date": "2037-05-06"
},
{
"name": "Eastern Easter",
"date": "2037-05-10"
},
{
"name": "Anniversary of the October War",
"date": "2037-10-06"
},
{
"name": "Eid al-Fitr Eve",
"date": "2037-11-08"
},
{
"name": "Eid al-Fitr 1. Day",
"date": "2037-11-09"
},
{
"name": "Eid al-Fitr 2. Day",
"date": "2037-11-10"
},
{
"name": "Eid al-Fitr 3. Day",
"date": "2037-11-11"
},
{
"name": "Christmas",
"date": "2037-12-25"
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"name": "\u064a\u0648\u0645 \u0631\u0623\u0633 \u0627\u0644\u0633\u0646\u0629",
"name": "\u0631\u0623\u0633 \u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u064a\u0644\u0627\u062f\u064a\u0629",
"date": "2024-01-01"
},
{
Expand Down Expand Up @@ -28,7 +28,7 @@
"date": "2024-04-12"
},
{
"name": "\u0639\u064a\u062f \u0627\u0644\u0645\u0639\u0644\u0645",
"name": "\u0639\u064a\u062f \u0627\u0644\u0627\u0633\u062a\u0642\u0644\u0627\u0644",
"date": "2024-04-17"
},
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Countries/SyriaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
->toBeArray()
->not()->toBeEmpty()
->and(formatDates($holidays))->toMatchSnapshot();
})->with([2022, 2023, 2024]);
})->with([1970, 2022, 2023, 2024, 2037]);

it('can translate syrian holidays into arabic', function () {

$holidays = Holidays::for(country: 'sy', year: 2024, locale: 'ar')->get();

expect($holidays)
->toBeArray()
->not()->toBeEmpty();
Expand Down

0 comments on commit abb61b8

Please sign in to comment.