Added state support and added states for Germany and Austria #71
Annotations
9 errors
phpstan:
src/Countries/Country.php#L1
Ignored error pattern #^Method Spatie\\Holidays\\Countries\\Country\:\:get\(\) should return array\<string, Carbon\\CarbonImmutable\|string\> but returns array\<string, Carbon\\CarbonImmutable\|false\>\.$# in path /home/runner/work/holidays/holidays/src/Countries/Country.php was not matched in reported errors.
|
phpstan:
src/Countries/Country.php#L1
Ignored error pattern #^Parameter \#2 \$callback of function uasort expects callable\(bool\|Carbon\\CarbonImmutable, bool\|Carbon\\CarbonImmutable\)\: int, Closure\(Carbon\\CarbonImmutable, Carbon\\CarbonImmutable\)\: int\<\-1, 1\> given\.$# in path /home/runner/work/holidays/holidays/src/Countries/Country.php was not matched in reported errors.
|
phpstan:
src/Countries/Country.php#L107
Method Spatie\Holidays\Countries\Country::formatHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|false>.
|
phpstan:
src/Countries/Germany.php#L17
Method Spatie\Holidays\Countries\Germany::allHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|string>.
|
phpstan:
src/Holidays.php#L1
Ignored error pattern #^Property Spatie\\Holidays\\Holidays\:\:\$holidays \(array\<string, Carbon\\CarbonImmutable\>\) does not accept array\<string, Carbon\\CarbonImmutable\|string\>\.$# in path /home/runner/work/holidays/holidays/src/Holidays.php was not matched in reported errors.
|
phpstan:
src/States/State.php#L39
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/States/State.php#L42
Method Spatie\Holidays\States\State::get() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|false>.
|
phpstan:
src/States/State.php#L56
Argument of an invalid type array<int, string>|false supplied for foreach, only iterables are supported.
|
phpstan
Process completed with exit code 1.
|