wip #30
Annotations
9 errors
phpstan:
src/Countries/Belgium.php#L1
Ignored error pattern #^Method Spatie\\Holidays\\Countries\\Belgium\:\:fixedHolidays\(\) should return array\<string, Carbon\\CarbonImmutable\> but returns array\<string, Carbon\\CarbonImmutable\|string\|false\>\.$# in path /home/runner/work/holidays/holidays/src/Countries/Belgium.php was not matched in reported errors.
|
phpstan:
src/Countries/Belgium.php#L17
Method Spatie\Holidays\Countries\Belgium::allHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|string>.
|
phpstan:
src/Countries/Country.php#L31
Parameter #2 $callback of function uasort expects callable(bool|Carbon\CarbonImmutable, bool|Carbon\CarbonImmutable): int, Closure(Carbon\CarbonImmutable, Carbon\CarbonImmutable): int<-1, 1> given.
|
phpstan:
src/Countries/Country.php#L34
Method Spatie\Holidays\Countries\Country::get() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|false>.
|
phpstan:
src/Countries/Hungary.php#L1
Ignored error pattern #^Method Spatie\\Holidays\\Countries\\Hungary\:\:fixedHolidays\(\) should return array\<string, Carbon\\CarbonImmutable\> but returns array\<string, Carbon\\CarbonImmutable\|string\|false\>\.$# in path /home/runner/work/holidays/holidays/src/Countries/Hungary.php was not matched in reported errors.
|
phpstan:
src/Countries/Hungary.php#L17
Method Spatie\Holidays\Countries\Hungary::allHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|string>.
|
phpstan:
src/Countries/Netherlands.php#L1
Ignored error pattern #^Method Spatie\\Holidays\\Countries\\Netherlands\:\:fixedHolidays\(\) should return array\<string, Carbon\\CarbonImmutable\> but returns array\<string, Carbon\\CarbonImmutable\|string\|false\>\.$# in path /home/runner/work/holidays/holidays/src/Countries/Netherlands.php was not matched in reported errors.
|
phpstan:
src/Holidays.php#L57
Parameter #1 $callback of function array_map expects (callable(Carbon\CarbonImmutable): mixed)|null, Closure(string): non-falsy-string given.
|
phpstan
Process completed with exit code 1.
|