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

Added the syrian holidays #65

Closed
wants to merge 20 commits into from
Closed

Conversation

amralsaleeh
Copy link

No description provided.

Copy link
Member

@Nielsvanpach Nielsvanpach left a comment

Choose a reason for hiding this comment

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

Thanks! Can you rebase from main, so I can run the tests here?

src/Countries/Syria.php Outdated Show resolved Hide resolved
@amralsaleeh
Copy link
Author

Thanks @Nielsvanpach
Everything should be fine now and up-to-date

@Nielsvanpach
Copy link
Member

Aren't there any official Islamic holidays in Syria?

@amralsaleeh
Copy link
Author

Aren't there any official Islamic holidays in Syria?

Well.. sure there are Islamic holidays, but these dates are not known exactly and change every year, because it depends on the moon's movement and based on the decision of the Jurisprudential Council of the Syrian government

src/Countries/Syria.php Outdated Show resolved Hide resolved
src/Countries/Syria.php Outdated Show resolved Hide resolved
@Nielsvanpach
Copy link
Member

I merged a PR for Syria, but this one seems more advanced. Would you care to fix the merge conflicts?

src/Countries/Syria.php Outdated Show resolved Hide resolved
->not()->toBeEmpty();

expect(formatDates($holidays))->toMatchSnapshot();
})->with([1970, 1973, 1974, 1975, 1999, 2000, 2001, 2005, 2006, 2007, 2008, 2009, 2016, 2017, 2021, 2022, 2023, 2024, 2025, 2032, 2033, 2034, 2037]);
Copy link
Member

Choose a reason for hiding this comment

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

No need to test them all. Could you pick a few and verify if the generated results in the snapshots are correct?

@amralsaleeh
Copy link
Author

I merged a PR for Syria, but this one seems more advanced. Would you care to fix the merge conflicts?

the merged PR is for 2024 only!
It can not be true for other years!

@Nielsvanpach
Copy link
Member

Nielsvanpach commented Feb 14, 2024

Can you take a look at the failing tests & phpstan?

Edit: you can run composer analyse locally for phpstan

@amralsaleeh
Copy link
Author

Everything is done and working nicely. Could you please add Syria to the ignoreError section inside the phpstan.baseline file, like this:

                -
                        message: "#^Ternary operator condition is always true\\.$#"
                        count: 3
                        path: src/Countries/Turkey.php

                -

Thanks

@amralsaleeh
Copy link
Author

👀

@spatie-bot
Copy link

Dear contributor,

because this pull request seems to be inactive for quite some time now, I've automatically closed it. If you feel this pull request deserves some attention from my human colleagues feel free to reopen it.

@spatie-bot spatie-bot closed this Jul 16, 2024
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.

3 participants