2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/core/modules
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
..
2024-03-09 14:48:06 +01:00
2024-03-01 12:51:48 +01:00
2024-02-01 14:28:22 +01:00
2024-03-01 12:51:48 +01:00
2024-01-20 09:22:38 +01:00
2024-03-01 12:51:48 +01:00
2024-03-02 12:40:25 +01:00
2024-03-01 12:51:48 +01:00
2024-02-18 23:49:23 +01:00
2024-02-18 23:49:23 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-01-27 02:04:43 +01:00
2024-01-27 17:23:03 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-03-09 01:45:31 +01:00
2024-01-28 16:36:01 +01:00
2024-02-29 20:05:37 +01:00
2024-03-09 01:45:31 +01:00