Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
# 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.
- Loading branch information