Skip to content
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

Bolivian holidays #40

Merged
merged 6 commits into from
Jan 19, 2024
Merged

Bolivian holidays #40

merged 6 commits into from
Jan 19, 2024

Conversation

rats4final
Copy link
Contributor

Added support for Bolivian holidays; for now, they are only nationwide holidays. However, this could change if this package adds support for regional holidays as well.

Based on: reference

Also this could be further improved by adding "conditional holidays" because afaik in Bolivia if any holiday lands on a Sunday, the government will most likely declare the following day as a holiday as well, so that everyone has the day off, this practice can also occur regionally

@Nielsvanpach
Copy link
Member

Could you rebase your branch on our main branch? That way I can run the tests

@rats4final
Copy link
Contributor Author

alright i think it's done :)

@rats4final rats4final force-pushed the bolivian-holidays branch 2 times, most recently from 2da865c to 6aa4153 Compare January 19, 2024 13:47
@rats4final
Copy link
Contributor Author

All fixed

/** @return array<string, CarbonImmutable> */
protected function variableHolidays(int $year): array
{
$easter = $this->easter((string) $year);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$easter = $this->easter((string) $year);
$easter = $this->easter($year);

@Nielsvanpach Nielsvanpach merged commit b4cdb9c into spatie:main Jan 19, 2024
@Nielsvanpach
Copy link
Member

Thanks!

Crawford30 pushed a commit to Crawford30/holidays that referenced this pull request Jan 19, 2024
* feature: add bolivian holidays

* test: add bolivia test

* test snap

* fixed typo and phpstan

* calculate correct easter date

* Fix styling

---------

Co-authored-by: rats4final <rats4final@gmail.con>
Co-authored-by: rats4final <rats4final@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants