* Qual: Fix phpstan notice with cast
* Qual: Fix initialiser (phpstan) and narrow some types
* Qual: Fix typing for object->type field (phpstan)
* Qual: Update preg_quote usage in step2.php
# Qual: Ignore false phpstan positive for preg_match
Add comment to ignore phpstan warning for preg_match argument
* Qual: Extend accepted types for arrayoptions (phpstan)
* Qual: Fix type hint typo
* Qual: Fix type for contact_id assignment
* Qual: Add menuonly as allowed reloadmode
* Qual: Add PHPStan ignore comments for argument.type
* Qual: Ignore unused parameter in constructors (PHPStan)
* Qual: Add type hint for $TMsg (PHPStan)
* Qual: Cast array values to match expected type (PHPStan)
* Qual: Cast $remise_percent_ligne to float (PHPStan)
* Qual: Add array specifier to GETPOST for correct type (PHPStan)
* Qual: Update sumSituation() argument types
* Qual: Cast value to string for printStdColumnContent (PHPStan)
* Qual: Ignore PHPStan notice for autoload function return value
* Qual: Fix type of argument to Menubase::recur (PHPStan)
* Qual: Fix return type hint (PHPStan)
* Qual: Add $dolibarr_main_db_type as default global
* Qual: Update Phan baseline (due to PHPStan fix)
* Qual: Fix phan notice
Fix PhanTypeMismatchArgumentNullable: Argument 1 ($stringtosanitize) is $origin of type ?\CommonObject|?\CommonTrigger|?\DolDeprecationHandler|?array{}|?non-empty-array<mixed,mixed>|?non-empty-string|?string but \DoliDB::sanitize() takes string defined at htdocs/core/db/DoliDB.class.php:187 (expected type to be non-nullable)
* Qual: Fix PhanPluginSuspiciousParamPosition
# Qual: Fix PhanPluginSuspiciousParamPosition
Fix notices by using intermediate variable name that matches the parameter of the called function
where the original parameter name matches the name of a parameter in another position
* Qual: Fix PhanTypeMismatchArgument
# Qual: Fix PhanTypeMismatchArgument
Fix PhanTypeMismatchArgument: Argument 1 ($stringtosanitize) is $local of type int but \DoliDB::sanitize() takes string
in get_localtax_by_third($local) where local is an int already.
So use cast to (int) instead.
Also limit typehint of local to 1 and 2 which are the only allowed values
* Qual: Fix PhanTypeMismatchArgument in cloneCategories()
# Qual: Fix PhanTypeMismatchArgument in cloneCategories()
The argument $toId which is already an integer was passed to DoliDB::sanitize() which expects a string.
So casting to (int) instead to fix this.
* Qual: Ignore complex PhanUndeclaredStaticProperty
# Qual: Ignore complex PhanUndeclaredStaticProperty
Accessing static property provided by a trait on some classes - ignore the phan notice
* Qual: Phan ignore PhanUndeclaredMethod for getPossibleLevels
* Qual: Add typing hints for phan
* Qual: Add typehint for phan
* Qual: Remove redundant semicolon in objectonoff.php
# Qual: Remove redundant semicolon in objectonoff.php
Removed an unnecessary semicolon in the error handling loop of objectonoff.php.
* Qual: Fix PhanPossiblyUndeclaredGlobalVariable
* Qual: Ignore PhanPossiblyUndeclaredGlobalVariable
* FIX: products with a single price by qty may have empty price when adding it in a commercial piece
* FIX: products with a single price by qty may have empty price when adding it in a commercial piece
* Qual: Fix PhanMismatchType
* Finalize rename of $attrV into $value
* Correct getGlobalString into getGlobalInt
* Do not require some fields in the 'title' definition of $cols
* Qual: Fix phan notices (core/lib)
* try to fix doc
* try to fix doc
* try to fix doc
* try to fix doc
* try to fix doc
* try to fix doc
* try to fix doc
* try to fix doc
* try to fix doc