From eb01d15e78e063fcd05c3e24ef49693727347a09 Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 23 Mar 2024 01:12:53 +0100 Subject: [PATCH] Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate --- htdocs/fichinter/class/fichinter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index d54497125c1..1624e74ff14 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -783,7 +783,7 @@ class Fichinter extends CommonObject $thm = $this->author->thm; foreach ($this->lines as $line) { - $amount += ($line->duration / 60 / 60 * $thm); + $amount += ($line->duration / 60 / 60 * (float) $thm); } return (float) price2num($amount, 'MT');