mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
# Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type I got the following message: `Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in D:\mdeweerd\workspace\dolibarr\htdocs\projet\list.php on line 233` I examined the phan report and there was no mention of this because dol_eval was said to return mixed. In order to detect such cases, I amended the dol_eval return type to ensure to find most of the locations where a cast is needed.