dolibarr/htdocs/projet
MDW e64e57716c
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.
2024-04-02 22:52:52 +02:00
..
activity Fix PhanPluginDuplicateConditionalUnnecessary "X ? Y : Y" (Simplify) 2024-03-14 19:47:23 +01:00
admin Qual: Fix PhanTypeExpectedObjectOrClassName by testing on classname 2024-03-17 00:03:20 +01:00
ajax Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448) 2024-02-27 14:05:53 +01:00
class Projects 2024-04-02 21:29:21 +02:00
stats Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448) 2024-02-27 14:05:53 +01:00
tasks totalarray must not reinit here 2024-03-31 14:49:43 +02:00
agenda.php Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
card.php Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
comment.php Fix arg type to preg_replace() with cast 2024-03-20 04:09:47 +01:00
contact.php Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
document.php Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
element.php NEW Show the profit per attendee on events 2024-03-27 19:06:06 +01:00
ganttchart.inc.php NEW Upgrade jsChantImproved to 2.8.10 2024-03-23 17:18:11 +01:00
ganttview.php NEW Upgrade jsChantImproved to 2.8.10 2024-03-23 17:18:11 +01:00
graph_opportunities.inc.php Fix php8.2 warnings 2023-11-27 11:56:32 +01:00
index.php Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-29 15:48:50 +01:00
jsgantt_language.js.php Clean code, fix warnings 2022-12-30 18:43:43 +01:00
list.php Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type 2024-04-02 22:52:52 +02:00
messaging.php Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
note.php Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
tasks.php Merge pull request #29066 from mdeweerd/fix/dol_get_fiche_head 2024-03-28 14:16:45 +01:00