@@ -164,12 +164,10 @@ of officially recognized countries and territories::
164
164
165
165
\Locale::setDefault('en');
166
166
167
- // Indexed with alpha-2
168
167
$countries = Countries::getNames();
169
168
// ('alpha2Code' => 'countryName')
170
169
// => ['AF' => 'Afghanistan', 'AX' => 'Åland Islands', ...]
171
170
172
- // Indexed with alhpa-3
173
171
$countries = Countries::getAlpha3Names();
174
172
// ('alpha3Code' => 'countryName')
175
173
// => ['AFG' => 'Afghanistan', 'ALA' => 'Åland Islands', ...]
@@ -180,6 +178,10 @@ of officially recognized countries and territories::
180
178
$country = Countries::getAlpha3Name('NOR');
181
179
// => 'Norway'
182
180
181
+ .. versionadded :: 4.4
182
+
183
+ The support for alpha3 codes was introduced in Symfony 4.4.
184
+
183
185
All methods accept the translation locale as the last, optional parameter,
184
186
which defaults to the current default locale::
185
187
@@ -201,7 +203,7 @@ to catching the exception, you can also check if a given country code is valid::
201
203
202
204
$isValidCountry = Countries::exists($alpha2Code);
203
205
204
- Or if you have a alpha3 country code you want to check:
206
+ Or if you have a alpha3 country code you want to check::
205
207
206
208
$isValidCountry = Countries::alpha3CodeExists($alpha3Code);
207
209
0 commit comments