Skip to content
Triggered via push January 12, 2024 15:56
Status Failure
Total duration 23s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors
phpstan: src/Countries/Belgium.php#L14
Method Spatie\Holidays\Countries\Belgium::get() return type has no value type specified in iterable type array.
phpstan: src/Countries/Belgium.php#L41
Method Spatie\Holidays\Countries\Belgium::fixedHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|string|false>.
phpstan: src/Countries/Country.php#L13
Argument of an invalid type array<int, string>|false supplied for foreach, only iterables are supported.
phpstan: src/Countries/Country.php#L35
Method Spatie\Holidays\Countries\Country::get() return type has no value type specified in iterable type array.
phpstan: src/Holidays.php#L23
Property Spatie\Holidays\Holidays::$country (Spatie\Holidays\Countries\Country) does not accept Spatie\Holidays\Countries\Country|null.
phpstan: src/Holidays.php#L44
Method Spatie\Holidays\Holidays::country() has no return type specified.
phpstan: src/Holidays.php#L52
Property Spatie\Holidays\Holidays::$country (Spatie\Holidays\Countries\Country) does not accept Spatie\Holidays\Countries\Country|null.
phpstan
Ignored error pattern #^Method Spatie\\Holidays\\Actions\\Belgium\:\:fixedHolidays\(\) should return array\<string, Carbon\\CarbonImmutable\> but returns array\<string, Carbon\\CarbonImmutable\|string\|false\>\.$# in path /home/runner/work/holidays/holidays/src/Actions/Belgium.php was not matched in reported errors.
phpstan
Process completed with exit code 1.