dolibarr/htdocs/projet
MDW 37afba949e
Fix most PhanTypeMismatchDimAssignment notices (#28739)
* Qual: Add typing to fix PhanTypeMismatchDimAssignment notice

* Fix: Initialise array for code in somme

* Qual: Update type hint for  argument in _Set_Format

* Qual: Update type hint for childtables

* Qual: Add typing to attributes

* Qual: Add typing for _msgContent

* Qual: Suppress PhanTypeMismatchDimAssignment

* Qual: Add typing for liste

* Qual: Add typing to fields

* Qual: Add typing hint for $objMod

* Qual: Modify assignment of array with bool keys for phan typing

Demonstration:
```
php -r '$a=[true=>"yes",false=>"no"];var_dump($a);'
# Result demonstrates bool keys are converted to int.
Command line code:1:
array(2) {
  [1] =>
  string(3) "yes"
  [0] =>
  string(2) "no"
}
```

* Qual: Add typing hint to indicate value is not null

* Force non-null type on $paramname

* Qual: Add typing hint to getCats()

* Update inc.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-10 01:53:04 +01:00
..
activity Qual: Enable detection of deprecated modulename & GETPOST(...,'int') (#28457) 2024-02-28 23:25:16 +01:00
admin Fix: Initialise array before assigning values (#28728) 2024-03-09 16:32:02 +01:00
ajax Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448) 2024-02-27 14:05:53 +01:00
class Fix most PhanTypeMismatchDimAssignment notices (#28739) 2024-03-10 01:53:04 +01:00
stats Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448) 2024-02-27 14:05:53 +01:00
tasks Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0) (#28718) 2024-03-09 01:04:15 +01:00
agenda.php Fix warning 2024-03-01 01:52:40 +01:00
card.php Fix: Replace deprecated modulename with new in isModEnabled (#28452) 2024-02-27 15:30:37 +01:00
comment.php Fix: $form argument to price() must be int (#28699) 2024-03-08 21:30:04 +01:00
contact.php Fix: Replace deprecated modulename with new in isModEnabled (#28452) 2024-02-27 15:30:37 +01:00
document.php Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448) 2024-02-27 14:05:53 +01:00
element.php Fix: $form argument to price() must be int (#28699) 2024-03-08 21:30:04 +01:00
ganttchart.inc.php Qual: Spelling htdocs/p[b-z]* (#27436) 2024-01-12 17:55:52 +01:00
ganttview.php Fix: $form argument to price() must be int (#28699) 2024-03-08 21:30:04 +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
list.php QUAL Clean code around dol_eval use 2024-03-06 17:07:24 +01:00
messaging.php Fix warning 2024-03-01 01:52:40 +01:00
note.php Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448) 2024-02-27 14:05:53 +01:00
tasks.php Fix: $form argument to price() must be int (#28699) 2024-03-08 21:30:04 +01:00