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

@@ -342,6 +342,7 @@ if (isModEnabled('societe')) {
print $langs->trans("CurrentlyNWithoutBarCode", $nbthirdpartyno, $nbthirdpartytotal, $langs->transnoentitiesnoconv("ThirdParties"))."\n";
$disabledthirdparty = $disabledthirdparty1 = 0;
$titleno = '';
if (is_object($modBarCodeThirdparty)) {
print '<br>'.$langs->trans("BarCodeNumberManager").": ";
@@ -420,6 +421,7 @@ if (isModEnabled('product') || isModEnabled('service')) {
$disabledproduct = $disabledproduct1 = 0;
$titleno = '';
if (is_object($modBarCodeProduct)) {
print '<br>'.$langs->trans("BarCodeNumberManager").": ";
$objproduct = new Product($db);