Skip to content

Commit

Permalink
Non-ISO currency codes are accepted in MoneyBag::getAmount()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jun 4, 2020
1 parent ee7c9c7 commit a066e30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MoneyBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ final class MoneyBag implements MoneyContainer
/**
* Returns the amount in the given currency contained in the bag, as a rational number.
*
* @param Currency|string|int $currency The Currency instance, ISO currency code or ISO numeric currency code.
* Non-ISO (non-numeric) currency codes are accepted.
*
* @param Currency|string|int $currency The Currency instance, currency code or ISO numeric currency code.
*
* @return BigRational
*/
Expand Down

0 comments on commit a066e30

Please sign in to comment.