dolibarr/htdocs/projet/class
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
..
api_projects.class.php Fix phpstan 2024-02-22 01:32:55 +01:00
api_tasks.class.php Fix phpstan 2024-02-22 01:32:55 +01:00
project.class.php Fix most PhanTypeMismatchDimAssignment notices (#28739) 2024-03-10 01:53:04 +01:00
projectstats.class.php Qual: Apply automatic phan fixes (deprecations, unneeded imports) (#28154) 2024-02-13 21:46:12 +01:00
task.class.php fix phpstan (#28727) 2024-03-09 14:48:06 +01:00
taskstats.class.php Qual: Fix typing hints for DoliDB (#27484) 2024-01-13 15:50:02 +01:00