@@ -164,12 +164,10 @@ of officially recognized countries and territories::
164164
165165 \Locale::setDefault('en');
166166
167- // Indexed with alpha-2
168167 $countries = Countries::getNames();
169168 // ('alpha2Code' => 'countryName')
170169 // => ['AF' => 'Afghanistan', 'AX' => 'Åland Islands', ...]
171170
172- // Indexed with alhpa-3
173171 $countries = Countries::getAlpha3Names();
174172 // ('alpha3Code' => 'countryName')
175173 // => ['AFG' => 'Afghanistan', 'ALA' => 'Åland Islands', ...]
@@ -180,6 +178,10 @@ of officially recognized countries and territories::
180178 $country = Countries::getAlpha3Name('NOR');
181179 // => 'Norway'
182180
181+ .. versionadded :: 4.4
182+
183+ The support for alpha3 codes was introduced in Symfony 4.4.
184+
183185All methods accept the translation locale as the last, optional parameter,
184186which defaults to the current default locale::
185187
@@ -201,7 +203,7 @@ to catching the exception, you can also check if a given country code is valid::
201203
202204 $isValidCountry = Countries::exists($alpha2Code);
203205
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::
205207
206208 $isValidCountry = Countries::alpha3CodeExists($alpha3Code);
207209
0 commit comments