Qual: Fix notices for htdocs/admin/* (#30982)

* Fix (Possibly)UndeclaredGlobalVariable

* Update phan baseline

* Fix (Possibly)UndeclaredGlobalVariable (2)

* Qual: Fix notices for htdocs/admin/*

# Qual: Fix notices for htdocs/admin/*

Fixes most phan/phpstan noticies for files under htdocs/admin/* and ai.
This commit is contained in:
MDW
2024-09-18 03:27:25 +02:00
committed by GitHub
parent 9552b344cc
commit 099dbd9c1e
111 changed files with 873 additions and 501 deletions

View File

@@ -9671,8 +9671,8 @@ function make_substitutions($text, $substitutionarray, $outputlangs = null, $con
*
* @param array<string,string> $substitutionarray Array substitution old value => new value value
* @param Translate $outputlangs Output language
* @param CommonObject $object Source object
* @param mixed $parameters Add more parameters (useful to pass product lines)
* @param ?CommonObject $object Source object
* @param ?mixed $parameters Add more parameters (useful to pass product lines)
* @param string $callfunc What is the name of the custom function that will be called? (default: completesubstitutionarray)
* @return void
* @see make_substitutions()
@@ -10894,8 +10894,8 @@ function getLanguageCodeFromCountryCode($countrycode)
*
* @param Conf $conf Object conf
* @param Translate $langs Object langs
* @param object|null $object Object object
* @param array<array<int,string>> $head List of head tabs (updated by this function)
* @param ?Object $object Object object
* @param array<array{0:string,1:string,2:string}> $head List of head tabs (updated by this function)
* @param int $h New position to fill (updated by this function)
* @param string $type Value for object where objectvalue can be
* 'thirdparty' to add a tab in third party view
@@ -10913,7 +10913,7 @@ function getLanguageCodeFromCountryCode($countrycode)
* 'categories_x' to add a tab in category view ('x': type of category (0=product, 1=supplier, 2=customer, 3=member)
* 'ecm' to add a tab for another ecm view
* 'stock' to add a tab for warehouse view
* @param string $mode 'add' to complete head, 'remove' to remove entries
* @param 'add'|'remove' $mode 'add' to complete head, 'remove' to remove entries
* @param string $filterorigmodule Filter on module origin: 'external' will show only external modules. 'core' only core modules. No filter (default) will add both.
* @return void
*/