Skip to content

Commit 970dcb9

Browse files
committed
minor #12170 Update intl.rst (ro0NL)
This PR was merged into the 4.4 branch. Discussion ---------- Update intl.rst tiny follow up of #12105 cc @OskarStark Commits ------- d757a2d Update intl.rst
2 parents 5deafac + d757a2d commit 970dcb9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/intl.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,10 @@ of officially recognized countries and territories::
172172

173173
\Locale::setDefault('en');
174174

175-
// Indexed with alpha-2
176175
$countries = Countries::getNames();
177176
// ('alpha2Code' => 'countryName')
178177
// => ['AF' => 'Afghanistan', 'AX' => 'Åland Islands', ...]
179178

180-
// Indexed with alhpa-3
181179
$countries = Countries::getAlpha3Names();
182180
// ('alpha3Code' => 'countryName')
183181
// => ['AFG' => 'Afghanistan', 'ALA' => 'Åland Islands', ...]
@@ -188,6 +186,10 @@ of officially recognized countries and territories::
188186
$country = Countries::getAlpha3Name('NOR');
189187
// => 'Norway'
190188

189+
.. versionadded:: 4.4
190+
191+
The support for alpha3 codes was introduced in Symfony 4.4.
192+
191193
All methods accept the translation locale as the last, optional parameter,
192194
which defaults to the current default locale::
193195

@@ -209,7 +211,7 @@ to catching the exception, you can also check if a given country code is valid::
209211

210212
$isValidCountry = Countries::exists($alpha2Code);
211213

212-
Or if you have a alpha3 country code you want to check:
214+
Or if you have a alpha3 country code you want to check::
213215

214216
$isValidCountry = Countries::alpha3CodeExists($alpha3Code);
215217

0 commit comments

Comments
 (0)