-
Notifications
You must be signed in to change notification settings - Fork 63
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 exceptions rates support #61
base: main
Are you sure you want to change the base?
Conversation
Hi @trippo I would recommend to split the PR, you're trying to do 2 things here:
The second one is a breaking change |
Re-added GB validator |
@VincentLanglet please review |
I'm not the maintainer, I cannot
|
@@ -258,6 +258,7 @@ class Countries implements \Iterator, \ArrayAccess | |||
'VI' => 'Virgin Islands, U.S.', | |||
'WF' => 'Wallis And Futuna', | |||
'EH' => 'Western Sahara', | |||
'XI' => 'Northern Ireland', |
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.
Xi is not a valid IsoCode cf https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
It's only used for VAT but it's not an isocode.
src/Countries.php
Outdated
@@ -278,7 +279,7 @@ public function hasCountryCode(string $code) : bool | |||
*/ | |||
public function isCountryCodeInEU(string $code) : bool | |||
{ | |||
$eu = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK']; | |||
$eu = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK', 'XI']; |
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.
Same, XI is not a valid isocode
Hello @trippo, I'm the maintainer yet I wholeheartedly agree with @VincentLanglet - unfortunately there are so many changes in this PR targeting several separate things that it's really hard for me to confirm what is changing and whether this is safe to merge in the codebase. Separate PR's would be super helpful in making this a little easier for me. |
2e14811
to
5d04808
Compare
No description provided.