Skip to content

Add Algerian holidays #799

Add Algerian holidays

Add Algerian holidays #799

Re-run triggered February 7, 2024 11:18
Status Failure
Total duration 34s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Countries/Australia.php#L44
Cannot call method modify() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Australia.php#L44
Using nullsafe method call on non-nullable type Carbon\CarbonImmutable|false. Use -> instead.
phpstan: src/Countries/Country.php#L38
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#L41
Method Spatie\Holidays\Countries\Country::get() should return array<string, Carbon\CarbonImmutable|string> but returns array<string, Carbon\CarbonImmutable|false>.
phpstan: src/Countries/Country.php#L51
Cannot call method startOfDay() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Country.php#L62
Cannot call method startOfDay() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Egypt.php#L305
Cannot call method addDays() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Egypt.php#L309
Method Spatie\Holidays\Countries\Egypt::getIslamicHolidayDatesForYear() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|false>.
phpstan: src/Countries/Sweden.php#L32
Cannot call method startOfDay() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Sweden.php#L38
Cannot call method startOfDay() on Carbon\CarbonImmutable|false.