We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1f5a3 commit 7b8e321Copy full SHA for 7b8e321
src/Common/Message/AbstractRequest.php
@@ -330,7 +330,7 @@ public function getMoney($amount = null)
330
throw new InvalidRequestException('Amount precision is too high for currency.');
331
}
332
333
- $money = $moneyParser->parse((string) $number, $currency->getCode());
+ $money = $moneyParser->parse((string) $number, $currency);
334
335
// Check for a negative amount.
336
if (!$this->negativeAmountAllowed && $money->isNegative()) {
0 commit comments