-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add holidays for Sweden #137
Conversation
Here you go @riasvdv :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you look at the phpstan errors?
protected function allHolidays(int $year): array | ||
{ | ||
return array_merge([ | ||
'Nyårsdagen' => CarbonImmutable::create($year, 1, 1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use the same format for fixed holidays, as in other Country classes?
$easter = CarbonImmutable::createFromTimestamp(easter_date($year)) | ||
->setTimezone('Europe/Stockholm'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$easter = CarbonImmutable::createFromTimestamp(easter_date($year)) | |
->setTimezone('Europe/Stockholm'); | |
$easter = $this->easter($year); |
Closing as another PR for Sweden has been merged |
Re-opening #31 as it was closed by mistake.