From 2c81d225a978054768a53633e27462da1a0f5987 Mon Sep 17 00:00:00 2001 From: Mikus Rozenbergs Date: Wed, 30 Dec 2020 17:47:30 +0200 Subject: [PATCH] Update Countries.php fixed Countries::isCountryCodeInEU(string ) should return false after Brexit transition period ends on Dec 31, 2020 --- src/Countries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Countries.php b/src/Countries.php index 2e40834..8bad359 100644 --- a/src/Countries.php +++ b/src/Countries.php @@ -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'))) {