fix phpstan (#31994)

* fix phpstan

* fix phpstan
This commit is contained in:
Frédéric FRANCE
2024-11-19 03:04:41 +01:00
committed by GitHub
parent 3685032671
commit 2ece62ec0d
8 changed files with 11 additions and 61 deletions

View File

@@ -24804,36 +24804,6 @@ parameters:
count: 3
path: ../../htdocs/loan/class/paymentloan.class.php
-
message: '#^Variable \$maxlength might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/loan/document.php
-
message: '#^Variable \$morehtmlright might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/loan/document.php
-
message: '#^Variable \$search_all might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/loan/list.php
-
message: '#^Variable \$formproject might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/loan/note.php
-
message: '#^Variable \$maxlength might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/loan/note.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@@ -24882,12 +24852,6 @@ parameters:
count: 4
path: ../../htdocs/loan/payment/payment.php
-
message: '#^Variable \$maxlength might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/loan/schedule.php
-
message: '#^Variable \$result might not be defined\.$#'
identifier: variable.undefined
@@ -31302,24 +31266,6 @@ parameters:
count: 1
path: ../../htdocs/public/website/styles.css.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/public/website/styles.css.php
-
message: '#^Variable \$db might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../htdocs/public/website/styles.css.php
-
message: '#^Variable \$langs might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../htdocs/public/website/styles.css.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse

View File

@@ -62,7 +62,7 @@ if ($socid > 0) {
$societe->fetch($socid);
/*
* Affichage onglets
* Show tabs
*/
$head = societe_prepare_head($societe);

View File

@@ -96,7 +96,7 @@ llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-societe page-contact
if ($id > 0) {
/*
* Affichage onglets
* Show tabs
*/
if (isModEnabled('notification')) {
$langs->load("mails");

View File

@@ -66,7 +66,7 @@ if ($socid > 0) {
$societe->fetch($socid);
/*
* Affichage onglets
* Show tabs
*/
$head = societe_prepare_head($societe);

View File

@@ -117,7 +117,7 @@ llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-product page-card_no
if ($id > 0 || !empty($ref)) {
/*
* Affichage onglets
* Show tabs
*/
if (isModEnabled('notification')) {
$langs->load("mails");

View File

@@ -85,7 +85,11 @@ function llxFooter($comment = '', $zone = 'private', $disabledoutputofmessages =
require '../../master.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Translate $langs
*/
$error = 0;
$website = GETPOST('website', 'alpha');

View File

@@ -99,7 +99,7 @@ llxHeader('', $title, $help_url);
if ($object->id > 0) {
/*
* Affichage onglets
* Show tabs
*/
$head = societe_prepare_head($object);

View File

@@ -147,7 +147,7 @@ llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-user page-card_docum
if ($object->id) {
/*
* Affichage onglets
* Show tabs
*/
if (isModEnabled('notification')) {
$langs->load("mails");