2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/admin
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 23:20:43 +01:00
2023-12-04 11:41:14 +01:00
2023-12-26 22:33:22 +01:00
2024-01-31 18:26:09 +01:00
2024-01-05 03:41:22 +01:00
2024-03-01 01:52:40 +01:00
2023-12-02 16:39:17 +01:00
2024-03-01 01:52:40 +01:00
CSS
2024-02-29 02:57:13 +01:00
2023-12-04 11:41:14 +01:00
2024-02-26 15:02:39 +01:00
2024-01-10 08:59:45 +01:00
2024-01-19 11:19:43 +01:00
2023-12-04 11:41:14 +01:00
2024-03-06 17:07:24 +01:00
2024-01-18 21:31:48 +01:00
2023-12-13 16:33:17 +01:00
2024-01-11 09:59:52 +01:00
2024-03-01 01:52:40 +01:00
2024-03-01 01:52:40 +01:00