Skip to content

Commit

Permalink
Merge pull request #34 from mixisLv/patch-1
Browse files Browse the repository at this point in the history
Update Countries.php
  • Loading branch information
dannyvankooten authored Dec 30, 2020
2 parents 97c9fb5 + 2c81d22 commit b12b6e4
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 b12b6e4

Please sign in to comment.