Skip to content

Commit

Permalink
Update Countries.php
Browse files Browse the repository at this point in the history
fixed Countries::isCountryCodeInEU(string ) should return false after Brexit transition period ends on Dec 31, 2020
  • Loading branch information
mixisLv authored Dec 30, 2020
1 parent 97c9fb5 commit 2c81d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,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'];

// Brexit transition period ends on Dec 31 23:59, so this method should return true only until then
if ((new DateTime('now')) < (new DateTime('2021-01-01 00:00:00'))) {
Expand Down

0 comments on commit 2c81d22

Please sign in to comment.