Skip to content

Commit 7b8e321

Browse files
funkjedibarryvdh
authored andcommitted
Use of string currencies is deprecated (#177)
1 parent 7b1f5a3 commit 7b8e321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Message/AbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public function getMoney($amount = null)
330330
throw new InvalidRequestException('Amount precision is too high for currency.');
331331
}
332332

333-
$money = $moneyParser->parse((string) $number, $currency->getCode());
333+
$money = $moneyParser->parse((string) $number, $currency);
334334

335335
// Check for a negative amount.
336336
if (!$this->negativeAmountAllowed && $money->isNegative()) {

0 commit comments

Comments
 (0)