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 1421afd commit cda8afcCopy full SHA for cda8afc
src/Common/Message/AbstractRequest.php
@@ -308,14 +308,10 @@ protected function getCurrencies()
308
* @return null|Money
309
* @throws InvalidRequestException
310
*/
311
- public function getMoney($amount = null)
+ private function getMoney($amount = null)
312
{
313
$amount = $amount !== null ? $amount : $this->getParameter('amount');
314
315
- if ($amount instanceof Money) {
316
- return $amount;
317
- }
318
-
319
if ($amount !== null) {
320
$moneyParser = new DecimalMoneyParser($this->getCurrencies());
321
$currencyCode = $this->getCurrency() ?: 'USD';
0 commit comments