Skip to content

Commit 8ed09c9

Browse files
committed
PHPStan fix
1 parent 4c12360 commit 8ed09c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/OrdersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ public function actionPaymentAmountData(): Response
12451245
$paymentAmount = MoneyHelper::toMoney(['value' => $paymentAmount, 'currency' => $baseCurrency, 'locale' => $locale]);
12461246
$paymentAmount = MoneyHelper::toDecimal($paymentAmount);
12471247

1248-
$baseCurrencyPaymentAmount = $paymentCurrencies->convertCurrency($paymentAmount, $paymentCurrency, $baseCurrency);
1248+
$baseCurrencyPaymentAmount = $paymentCurrencies->convertCurrency((float)$paymentAmount, $paymentCurrency, $baseCurrency);
12491249
$baseCurrencyPaymentAmountAsCurrency = Craft::t('commerce', 'Pay {amount} of {currency} on the order.', ['amount' => Currency::formatAsCurrency($baseCurrencyPaymentAmount, $baseCurrency), 'currency' => $baseCurrency]);
12501250

12511251
$outstandingBalance = $order->outstandingBalance;

0 commit comments

Comments
 (0)