Skip to content

Add holidays for Sweden #361

Add holidays for Sweden

Add holidays for Sweden #361

Re-run triggered January 22, 2024 08:51
Status Failure
Total duration 28s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
phpstan: src/Countries/Sweden.php#L16
Method Spatie\Holidays\Countries\Sweden::allHolidays() should return array<string, Carbon\CarbonImmutable|string> but returns array<string, bool|Carbon\CarbonImmutable>.
phpstan: src/Countries/Sweden.php#L34
Cannot call method isSaturday() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Sweden.php#L35
Cannot call method next() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Sweden.php#L40
Cannot call method isSaturday() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Sweden.php#L41
Cannot call method next() on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Sweden.php#L44
Method Spatie\Holidays\Countries\Sweden::variableHolidays() should return array<string, Carbon\CarbonImmutable> but returns array<string, Carbon\CarbonImmutable|false>.
phpstan: src/Countries/Sweden.php#L50
Cannot access property $day on Carbon\CarbonImmutable|false.
phpstan: src/Countries/Sweden.php#L51
Cannot call method subWeek() on Carbon\CarbonImmutable|false.
phpstan
Process completed with exit code 1.