diff --git a/README.md b/README.md index 46b2366..79de99c 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,11 @@ use Money\Money; use PetrKnap\SpaydQr\SpaydQr; $iban = 'CZ7801000000000000000123'; -$amount = 799.50; +$amount = Money::CZK((int)(799.50 * 100)); echo ''; ``` diff --git a/composer.json b/composer.json index da125fd..b8fe016 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "require": { "php": ">=8.0", "endroid/qr-code": "^3.5", - "moneyphp/money": "^3.2", + "moneyphp/money": "^4.0", "sunfoxcz/spayd-php": "^2.0" }, "require-dev": {