@@ -314,9 +314,7 @@ to catching the exception, you can also check if a given currency code is valid:
314314If the currencies need to be filtered, there are also helpers to query and
315315validate currencies in relation to countries. These methods use ICU metadata
316316(``tender ``, ``from `` and ``to `` dates) to determine whether a currency is
317- `legal tender `_ and/or active at a given point in time.
318-
319- .. code-block :: php
317+ `legal tender `_ and/or active at a given point in time::
320318
321319 use Symfony\Component\Intl\Currencies;
322320
@@ -335,7 +333,7 @@ validate currencies in relation to countries. These methods use ICU metadata
335333
336334 // Validate a currency for a given country
337335 $isOk = Currencies::isValidInCountry('CH', 'CHF');
338- // true
336+ // true
339337
340338 // Check if a currency is valid in *any* country on a specific date
341339 $isGlobal = Currencies::isValidInAnyCountry(
@@ -346,9 +344,9 @@ validate currencies in relation to countries. These methods use ICU metadata
346344 );
347345 // true
348346
349- Note that some currencies (especially non-legal-tender ones) do not have validity ranges defined.
350- In such cases, a :class: `\ R untimeException ` will be thrown.
351- In addition, an :class: `\ I nvalidArgumentException ` will be thrown if the specified currency is invalid.
347+ Note that some currencies (especially non-legal-tender ones) do not have validity ranges defined.
348+ In such cases, a :class: `RuntimeException ` will be thrown.
349+ In addition, an :class: `InvalidArgumentException ` will be thrown if the specified currency is invalid.
352350
353351.. _component-intl-timezones :
354352
0 commit comments