Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate

This commit is contained in:
MDW 2024-03-23 01:12:53 +01:00
parent c517a8008a
commit eb01d15e78
No known key found for this signature in database

View file

@ -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');