Skip to content

Commit

Permalink
PHPStan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Dec 4, 2024
1 parent 4c12360 commit 8ed09c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/OrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ public function actionPaymentAmountData(): Response
$paymentAmount = MoneyHelper::toMoney(['value' => $paymentAmount, 'currency' => $baseCurrency, 'locale' => $locale]);
$paymentAmount = MoneyHelper::toDecimal($paymentAmount);

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

$outstandingBalance = $order->outstandingBalance;
Expand Down

0 comments on commit 8ed09c9

Please sign in to comment.