From 46ee9889b58c97f8a6b758250f19c9dae00bc0cf Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 23 Mar 2024 01:13:10 +0100 Subject: [PATCH] Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate --- htdocs/public/stripe/ipn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/stripe/ipn.php b/htdocs/public/stripe/ipn.php index ceba4a94a41..ed8dac838c5 100644 --- a/htdocs/public/stripe/ipn.php +++ b/htdocs/public/stripe/ipn.php @@ -243,7 +243,7 @@ if ($event->type == 'payout.created') { $typeto = 'VIR'; if (!$error) { - $bank_line_id_from = $accountfrom->addline($dateo, $typefrom, $label, -1 * price2num($amount), '', '', $user); + $bank_line_id_from = $accountfrom->addline($dateo, $typefrom, $label, -1 * (float) price2num($amount), '', '', $user); } if (!($bank_line_id_from > 0)) { $error++;