Skip to content

Commit

Permalink
Don't mention conflicts with ISO currencies
Browse files Browse the repository at this point in the history
This is the same with string currency codes, and is rather obvious.
  • Loading branch information
BenMorel committed Apr 19, 2020
1 parent bbda5d2 commit 1eff1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ echo $money->formatWith($formatter); // US$5·000.00

When retrieving the currency: you can use ISO currency codes directly in `Money::of()` and `Money::ofMinor()`. For custom currencies, you'll need to convert them to `Currency` instances first.

- **As an integer**: if you only deal with ISO currencies, or custom currencies with a numeric code that doesn't conflict with ISO currencies, you may store the currency code as an integer:
- **As an integer**: if you only deal with ISO currencies, or custom currencies with a numeric code, you may store the currency code as an integer:

```php
$numericCode = $money->getCurrency()->getNumericCode();
Expand Down

0 comments on commit 1eff1e9

Please sign in to comment.