-
-
Notifications
You must be signed in to change notification settings - Fork 196
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 Ukrainian holidays #112
Conversation
Could you look at the failing tests? Thanks! |
Hi @Nielsvanpach, Sure, should be good now. |
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!
src/Countries/Ukraine.php
Outdated
} | ||
|
||
|
||
protected function orthodox_eastern($year): string |
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.
In Country.php we already have a orthodox calculation. Could you verify if that works?
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.
Perfect, yes this is working correctly!
src/Countries/Ukraine.php
Outdated
/** @return array<string, CarbonImmutable> */ | ||
protected function variableHolidays(int $year): array | ||
{ | ||
$easter = CarbonImmutable::createFromTimestamp($this->orthodox_eastern($year)) |
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.
You can use $this->easter($year) instead
src/Countries/Ukraine.php
Outdated
|
||
class Ukraine extends Country | ||
{ | ||
protected function __construct( |
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.
If you don't need the constructor, you can remove it
PR looks good! 👍 I'll leave this one open until I've seen some approvals! |
Thanks for reviewing. |
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.
lgtm
Thanks! |
Hi Spatie!
There is one extra function for calculating the correct Eastern date due to the Meeus Julian algorithm or Revised Julian calendar