Add holidays for Sweden #361
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.
|