From 0dddc1c1925ac233282f943e0c540de9f66ca8e5 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 22 Nov 2023 12:23:47 +0100 Subject: [PATCH] Add missing EU countries --- src/Countries.php | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/src/Countries.php b/src/Countries.php index c89cf0f..2f73109 100644 --- a/src/Countries.php +++ b/src/Countries.php @@ -285,7 +285,41 @@ public function hasCountryCode(string $code): bool */ public function getCountryCodesInEU(): array { - return ['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']; + return [ + 'AT', // Austria + 'AX', // Aland islands => Finland + 'BE', // Belgium + 'BG', // Bulgaria + 'CY', // Cyprus + 'CZ', // Czechia + 'DE', // Germany + 'DK', // Denmark + 'EE', // Estonia + 'ES', // Spain + 'FI', // Finland + 'FR', // France + 'GF', // French guiana => France + 'GP', // Guadeloupe => France + 'GR', // Greece + 'HU', // Hungary + 'HR', // Croatia + 'IE', // Ireland + 'IT', // Italy + 'LT', // Lithuania + 'LU', // Luxembourg + 'LV', // Latvia + 'MT', // Malta + 'MQ', // Martinique => France + 'NL', // Netherlands + 'PL', // Poland + 'PT', // Portugal + 'RE', // Reunion => France + 'RO', // Romania + 'SE', // Sweden + 'SI', // Slovenia + 'SK', // Slovakia + 'YT', // Mayotte => France + ]; } /**