From e0a3756c6e00948aab2b8bd79c870b9359773901 Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Wed, 30 Oct 2024 23:35:39 +0100 Subject: [PATCH 001/110] FIX update status on create supplier order for trigger (#31642) --- htdocs/fourn/class/fournisseur.commande.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 49948ebba06..50a5ca62757 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1291,6 +1291,8 @@ class CommandeFournisseur extends CommonOrder { global $langs, $conf, $hookmanager; + $this->oldcopy = dol_clone($this, 2); + $this->db->begin(); $error = 0; @@ -1322,6 +1324,8 @@ class CommandeFournisseur extends CommonOrder // We set order into draft status $this->brouillon = 1; + $this->statut = self::STATUS_DRAFT; + $this->status = self::STATUS_DRAFT; $sql = "INSERT INTO ".MAIN_DB_PREFIX."commande_fournisseur ("; $sql .= "ref"; @@ -1410,6 +1414,8 @@ class CommandeFournisseur extends CommonOrder ); if ($result < 0) { dol_syslog(get_class($this)."::create ".$this->error, LOG_WARNING); // do not use dol_print_error here as it may be a functionnal error + $this->statut = $this->oldcopy->statut; + $this->status = $this->oldcopy->status; $this->db->rollback(); return -1; } @@ -1463,6 +1469,8 @@ class CommandeFournisseur extends CommonOrder // Call trigger $result = $this->call_trigger('ORDER_SUPPLIER_CREATE', $user); if ($result < 0) { + $this->statut = $this->oldcopy->statut; + $this->status = $this->oldcopy->status; $this->db->rollback(); return -1; } @@ -1473,12 +1481,16 @@ class CommandeFournisseur extends CommonOrder return $this->id; } else { $this->error = $this->db->lasterror(); + $this->statut = $this->oldcopy->statut; + $this->status = $this->oldcopy->status; $this->db->rollback(); return -2; } } } else { $this->error = $this->db->lasterror(); + $this->statut = $this->oldcopy->statut; + $this->status = $this->oldcopy->status; $this->db->rollback(); return -1; } From 7133c6529b34ca78e966a21515abc91e37eb59d7 Mon Sep 17 00:00:00 2001 From: atm-jonathan <146709163+atm-jonathan@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:51:26 +0100 Subject: [PATCH 002/110] FIX show preview pdf list expensereport (#31694) * show preview pdf list expensereport * conditions added --- htdocs/expensereport/card.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 37b5faf54fe..16a138e2138 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -2210,7 +2210,11 @@ if ($action == 'create') { } } - if (!$thumbshown) { + if (!$thumbshown && $fileinfo['extension'] == 'pdf' && !empty($filepdf) && !empty($relativepath) && !empty($fileinfo['filename'])) { + $formFile = new FormFile($db); + $imgpreview = $formFile->showPreview([], $modulepart, $relativepath.'/'.$fileinfo['filename'].'.'.strtolower($fileinfo['extension']), 0); + print $imgpreview; + } elseif (!$thumbshown) { print img_mime($ecmfilesstatic->filename); } } From 723c8278cec07224b736ab63956a695f9d29aed1 Mon Sep 17 00:00:00 2001 From: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com> Date: Wed, 6 Nov 2024 19:20:38 +0100 Subject: [PATCH 003/110] FIX 17.0 fatal when updating recurring supplier invoice line with php8 ($remise_percent is '' instead of 0) (#31713) --- htdocs/fourn/facture/card-rec.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/card-rec.php b/htdocs/fourn/facture/card-rec.php index 8ba6c8be50e..7d6e4c1b772 100644 --- a/htdocs/fourn/facture/card-rec.php +++ b/htdocs/fourn/facture/card-rec.php @@ -778,7 +778,7 @@ if (empty($reshook)) { $special_code = 3; } - $remise_percent = price2num(GETPOST('remise_percent'), '', 2); + $remise_percent = price2num(GETPOST('remise_percent'), '', 2) ?: 0; // Check minimum price $productid = GETPOST('productid', 'int'); From 5eb5033aba0a477221d00ad34e72c9cdd3e11047 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Thu, 7 Nov 2024 04:41:48 +0100 Subject: [PATCH 004/110] FIX #25853 Thirdparty Massaction (#25868) * FIX #25853 Thirdparty Massaction * FIX #25704 Taxes Deleted from Vendor Invoices * FIX #25704 Taxes Deleted from Vendor Invoices * FIX #25704 Taxes Deleted from Vendor Invoices * Update fournisseur.facture.class.php --------- Co-authored-by: Juanjo Menent Co-authored-by: Laurent Destailleur --- htdocs/fourn/class/fournisseur.facture.class.php | 16 ++++++++++------ htdocs/fourn/facture/card.php | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index 4cbff12fd9d..f02b938b3b3 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Christophe Combelles * Copyright (C) 2005 Marc Barilley * Copyright (C) 2005-2012 Regis Houssin - * Copyright (C) 2010-2020 Juanjo Menent + * Copyright (C) 2010-2023 Juanjo Menent * Copyright (C) 2013-2019 Philippe Grand * Copyright (C) 2013 Florian Henry * Copyright (C) 2014-2016 Marcos García @@ -1201,10 +1201,14 @@ class FactureFournisseur extends CommonInvoice if (empty($this->total_tva)) { $this->total_tva = 0; } - // if (isset($this->total_localtax1)) $this->total_localtax1=trim($this->total_localtax1); - // if (isset($this->total_localtax2)) $this->total_localtax2=trim($this->total_localtax2); + if (empty($this->total_localtax1)) { + $this->total_localtax1 = 0; + } + if (empty($this->total_localtax2)) { + $this->total_localtax2 = 0; + } if (isset($this->total_ttc)) { - $this->total_ttc = trim($this->total_ttc); + $this->total_ttc = (float) $this->total_ttc; } if (isset($this->statut)) { $this->statut = (int) $this->statut; @@ -1262,8 +1266,8 @@ class FactureFournisseur extends CommonInvoice $sql .= " paye=".(isset($this->paye) ? ((int) $this->paye) : "0").","; $sql .= " close_code=".(isset($this->close_code) ? "'".$this->db->escape($this->close_code)."'" : "null").","; $sql .= " close_note=".(isset($this->close_note) ? "'".$this->db->escape($this->close_note)."'" : "null").","; - $sql .= " localtax1=".(isset($this->localtax1) ? ((float) $this->localtax1) : "null").","; - $sql .= " localtax2=".(isset($this->localtax2) ? ((float) $this->localtax2) : "null").","; + $sql .= " localtax1=".(isset($this->total_localtax1) ? ((float) $this->total_localtax1) : "null").","; + $sql .= " localtax2=".(isset($this->total_localtax2) ? ((float) $this->total_localtax2) : "null").","; $sql .= " total_ht=".(isset($this->total_ht) ? ((float) $this->total_ht) : "null").","; $sql .= " total_tva=".(isset($this->total_tva) ? ((float) $this->total_tva) : "null").","; $sql .= " total_ttc=".(isset($this->total_ttc) ? ((float) $this->total_ttc) : "null").","; diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index cdf4c9495d2..23b9be4300c 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Christophe Combelles * Copyright (C) 2005 Marc Barilley * Copyright (C) 2005-2013 Regis Houssin - * Copyright (C) 2010-2019 Juanjo Menent + * Copyright (C) 2010-2023 Juanjo Menent * Copyright (C) 2013-2022 Philippe Grand * Copyright (C) 2013 Florian Henry * Copyright (C) 2014-2016 Marcos García From 8a55e2f6a4fde700485776d7eed4e482daba0742 Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Fri, 8 Nov 2024 17:51:44 +0100 Subject: [PATCH 005/110] FIX old copy not needed in supplier order create method (#31733) --- htdocs/fourn/class/fournisseur.commande.class.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 50a5ca62757..020b551f99a 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1291,8 +1291,6 @@ class CommandeFournisseur extends CommonOrder { global $langs, $conf, $hookmanager; - $this->oldcopy = dol_clone($this, 2); - $this->db->begin(); $error = 0; @@ -1324,7 +1322,7 @@ class CommandeFournisseur extends CommonOrder // We set order into draft status $this->brouillon = 1; - $this->statut = self::STATUS_DRAFT; + $this->statut = self::STATUS_DRAFT; // deprecated $this->status = self::STATUS_DRAFT; $sql = "INSERT INTO ".MAIN_DB_PREFIX."commande_fournisseur ("; @@ -1414,8 +1412,6 @@ class CommandeFournisseur extends CommonOrder ); if ($result < 0) { dol_syslog(get_class($this)."::create ".$this->error, LOG_WARNING); // do not use dol_print_error here as it may be a functionnal error - $this->statut = $this->oldcopy->statut; - $this->status = $this->oldcopy->status; $this->db->rollback(); return -1; } @@ -1469,8 +1465,6 @@ class CommandeFournisseur extends CommonOrder // Call trigger $result = $this->call_trigger('ORDER_SUPPLIER_CREATE', $user); if ($result < 0) { - $this->statut = $this->oldcopy->statut; - $this->status = $this->oldcopy->status; $this->db->rollback(); return -1; } @@ -1481,16 +1475,12 @@ class CommandeFournisseur extends CommonOrder return $this->id; } else { $this->error = $this->db->lasterror(); - $this->statut = $this->oldcopy->statut; - $this->status = $this->oldcopy->status; $this->db->rollback(); return -2; } } } else { $this->error = $this->db->lasterror(); - $this->statut = $this->oldcopy->statut; - $this->status = $this->oldcopy->status; $this->db->rollback(); return -1; } From 67bcc242db212a58c2767a9af0124788978f5798 Mon Sep 17 00:00:00 2001 From: uvaldenaire-opendsi Date: Sun, 10 Nov 2024 11:18:05 +0100 Subject: [PATCH 006/110] fix trim null value on invoice creation (#31682) * fix trim null value on invoice creation * fix trim with null value for note_public --- htdocs/compta/facture/class/facture.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index aee851fa697..1c02a897a14 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -503,8 +503,8 @@ class Facture extends CommonInvoice $this->ref_client = trim($this->ref_client); $this->note = (isset($this->note) ? trim($this->note) : trim($this->note_private)); // deprecated - $this->note_private = (isset($this->note_private) ? trim($this->note_private) : trim($this->note_private)); - $this->note_public = trim($this->note_public); + $this->note_private = (isset($this->note_private) ? trim($this->note_private) : ''); + $this->note_public = (isset($this->note_public) ? trim($this->note_public) : ''); if (!$this->cond_reglement_id) { $this->cond_reglement_id = 0; } From b51dc54db83b074f8efe0f12429f08947ef4d186 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Nov 2024 20:32:02 +0100 Subject: [PATCH 007/110] FIX edit label of survey --- htdocs/opensurvey/card.php | 2 +- htdocs/opensurvey/wizard/choix_autre.php | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php index ef27448e34a..282b077599c 100644 --- a/htdocs/opensurvey/card.php +++ b/htdocs/opensurvey/card.php @@ -255,7 +255,7 @@ print ''; $adresseadmin = $object->mail_admin; print $langs->trans("Title").''; if ($action == 'edit') { - print ''; + print ''; } else { print dol_htmlentities($object->title); } diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php index 4c2e090094b..448bd80d933 100644 --- a/htdocs/opensurvey/wizard/choix_autre.php +++ b/htdocs/opensurvey/wizard/choix_autre.php @@ -124,7 +124,7 @@ if (empty($_SESSION['title'])) { //partie creation du sondage dans la base SQL //On prépare les données pour les inserer dans la base -print '
'."\n"; +print ''."\n"; print ''; print load_fiche_titre($langs->trans("CreatePoll").' (2 / 2)'); @@ -143,6 +143,7 @@ for ($i = 0; $i < $_SESSION["nbrecases"]; $i++) { } print ''.$langs->trans("TitleChoice").' '.$j.': '; $tmparray = array('checkbox' => $langs->trans("CheckBox"), 'yesno' => $langs->trans("YesNoList"), 'foragainst' => $langs->trans("PourContreList")); + print '   '.$langs->trans("Type").' '.$form->selectarray("typecolonne[]", $tmparray, $_SESSION["typecolonne$i"]); print ''."\n"; } @@ -151,7 +152,15 @@ print ''."\n"; //ajout de cases supplementaires print ''."\n"; -print ''."\n"; +print ''."\n"; print '
'.$langs->trans("5MoreChoices").''.$langs->trans("5MoreChoices").''; +if ($conf->use_javascript_ajax) { + print '
'; + print img_picto('', 'add', '', 0, 0, 0, '', 'fa-2x valignmiddle btnTitle-icon'); + print '
'; +} else { + print ''; +} +print '
'."\n"; print'
'."\n"; @@ -159,6 +168,15 @@ print ''."\n"; print ''."\n"; print '
'."\n"; +print ''; + //fin du formulaire et bandeau de pied print '
'."\n"; From 0436458a8f535a11eee9b0880cda643d65bd3d9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Nov 2024 20:36:52 +0100 Subject: [PATCH 008/110] FIX Date of survey must be in future --- htdocs/opensurvey/wizard/create_survey.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php index d4c7d6c32fd..116fd1e54f9 100644 --- a/htdocs/opensurvey/wizard/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -66,6 +66,8 @@ $cochemail = ''; // Jump to correct page if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { + $error = 0; + $_SESSION["title"] = $title; $_SESSION["description"] = $description; @@ -88,19 +90,21 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { } $testdate = false; - $champdatefin = dol_mktime(0, 0, 0, GETPOST('champdatefinmonth'), GETPOST('champdatefinday'), GETPOST('champdatefinyear')); + $champdatefin = dol_mktime(0, 0, 0, GETPOSTINT('champdatefinmonth'), GETPOSTINT('champdatefinday'), GETPOSTINT('champdatefinyear')); - if ($champdatefin && ($champdatefin > 0)) { // A date was provided + if (! $error && $champdatefin && ($champdatefin > 0)) { // A date was provided + $error++; // Expire date is not before today if ($champdatefin >= dol_now()) { $testdate = true; $_SESSION['champdatefin'] = dol_print_date($champdatefin, 'dayrfc'); } else { + $error++; $testdate = true; $_SESSION['champdatefin'] = dol_print_date($champdatefin, 'dayrfc'); //$testdate = false; //$_SESSION['champdatefin'] = dol_print_date($champdatefin,'dayrfc'); - setEventMessages('ExpireDate', null, 'warnings'); + setEventMessages($langs->trans('ErrorDateMustBeInFuture'), null, 'errors'); } } @@ -108,7 +112,7 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentitiesnoconv("ExpireDate")), null, 'errors'); } - if ($title && $testdate) { + if (!$error && $title && $testdate) { if (!empty($creation_sondage_date)) { header("Location: choix_date.php"); exit(); From 8c1f823851adea7d73081cf289eec95797109b17 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Nov 2024 21:22:18 +0100 Subject: [PATCH 009/110] Debug v21 --- htdocs/opensurvey/wizard/choix_autre.php | 42 ++++++++++++---------- htdocs/opensurvey/wizard/create_survey.php | 15 +++----- htdocs/opensurvey/wizard/index.php | 11 ++++++ 3 files changed, 39 insertions(+), 29 deletions(-) diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php index 448bd80d933..09d179d84ab 100644 --- a/htdocs/opensurvey/wizard/choix_autre.php +++ b/htdocs/opensurvey/wizard/choix_autre.php @@ -67,7 +67,9 @@ if (isset($_SESSION["nbrecases"])) { } if (GETPOST("ajoutcases") || GETPOST("ajoutcases_x")) { - $_SESSION["nbrecases"] += 5; + if ($_SESSION["nbrecases"] < 100) { + $_SESSION["nbrecases"] += 5; + } } // Create survey into database @@ -132,7 +134,8 @@ print load_fiche_titre($langs->trans("CreatePoll").' (2 / 2)'); print '
'.$langs->trans("PollOnChoice").'

'."\n"; -print '
'."\n"; +print '
'."\n"; + print ''."\n"; //affichage des cases texte de formulaire @@ -144,7 +147,7 @@ for ($i = 0; $i < $_SESSION["nbrecases"]; $i++) { print ''."\n"; } @@ -152,37 +155,38 @@ print '
'.$langs->trans("TitleChoice").' '.$j.': '; $tmparray = array('checkbox' => $langs->trans("CheckBox"), 'yesno' => $langs->trans("YesNoList"), 'foragainst' => $langs->trans("PourContreList")); - print '   '.$langs->trans("Type").' '.$form->selectarray("typecolonne[]", $tmparray, $_SESSION["typecolonne$i"]); + print '   '.$langs->trans("Type").' '.$form->selectarray("typecolonne[]", $tmparray, $_SESSION["typecolonne".$i]); print '
'."\n"; //ajout de cases supplementaires print ''."\n"; -print ''."\n"; print '
'.$langs->trans("5MoreChoices").''; +print ''.$langs->trans("5MoreChoices").'... '; if ($conf->use_javascript_ajax) { - print '
'; - print img_picto('', 'add', '', 0, 0, 0, '', 'fa-2x valignmiddle btnTitle-icon'); + print '
'; + print img_picto('', 'add', '', 0, 0, 0, '', 'valignmiddle btnTitle-icon cursorpointer'); print '
'; + + print ''; + print ''; } else { print ''; } +print '
'; print '
'."\n"; print'
'."\n"; -print ''."\n"; -print ''."\n"; -print '
'."\n"; +print ''."\n"; -print ''; - -//fin du formulaire et bandeau de pied print ''."\n"; print ''."\n"; print '


'."\n"; + print '
'."\n"; // End of page diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php index 116fd1e54f9..a498ab0cf67 100644 --- a/htdocs/opensurvey/wizard/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -90,10 +90,9 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { } $testdate = false; - $champdatefin = dol_mktime(0, 0, 0, GETPOSTINT('champdatefinmonth'), GETPOSTINT('champdatefinday'), GETPOSTINT('champdatefinyear')); + $champdatefin = dol_mktime(23, 59, 59, GETPOSTINT('champdatefinmonth'), GETPOSTINT('champdatefinday'), GETPOSTINT('champdatefinyear')); if (! $error && $champdatefin && ($champdatefin > 0)) { // A date was provided - $error++; // Expire date is not before today if ($champdatefin >= dol_now()) { $testdate = true; @@ -140,16 +139,17 @@ llxHeader('', $langs->trans("OpenSurvey"), '', "", 0, 0, $arrayofjs, $arrayofcss print load_fiche_titre($langs->trans("CreatePoll").' (1 / 2)'); -// debut du formulaire + print '
'."\n"; print ''; print dol_get_fiche_head(); -// Affichage des différents champs textes a remplir print ''."\n"; -print ''."\n"; +print ''; + +print ''."\n"; if (!$_SESSION["title"] && (GETPOST('creation_sondage_date') || GETPOST('creation_sondage_autre'))) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("PollTitle")), null, 'errors'); } @@ -170,11 +170,6 @@ print '
'.$langs->trans("PollTitle").'
'.$langs->trans("PollTitle").'
'."\n"; print dol_get_fiche_end(); -//focus javascript sur le premier champ -print ''."\n"; - print '
'."\n"; // Check or not diff --git a/htdocs/opensurvey/wizard/index.php b/htdocs/opensurvey/wizard/index.php index 0775adde830..9da46f62f3f 100644 --- a/htdocs/opensurvey/wizard/index.php +++ b/htdocs/opensurvey/wizard/index.php @@ -78,6 +78,17 @@ print '
'; print '
'; print ''; +// Clean session variables + +$i = 0; +unset($_SESSION["nbrecases"]); +while ($i < 100) { + unset($_SESSION["choix".$i]); + unset($_SESSION["typecolonne".$i]); + $i++; +} + + // End of page llxFooter(); $db->close(); From 982c356493e36a5acf8e44bec7a0700f7e648304 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Nov 2024 21:28:21 +0100 Subject: [PATCH 010/110] Debug v21 --- htdocs/opensurvey/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php index 282b077599c..a792c21b204 100644 --- a/htdocs/opensurvey/card.php +++ b/htdocs/opensurvey/card.php @@ -246,7 +246,7 @@ print ''; // Type $type = ($object->format == "A") ? 'classic' : 'date'; -print ''; @@ -257,7 +257,7 @@ print $langs->trans("Title").''; From 40aca2803f1b329bb95d8d784d0c87eba2353362 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Nov 2024 21:51:51 +0100 Subject: [PATCH 011/110] Add std deviation in custom report --- htdocs/core/customreports.php | 3 +++ htdocs/core/lib/customreports.lib.php | 32 ++++++++++++--------------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php index 3b4202d081c..59a9f25598c 100644 --- a/htdocs/core/customreports.php +++ b/htdocs/core/customreports.php @@ -788,6 +788,9 @@ if (!empty($search_measures) && !empty($search_xaxis)) { } elseif (preg_match('/\-max$/', $val)) { $tmpval = preg_replace('/\-max$/', '', $val); $sql .= "MAX(".$db->ifsql($tmpval.' IS NULL', '0', $tmpval).") as y_".$key.", "; + } elseif (preg_match('/\-stddevpop$/', $val)) { + $tmpval = preg_replace('/\-stddevpop$/', '', $val); + $sql .= "STDDEV_POP(".$db->ifsql($tmpval.' IS NULL', '0', $tmpval).") as y_".$key.", "; } } $sql = preg_replace('/,\s*$/', '', $sql); diff --git a/htdocs/core/lib/customreports.lib.php b/htdocs/core/lib/customreports.lib.php index 0e549cc31b7..a94891c00d7 100644 --- a/htdocs/core/lib/customreports.lib.php +++ b/htdocs/core/lib/customreports.lib.php @@ -97,15 +97,13 @@ function fillArrayOfMeasures($object, $tablealias, $labelofobject, &$arrayofmesu 'table' => $object->table_element, 'tablefromt' => $tablepath ); - if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { - $arrayofmesures[$tablealias.'.'.$key.'-stddevpop'] = array( - 'label' => img_picto('', (empty($object->picto) ? 'generic' : $object->picto), 'class="pictofixedwidth"').$labelofobject.': '.$langs->trans($val['label']).' ('.$langs->trans("StandardDeviationPop").')', - 'labelnohtml' => $labelofobject.': '.$langs->trans($val['label']), - 'position' => ($position + ($count * 100000)).'.5', - 'table' => $object->table_element, - 'tablefromt' => $tablepath - ); - } + $arrayofmesures[$tablealias.'.'.$key.'-stddevpop'] = array( + 'label' => img_picto('', (empty($object->picto) ? 'generic' : $object->picto), 'class="pictofixedwidth"').$labelofobject.': '.$langs->trans($val['label']).' ('.$langs->trans("StandardDeviationPop").')', + 'labelnohtml' => $labelofobject.': '.$langs->trans($val['label']), + 'position' => ($position + ($count * 100000)).'.5', + 'table' => $object->table_element, + 'tablefromt' => $tablepath + ); } } // Add extrafields to Measures @@ -142,15 +140,13 @@ function fillArrayOfMeasures($object, $tablealias, $labelofobject, &$arrayofmesu 'table' => $object->table_element, 'tablefromt' => $tablepath ); - if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { - $arrayofmesures[preg_replace('/^t/', 'te', $tablealias).'.'.$key.'-stddevpop'] = array( - 'label' => img_picto('', (empty($object->picto) ? 'generic' : $object->picto), 'class="pictofixedwidth"').$labelofobject.': '.$langs->trans($extrafields->attributes[$object->table_element]['label'][$key]).' ('.$langs->trans("StandardDeviationPop").')', - 'labelnohtml' => $labelofobject.': '.$langs->trans($val), - 'position' => ($position + ($count * 100000)).'.5', - 'table' => $object->table_element, - 'tablefromt' => $tablepath - ); - } + $arrayofmesures[preg_replace('/^t/', 'te', $tablealias).'.'.$key.'-stddevpop'] = array( + 'label' => img_picto('', (empty($object->picto) ? 'generic' : $object->picto), 'class="pictofixedwidth"').$labelofobject.': '.$langs->trans($extrafields->attributes[$object->table_element]['label'][$key]).' ('.$langs->trans("StandardDeviationPop").')', + 'labelnohtml' => $labelofobject.': '.$langs->trans($val), + 'position' => ($position + ($count * 100000)).'.5', + 'table' => $object->table_element, + 'tablefromt' => $tablepath + ); } } } From e8c51e8802f88fa38907b9236659b6ba5f33b7ac Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 12 Nov 2024 00:32:59 +0100 Subject: [PATCH 012/110] Qual: fix ci phpstan by removing useless test (#31772) # Qual: fix phpstan by removing useless test !$error && $champdatefin && ($champdatefin > 0) has useless tests. - $error is still 0. - $champdatefin is also not 0 when it is >0 - By casting $champdatefin to int, we ensure that '' (error) is converted to 0. --- htdocs/opensurvey/wizard/create_survey.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php index a498ab0cf67..6df9d1ec060 100644 --- a/htdocs/opensurvey/wizard/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -3,6 +3,7 @@ * Copyright (C) 2014 Marcos García * Copyright (C) 2015-2016 Alexandre Spangaro * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -90,9 +91,9 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { } $testdate = false; - $champdatefin = dol_mktime(23, 59, 59, GETPOSTINT('champdatefinmonth'), GETPOSTINT('champdatefinday'), GETPOSTINT('champdatefinyear')); + $champdatefin = (int) dol_mktime(23, 59, 59, GETPOSTINT('champdatefinmonth'), GETPOSTINT('champdatefinday'), GETPOSTINT('champdatefinyear')); - if (! $error && $champdatefin && ($champdatefin > 0)) { // A date was provided + if ($champdatefin > 0) { // A date was provided, $error still 0 here // Expire date is not before today if ($champdatefin >= dol_now()) { $testdate = true; From cf0782d96d2f4e9202edd864e208bca31ae80f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 12 Nov 2024 00:33:28 +0100 Subject: [PATCH 013/110] fix sql (#31769) --- htdocs/contrat/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php index 9c5798c4a3d..be2f81dc20f 100644 --- a/htdocs/contrat/index.php +++ b/htdocs/contrat/index.php @@ -334,7 +334,7 @@ $sql .= " sum(".$db->ifsql("cd.statut=4 AND (cd.date_fin_validite IS NOT NULL AN $sql .= " sum(".$db->ifsql("cd.statut=4 AND (cd.date_fin_validite IS NOT NULL AND cd.date_fin_validite < '".$db->idate($now - $conf->contrat->services->expires->warning_delay)."')", 1, 0).') as nb_late,'; $sql .= " sum(".$db->ifsql("cd.statut=5", 1, 0).') as nb_closed,'; $sql .= " c.rowid as cid, c.ref, c.datec, c.tms, c.statut,"; -$sql .= " s.nom as name, s.name_alias, s.logo, s.rowid as socid, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur"; +$sql .= " s.nom as name, s.name_alias, s.logo, s.rowid as socid, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta as code_compta_client, s.code_compta_fournisseur"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,"; if (!$user->hasRight('societe', 'client', 'voir')) { $sql .= " ".MAIN_DB_PREFIX."societe_commerciaux as sc,"; @@ -351,7 +351,7 @@ if ($socid) { $sql .= " AND s.rowid = ".((int) $socid); } $sql .= " GROUP BY c.rowid, c.ref, c.datec, c.tms, c.statut,"; -$sql .= " s.nom, s.name_alias, s.logo, s.rowid, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta as code_compta_client, s.code_compta_fournisseur"; +$sql .= " s.nom, s.name_alias, s.logo, s.rowid, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur"; $sql .= " ORDER BY c.tms DESC"; $sql .= $db->plimit($max); From 56dc321665c172dd57f152db9d4624485a752151 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 12 Nov 2024 00:35:14 +0100 Subject: [PATCH 014/110] Qual: Fix phan notices (in order of appearance) (#31768) * Qual: Fix phan notices (in order of appearance) * Qual: Fix phan notices (in order of appearance)/2 --- build/phpstan/phpstan-baseline.neon | 105 ++---------------- dev/tools/phan/baseline.txt | 57 +++------- dev/tools/phan/config_extended.php | 2 +- htdocs/asset/admin/setup.php | 2 +- htdocs/asset/depreciation.php | 3 + htdocs/asset/disposal.php | 3 + htdocs/asset/list.php | 24 ++-- htdocs/asset/model/list.php | 4 +- htdocs/barcode/printsheet.php | 2 +- htdocs/blockedlog/ajax/block-info.php | 3 +- htdocs/bom/bom_list.php | 2 +- htdocs/bookcal/availabilities_list.php | 9 +- htdocs/bookcal/calendar_list.php | 9 +- htdocs/categories/viewcat.php | 2 +- htdocs/comm/action/card.php | 26 +++-- .../comm/action/class/cactioncomm.class.php | 2 +- htdocs/comm/action/document.php | 5 +- htdocs/comm/action/index.php | 2 + htdocs/comm/action/list.php | 4 +- htdocs/comm/mailing/cibles.php | 1 + htdocs/commande/list_det.php | 6 +- htdocs/compta/accounting-files.php | 28 ++--- htdocs/compta/bank/annuel.php | 4 +- htdocs/compta/bank/bankentries_list.php | 3 +- htdocs/compta/bank/card.php | 16 ++- htdocs/compta/bank/graph.php | 7 ++ htdocs/compta/bank/line.php | 4 +- htdocs/compta/bank/releve.php | 2 + htdocs/compta/bank/transfer.php | 4 +- htdocs/compta/bank/treso.php | 3 +- htdocs/compta/bank/various_payment/card.php | 12 +- .../modules/mailings/modules_mailings.php | 16 +++ 32 files changed, 160 insertions(+), 212 deletions(-) diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index 2252487db57..48e5c9f8c08 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -2050,11 +2050,6 @@ parameters: count: 1 path: ../../htdocs/blockedlog/admin/blockedlog_list.php - - - message: "#^Parameter \\#1 \\$objtoshow of function formatObject expects object, array given\\.$#" - count: 1 - path: ../../htdocs/blockedlog/ajax/block-info.php - - message: "#^Dead catch \\- Exception is never thrown in the try block\\.$#" count: 1 @@ -2355,6 +2350,11 @@ parameters: count: 1 path: ../../htdocs/bookcal/availabilities_document.php + - + message: "#^Empty array passed to foreach\\.$#" + count: 1 + path: ../../htdocs/bookcal/availabilities_list.php + - message: "#^If condition is always false\\.$#" count: 1 @@ -2475,6 +2475,11 @@ parameters: count: 1 path: ../../htdocs/bookcal/calendar_document.php + - + message: "#^Empty array passed to foreach\\.$#" + count: 1 + path: ../../htdocs/bookcal/calendar_list.php + - message: "#^If condition is always false\\.$#" count: 1 @@ -3130,11 +3135,6 @@ parameters: count: 1 path: ../../htdocs/comm/mailing/cibles.php - - - message: "#^Variable \\$mesgs might not be defined\\.$#" - count: 1 - path: ../../htdocs/comm/mailing/cibles.php - - message: "#^Negated boolean expression is always true\\.$#" count: 2 @@ -3835,36 +3835,16 @@ parameters: count: 1 path: ../../htdocs/commande/list_det.php - - - message: "#^Variable \\$oldref might not be defined\\.$#" - count: 1 - path: ../../htdocs/commande/list_det.php - - message: "#^Variable \\$permissiontoadd might not be defined\\.$#" count: 1 path: ../../htdocs/commande/list_det.php - - - message: "#^Variable \\$permissiontoread might not be defined\\.$#" - count: 1 - path: ../../htdocs/commande/list_det.php - - message: "#^Variable \\$searchCategoryProductOperator might not be defined\\.$#" count: 3 path: ../../htdocs/commande/list_det.php - - - message: "#^Variable \\$search_product_category_array might not be defined\\.$#" - count: 2 - path: ../../htdocs/commande/list_det.php - - - - message: "#^Variable \\$text_icon might not be defined\\.$#" - count: 1 - path: ../../htdocs/commande/list_det.php - - message: "#^If condition is always false\\.$#" count: 1 @@ -3910,16 +3890,6 @@ parameters: count: 2 path: ../../htdocs/compta/bank/account_statement_document.php - - - message: "#^Variable \\$max might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/annuel.php - - - - message: "#^Variable \\$min might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/annuel.php - - message: "#^If condition is always false\\.$#" count: 2 @@ -3945,21 +3915,6 @@ parameters: count: 1 path: ../../htdocs/compta/bank/bankentries_list.php - - - message: "#^Variable \\$numr might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/bankentries_list.php - - - - message: "#^Variable \\$css might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/card.php - - - - message: "#^Variable \\$name might not be defined\\.$#" - count: 4 - path: ../../htdocs/compta/bank/card.php - - message: "#^Variable \\$noback in empty\\(\\) always exists and is always falsy\\.$#" count: 1 @@ -4080,36 +4035,6 @@ parameters: count: 3 path: ../../htdocs/compta/bank/graph.php - - - message: "#^Variable \\$morehtml might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/graph.php - - - - message: "#^Variable \\$show1 might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/graph.php - - - - message: "#^Variable \\$show2 might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/graph.php - - - - message: "#^Variable \\$show3 might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/graph.php - - - - message: "#^Variable \\$show4 might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/graph.php - - - - message: "#^Variable \\$show5 might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/graph.php - - message: "#^Right side of && is always true\\.$#" count: 2 @@ -4170,11 +4095,6 @@ parameters: count: 1 path: ../../htdocs/compta/bank/releve.php - - - message: "#^Variable \\$total might not be defined\\.$#" - count: 3 - path: ../../htdocs/compta/bank/releve.php - - message: "#^Negated boolean expression is always true\\.$#" count: 1 @@ -4215,11 +4135,6 @@ parameters: count: 1 path: ../../htdocs/compta/bank/various_payment/card.php - - - message: "#^Variable \\$formproject might not be defined\\.$#" - count: 1 - path: ../../htdocs/compta/bank/various_payment/card.php - - message: "#^Variable \\$ref might not be defined\\.$#" count: 1 diff --git a/dev/tools/phan/baseline.txt b/dev/tools/phan/baseline.txt index eec86c9aaf5..17ec6e02e8b 100644 --- a/dev/tools/phan/baseline.txt +++ b/dev/tools/phan/baseline.txt @@ -10,11 +10,11 @@ return [ // # Issue statistics: // PhanUndeclaredProperty : 560+ occurrences - // PhanPossiblyUndeclaredGlobalVariable : 520+ occurrences - // PhanUndeclaredGlobalVariable : 350+ occurrences - // PhanTypeMismatchArgumentProbablyReal : 310+ occurrences + // PhanPossiblyUndeclaredGlobalVariable : 500+ occurrences + // PhanUndeclaredGlobalVariable : 340+ occurrences + // PhanTypeMismatchArgumentProbablyReal : 270+ occurrences // PhanPluginUnknownArrayMethodReturnType : 180+ occurrences - // PhanTypeMismatchProperty : 160+ occurrences + // PhanTypeMismatchProperty : 140+ occurrences // PhanPluginUnknownPropertyType : 130+ occurrences // PhanPluginUnknownArrayMethodParamType : 120+ occurrences // PhanPossiblyUndeclaredVariable : 110+ occurrences @@ -22,9 +22,9 @@ return [ // PhanRedefineFunction : 45+ occurrences // PhanTypeExpectedObjectPropAccess : 45+ occurrences // PhanTypeMismatchArgumentNullableInternal : 45+ occurrences - // PhanTypeMismatchDimFetch : 40+ occurrences - // PhanPluginEmptyStatementIf : 35+ occurrences // PhanTypeInvalidDimOffset : 35+ occurrences + // PhanPluginEmptyStatementIf : 30+ occurrences + // PhanTypeMismatchDimFetch : 30+ occurrences // PhanUndeclaredConstant : 15+ occurrences // PhanEmptyForeach : 10+ occurrences // PhanPluginUnknownObjectMethodCall : 10+ occurrences @@ -62,51 +62,34 @@ return [ 'htdocs/api/class/api_login.class.php' => ['PhanPluginUnknownArrayMethodReturnType'], 'htdocs/api/class/api_setup.class.php' => ['PhanPluginUnknownArrayMethodReturnType'], 'htdocs/api/class/api_status.class.php' => ['PhanPluginUnknownArrayMethodReturnType'], - 'htdocs/asset/admin/setup.php' => ['PhanTypeMismatchArgumentProbablyReal'], 'htdocs/asset/class/asset.class.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanTypeInvalidDimOffset'], 'htdocs/asset/class/assetdepreciationoptions.class.php' => ['PhanTypeInvalidDimOffset'], 'htdocs/asset/class/assetmodel.class.php' => ['PhanUndeclaredProperty'], - 'htdocs/asset/depreciation.php' => ['PhanPluginEmptyStatementIf'], - 'htdocs/asset/disposal.php' => ['PhanPluginEmptyStatementIf'], - 'htdocs/asset/list.php' => ['PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/asset/model/list.php' => ['PhanTypeMismatchArgumentProbablyReal'], 'htdocs/asset/tpl/accountancy_codes_edit.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal'], 'htdocs/asset/tpl/depreciation_options_edit.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'], 'htdocs/asset/tpl/linkedobjectblock.tpl.php' => ['PhanUndeclaredProperty'], 'htdocs/asterisk/wrapper.php' => ['PhanRedefineFunction'], - 'htdocs/barcode/printsheet.php' => ['PhanPluginDuplicateExpressionBinaryOp', 'PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/blockedlog/ajax/block-info.php' => ['PhanTypeMismatchArgumentProbablyReal'], + 'htdocs/barcode/printsheet.php' => ['PhanPluginDuplicateExpressionBinaryOp'], 'htdocs/bom/bom_card.php' => ['PhanUndeclaredProperty'], - 'htdocs/bom/bom_list.php' => ['PhanTypeMismatchArgumentProbablyReal'], 'htdocs/bom/class/api_boms.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'], 'htdocs/bom/tpl/objectline_edit.tpl.php' => ['PhanUndeclaredProperty'], 'htdocs/bom/tpl/objectline_view.tpl.php' => ['PhanUndeclaredProperty'], 'htdocs/bookcal/availabilities_card.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], - 'htdocs/bookcal/availabilities_list.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanTypeMismatchArgumentProbablyReal'], 'htdocs/bookcal/calendar_card.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], - 'htdocs/bookcal/calendar_list.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanTypeMismatchArgumentProbablyReal'], 'htdocs/bookcal/class/availabilities.class.php' => ['PhanUndeclaredMethod', 'PhanUndeclaredProperty'], 'htdocs/bookcal/class/calendar.class.php' => ['PhanUndeclaredMethod', 'PhanUndeclaredProperty'], 'htdocs/categories/class/api_categories.class.php' => ['PhanAccessMethodProtected', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'], - 'htdocs/categories/class/categorie.class.php' => ['PhanTypeMismatchProperty'], - 'htdocs/categories/edit.php' => ['PhanTypeMismatchDimFetch'], - 'htdocs/categories/index.php' => ['PhanTypeMismatchDimFetch'], - 'htdocs/categories/info.php' => ['PhanTypeMismatchDimFetch'], - 'htdocs/categories/photos.php' => ['PhanTypeMismatchDimFetch'], - 'htdocs/categories/traduction.php' => ['PhanTypeMismatchDimFetch'], - 'htdocs/categories/viewcat.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredProperty'], + 'htdocs/categories/viewcat.php' => ['PhanUndeclaredProperty'], 'htdocs/collab/index.php' => ['PhanParamTooMany', 'PhanUndeclaredProperty'], - 'htdocs/comm/action/card.php' => ['PhanPluginBothLiteralsBinaryOp', 'PhanPluginEmptyStatementIf', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'], + 'htdocs/comm/action/card.php' => ['PhanPluginBothLiteralsBinaryOp'], 'htdocs/comm/action/class/api_agendaevents.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchProperty'], 'htdocs/comm/action/class/cactioncomm.class.php' => ['PhanPluginUnknownArrayPropertyType'], - 'htdocs/comm/action/document.php' => ['PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/comm/action/index.php' => ['PhanPluginEmptyStatementIf', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty'], + 'htdocs/comm/action/index.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty'], 'htdocs/comm/action/info.php' => ['PhanUndeclaredProperty'], - 'htdocs/comm/action/list.php' => ['PhanTypeMismatchProperty'], 'htdocs/comm/action/pertype.php' => ['PhanTypeComparisonFromArray', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchDimFetch'], 'htdocs/comm/action/peruser.php' => ['PhanTypeComparisonFromArray'], 'htdocs/comm/mailing/card.php' => ['PhanPluginSuspiciousParamPosition'], - 'htdocs/comm/mailing/cibles.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'], + 'htdocs/comm/mailing/cibles.php' => ['PhanUndeclaredProperty'], 'htdocs/comm/mailing/index.php' => ['PhanUndeclaredProperty'], 'htdocs/comm/propal/card.php' => ['PhanTypeMismatchProperty'], 'htdocs/comm/propal/class/api_proposals.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'], @@ -116,21 +99,13 @@ return [ 'htdocs/commande/class/commande.class.php' => ['PhanUndeclaredProperty'], 'htdocs/commande/customer.php' => ['PhanUndeclaredGlobalVariable'], 'htdocs/commande/list.php' => ['PhanUndeclaredProperty'], - 'htdocs/commande/list_det.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidDimOffset', 'PhanTypeMismatchArgumentProbablyReal'], + 'htdocs/commande/list_det.php' => ['PhanTypeInvalidDimOffset'], 'htdocs/commande/tpl/linkedobjectblock.tpl.php' => ['PhanUndeclaredProperty'], - 'htdocs/compta/accounting-files.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty'], 'htdocs/compta/bank/account_statement_document.php' => ['PhanUndeclaredGlobalVariable'], - 'htdocs/compta/bank/annuel.php' => ['PhanPossiblyUndeclaredGlobalVariable'], - 'htdocs/compta/bank/bankentries_list.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/compta/bank/card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'], 'htdocs/compta/bank/class/account.class.php' => ['PhanUndeclaredProperty'], 'htdocs/compta/bank/class/api_bankaccounts.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/compta/bank/graph.php' => ['PhanPossiblyUndeclaredGlobalVariable'], - 'htdocs/compta/bank/line.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'], - 'htdocs/compta/bank/releve.php' => ['PhanPossiblyUndeclaredGlobalVariable'], - 'htdocs/compta/bank/transfer.php' => ['PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/compta/bank/treso.php' => ['PhanTypeMismatchProperty'], - 'htdocs/compta/bank/various_payment/card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'], + 'htdocs/compta/bank/line.php' => ['PhanUndeclaredGlobalVariable'], + 'htdocs/compta/bank/various_payment/card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], 'htdocs/compta/bank/various_payment/document.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], 'htdocs/compta/bank/various_payment/info.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], 'htdocs/compta/bank/various_payment/list.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchProperty'], @@ -374,7 +349,6 @@ return [ 'htdocs/don/payment/card.php' => ['PhanUndeclaredGlobalVariable'], 'htdocs/don/payment/payment.php' => ['PhanPossiblyUndeclaredGlobalVariable'], 'htdocs/don/tpl/linkedobjectblock.tpl.php' => ['PhanPossiblyUndeclaredGlobalVariable'], - 'htdocs/ecm/class/ecmdirectory.class.php' => ['PhanTypeMismatchProperty'], 'htdocs/ecm/dir_card.php' => ['PhanPossiblyUndeclaredGlobalVariable'], 'htdocs/ecm/index.php' => ['PhanPossiblyUndeclaredGlobalVariable'], 'htdocs/emailcollector/class/emailcollector.class.php' => ['PhanUndeclaredProperty'], @@ -404,7 +378,7 @@ return [ 'htdocs/expensereport/tpl/expensereport_linktofile.tpl.php' => ['PhanUndeclaredGlobalVariable'], 'htdocs/expensereport/tpl/linkedobjectblock.tpl.php' => ['PhanUndeclaredProperty'], 'htdocs/externalsite/frames.php' => ['PhanUndeclaredGlobalVariable'], - 'htdocs/fichinter/card-rec.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], + 'htdocs/fichinter/card-rec.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'], 'htdocs/fichinter/class/api_interventions.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'], 'htdocs/fichinter/class/fichinterrec.class.php' => ['PhanUndeclaredProperty'], 'htdocs/fichinter/list.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'], @@ -637,7 +611,6 @@ return [ 'htdocs/supplier_proposal/class/api_supplier_proposals.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'], 'htdocs/supplier_proposal/class/supplier_proposal.class.php' => ['PhanUndeclaredProperty'], 'htdocs/supplier_proposal/list.php' => ['PhanTypeMismatchArgumentProbablyReal'], - 'htdocs/takepos/admin/orderprinters.php' => ['PhanTypeMismatchDimFetch'], 'htdocs/takepos/ajax/ajax.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'], 'htdocs/takepos/floors.php' => ['PhanTypeMismatchArgumentProbablyReal'], 'htdocs/takepos/freezone.php' => ['PhanTypeMismatchArgumentProbablyReal'], diff --git a/dev/tools/phan/config_extended.php b/dev/tools/phan/config_extended.php index 226ee55c444..0d0abaa19b8 100644 --- a/dev/tools/phan/config_extended.php +++ b/dev/tools/phan/config_extended.php @@ -67,7 +67,7 @@ $config['suppress_issue_types'] = [ 'PhanCompatibleNegativeStringOffset', // return false positive 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is // 'PhanPluginUnknownArrayPropertyType', // Helps find missing array keys or mismatches, remaining occurrences are likely unused properties - // 'PhanTypeArraySuspiciousNullable', // All fixed. + 'PhanTypeArraySuspiciousNullable', // About 400 cases // 'PhanTypeInvalidDimOffset', // Helps identify missing array indexes in types or reference to unset indexes 'PhanTypeObjectUnsetDeclaredProperty', 'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is diff --git a/htdocs/asset/admin/setup.php b/htdocs/asset/admin/setup.php index 42deaac7c71..963f7837314 100644 --- a/htdocs/asset/admin/setup.php +++ b/htdocs/asset/admin/setup.php @@ -542,7 +542,7 @@ if ($action == 'edit') { if (isModEnabled('accounting')) { require_once DOL_DOCUMENT_ROOT . '/core/class/html.formaccounting.class.php'; $formaccounting = new FormAccounting($db); - print $formaccounting->select_account($selected, $constname, 1, null, 1, 1, 'minwidth150 maxwidth300', 1); + print $formaccounting->select_account($selected, $constname, 1, array(), 1, 1, 'minwidth150 maxwidth300', 1); } else { print ''; } diff --git a/htdocs/asset/depreciation.php b/htdocs/asset/depreciation.php index bc448c098e6..76e0aba71fe 100644 --- a/htdocs/asset/depreciation.php +++ b/htdocs/asset/depreciation.php @@ -96,8 +96,11 @@ $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); } + +/* if (empty($reshook)) { } +*/ /* diff --git a/htdocs/asset/disposal.php b/htdocs/asset/disposal.php index fe6101d034f..4d97ffc353b 100644 --- a/htdocs/asset/disposal.php +++ b/htdocs/asset/disposal.php @@ -2,6 +2,7 @@ /* Copyright (C) 2007-2017 Laurent Destailleur * Copyright (C) 2018 Alexandre Spangaro * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -86,8 +87,10 @@ $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); } +/* if (empty($reshook)) { } +*/ /* diff --git a/htdocs/asset/list.php b/htdocs/asset/list.php index 55fc1683cc1..649f436b2e0 100644 --- a/htdocs/asset/list.php +++ b/htdocs/asset/list.php @@ -3,6 +3,7 @@ * Copyright (C) 2018-2024 Alexandre Spangaro * Copyright (C) 2018 Ferran Marcet * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -116,11 +117,11 @@ foreach ($object->fields as $key => $val) { if (!empty($val['visible'])) { $visible = (int) dol_eval((string) $val['visible'], 1); $arrayfields['t.'.$key] = array( - 'label'=>$val['label'], - 'checked'=>(($visible < 0) ? 0 : 1), - 'enabled'=>(abs($visible) != 3 && (bool) dol_eval($val['enabled'], 1)), - 'position'=>$val['position'], - 'help'=> isset($val['help']) ? $val['help'] : '' + 'label' => $val['label'], + 'checked' => (($visible < 0) ? 0 : 1), + 'enabled' => (abs($visible) != 3 && (bool) dol_eval($val['enabled'], 1)), + 'position' => $val['position'], + 'help' => isset($val['help']) ? $val['help'] : '' ); } } @@ -143,7 +144,8 @@ if (!isModEnabled('asset')) { if ($user->socid > 0) { accessforbidden(); } -$socid = 0; if ($user->socid > 0) { +$socid = 0; +if ($user->socid > 0) { $socid = $user->socid; } $isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0); @@ -498,7 +500,7 @@ foreach ($object->fields as $key => $val) { } elseif ($key == 'lang') { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; $formadmin = new FormAdmin($db); - print $formadmin->select_language($search[$key], 'search_lang', 0, null, 1, 0, 0, 'minwidth100imp maxwidth125', 2); + print $formadmin->select_language($search[$key], 'search_lang', 0, array(), 1, 0, 0, 'minwidth100imp maxwidth125', 2); } else { print ''; } @@ -509,7 +511,7 @@ foreach ($object->fields as $key => $val) { include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php'; // Fields from hook -$parameters = array('arrayfields'=>$arrayfields); +$parameters = array('arrayfields' => $arrayfields); $reshook = $hookmanager->executeHooks('printFieldListOption', $parameters, $object); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; // Action column @@ -541,7 +543,7 @@ foreach ($object->fields as $key => $val) { // Extra fields include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php'; // Hook fields -$parameters = array('arrayfields'=>$arrayfields, 'param'=>$param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder); +$parameters = array('arrayfields' => $arrayfields, 'param' => $param, 'sortfield' => $sortfield, 'sortorder' => $sortorder); $reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; // Action column @@ -625,7 +627,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) { // Extra fields include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php'; // Fields from hook - $parameters = array('arrayfields'=>$arrayfields, 'object'=>$object, 'obj'=>$obj, 'i'=>$i, 'totalarray'=>&$totalarray); + $parameters = array('arrayfields' => $arrayfields, 'object' => $object, 'obj' => $obj, 'i' => $i, 'totalarray' => &$totalarray); $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; // Action column @@ -664,7 +666,7 @@ if ($num == 0) { $db->free($resql); -$parameters = array('arrayfields'=>$arrayfields, 'sql'=>$sql); +$parameters = array('arrayfields' => $arrayfields, 'sql' => $sql); $reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters, $object); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; diff --git a/htdocs/asset/model/list.php b/htdocs/asset/model/list.php index 13c8c773310..762a5122d75 100644 --- a/htdocs/asset/model/list.php +++ b/htdocs/asset/model/list.php @@ -495,7 +495,7 @@ foreach ($object->fields as $key => $val) { print $object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] : ''), '', '', 'search_', 'maxwidth125', 1); } elseif (preg_match('/^(date|timestamp|datetime)/', $val['type'])) { print '
'; - print $form->selectDate($search[$key.'_dtstart'] ? $search[$key.'_dtstart'] : '', "search_".$key."_dtstart", 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('From')); + $form->selectDate($search[$key.'_dtstart'] ? $search[$key.'_dtstart'] : '', "search_".$key."_dtstart", 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('From')); print '
'; print '
'; print $form->selectDate($search[$key.'_dtend'] ? $search[$key.'_dtend'] : '', "search_".$key."_dtend", 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('to')); @@ -503,7 +503,7 @@ foreach ($object->fields as $key => $val) { } elseif ($key == 'lang') { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; $formadmin = new FormAdmin($db); - print $formadmin->select_language($search[$key], 'search_lang', 0, null, 1, 0, 0, 'minwidth100imp maxwidth125', 2); + print $formadmin->select_language($search[$key], 'search_lang', 0, array(), 1, 0, 0, 'minwidth100imp maxwidth125', 2); } else { print ''; } diff --git a/htdocs/barcode/printsheet.php b/htdocs/barcode/printsheet.php index 541ea6fc52e..ba3c994fcf7 100644 --- a/htdocs/barcode/printsheet.php +++ b/htdocs/barcode/printsheet.php @@ -441,7 +441,7 @@ if ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire')) { print ''; print '
'; print '
'; - $form->select_produits(GETPOSTINT('productid'), 'productid', '', '', 0, -1, 2, '', 0, array(), 0, '1', 0, 'minwidth400imp', 1); + $form->select_produits(GETPOSTINT('productid'), 'productid', '', 0, 0, -1, 2, '', 0, array(), 0, '1', 0, 'minwidth400imp', 1); print '   '; print '
'; } diff --git a/htdocs/blockedlog/ajax/block-info.php b/htdocs/blockedlog/ajax/block-info.php index 9f32aec003c..31394eeb535 100644 --- a/htdocs/blockedlog/ajax/block-info.php +++ b/htdocs/blockedlog/ajax/block-info.php @@ -2,6 +2,7 @@ /* Copyright (C) 2017 Laurent Destailleur * Copyright (C) 2017 ATM Consulting * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -85,7 +86,7 @@ $db->close(); /** * formatObject * - * @param Object $objtoshow Object to show + * @param Object|array $objtoshow Object to show * @param string $prefix Prefix of key * @return string String formatted */ diff --git a/htdocs/bom/bom_list.php b/htdocs/bom/bom_list.php index 210a26bb9b1..a2936616224 100644 --- a/htdocs/bom/bom_list.php +++ b/htdocs/bom/bom_list.php @@ -596,7 +596,7 @@ foreach ($object->fields as $key => $val) { } elseif ($key == 'lang') { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; $formadmin = new FormAdmin($db); - print $formadmin->select_language($search[$key], 'search_lang', 0, null, 1, 0, 0, 'minwidth100imp maxwidth125', 2); + print $formadmin->select_language($search[$key], 'search_lang', 0, array(), 1, 0, 0, 'minwidth100imp maxwidth125', 2); } else { print ''; } diff --git a/htdocs/bookcal/availabilities_list.php b/htdocs/bookcal/availabilities_list.php index 8f80da1b2db..f819fdf81bc 100644 --- a/htdocs/bookcal/availabilities_list.php +++ b/htdocs/bookcal/availabilities_list.php @@ -2,6 +2,7 @@ /* Copyright (C) 2007-2017 Laurent Destailleur * Copyright (C) 2022 Alice Adminson * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -105,7 +106,7 @@ foreach ($object->fields as $key => $val) { } // List of fields to search into when doing a "search in all" -// $fieldstosearchall = array(); +$fieldstosearchall = array(); // foreach ($object->fields as $key => $val) { // if (!empty($val['searchall'])) { // $fieldstosearchall['t.'.$key] = $val['label']; @@ -120,10 +121,6 @@ foreach ($object->fields as $key => $val) { // } -// $fieldstosearchall is supposedly defined further below, ensure that it is. -if (!isset($fieldstosearchall) || !is_array($fieldstosearchall)) { - $fieldstosearchall = array(); -} ' @phan-var-force array $fieldstosearchall '; @@ -566,7 +563,7 @@ foreach ($object->fields as $key => $val) { } elseif ($key == 'lang') { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; $formadmin = new FormAdmin($db); - print $formadmin->select_language($search[$key], 'search_lang', 0, null, 1, 0, 0, 'minwidth100imp maxwidth125', 2); + print $formadmin->select_language($search[$key], 'search_lang', 0, array(), 1, 0, 0, 'minwidth100imp maxwidth125', 2); } else { print ''; } diff --git a/htdocs/bookcal/calendar_list.php b/htdocs/bookcal/calendar_list.php index 54cccd94510..3aa7f6a2d89 100644 --- a/htdocs/bookcal/calendar_list.php +++ b/htdocs/bookcal/calendar_list.php @@ -2,6 +2,7 @@ /* Copyright (C) 2007-2017 Laurent Destailleur * Copyright (C) 2023 Alice Adminson * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -105,7 +106,7 @@ foreach ($object->fields as $key => $val) { } // List of fields to search into when doing a "search in all" -// $fieldstosearchall = array(); +$fieldstosearchall = array(); // foreach ($object->fields as $key => $val) { // if (!empty($val['searchall'])) { // $fieldstosearchall['t.'.$key] = $val['label']; @@ -119,10 +120,6 @@ foreach ($object->fields as $key => $val) { // $fieldstosearchall = array_merge($fieldstosearchall, empty($hookmanager->resArray['fieldstosearchall']) ? array() : $hookmanager->resArray['fieldstosearchall']); // } -// $fieldstosearchall is supposedly defined further below, ensure that it is. -if (!isset($fieldstosearchall) || !is_array($fieldstosearchall)) { - $fieldstosearchall = array(); -} ' @phan-var-force array $fieldstosearchall '; @@ -549,7 +546,7 @@ foreach ($object->fields as $key => $val) { } elseif ($key == 'lang') { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; $formadmin = new FormAdmin($db); - print $formadmin->select_language($search[$key], 'search_lang', 0, null, 1, 0, 0, 'minwidth100imp maxwidth125', 2); + print $formadmin->select_language($search[$key], 'search_lang', 0, array(), 1, 0, 0, 'minwidth100imp maxwidth125', 2); } else { print ''; } diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index 3156ccf89b2..99e8c805056 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -549,7 +549,7 @@ if ($type == Categorie::TYPE_PRODUCT) { print '
'.$langs->trans("Type").''; +print '
'.$langs->trans("Type").''; print img_picto('', dol_buildpath('/opensurvey/img/'.($type == 'classic' ? 'chart-32.png' : 'calendar-32.png'), 1), 'width="16"', 1); print ' '.$langs->trans($type == 'classic' ? "TypeClassic" : "TypeDate").'
'; if ($action == 'edit') { print ''; } else { - print dol_htmlentities($object->title); + print dolPrintHTML($object->title); } print '
'; print ''; print ''; print '
'; print $langs->trans("AddProductServiceIntoCategory").'  '; - $form->select_produits('', 'elemid', '', 0, 0, -1, 2, '', 1, array(), 0, 1, 0, '', 0, '', null); + $form->select_produits(0, 'elemid', '', 0, 0, -1, 2, '', 1, array(), 0, 1, 0, '', 0, '', null); print '
'; diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 0c4d89411c1..5cff3073b8b 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -340,7 +340,7 @@ if (empty($reshook) && $action == 'add' && $usercancreate) { $datef = dol_mktime(GETPOSTINT("p2hour"), GETPOSTINT("p2min"), GETPOSTINT("apsec"), GETPOSTINT("p2month"), GETPOSTINT("p2day"), GETPOSTINT("p2year"), 'tzuserrel'); } //set end date to now if percentage is set to 100 and end date not set - $datef = (!$datef && $percentage == 100)?dol_now():$datef; + $datef = (!$datef && $percentage == 100) ? dol_now() : $datef; // Check parameters if (!$datef && $percentage == 100) { @@ -1463,13 +1463,16 @@ if ($action == 'create') { if (!empty($_SESSION['assignedtouser'])) { $listofuserid = json_decode($_SESSION['assignedtouser'], true); } + if (!is_array($listofuserid)) { + $listofuserid = array(); + } $firstelem = reset($listofuserid); if (isset($listofuserid[$firstelem['id']])) { $listofuserid[$firstelem['id']]['transparency'] = (GETPOSTISSET('transparency') ? GETPOST('transparency', 'alpha') : 0); // 0 by default when refreshing } } print '
'; - print $form->select_dolusers_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtouser', 1, '', 0, '', '', 0, 0, 0, 'AND u.statut != 0', 1, $listofuserid, $listofcontactid, $listofotherid); + print $form->select_dolusers_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtouser', 1, array(), 0, '', array(), 0, 0, 0, 'AND u.statut != 0', 1, $listofuserid, $listofcontactid, $listofotherid); print '
'; print ''; @@ -1482,7 +1485,7 @@ if ($action == 'create') { // Categories print ''.$langs->trans("Categories").''; $cate_arbo = $form->select_all_categories(Categorie::TYPE_ACTIONCOMM, '', 'parent', 64, 0, 3); - print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, GETPOST('categories', 'array'), '', 0, 'minwidth300 quatrevingtpercent widthcentpercentminusx', 0, 0); + print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, GETPOST('categories', 'array'), 0, 0, 'minwidth300 quatrevingtpercent widthcentpercentminusx', 0, 0); print ""; } @@ -1501,13 +1504,16 @@ if ($action == 'create') { if (!empty($_SESSION['assignedtoresource'])) { $listofresourceid = json_decode($_SESSION['assignedtoresource'], true); } + if (!is_array($listofresourceid)) { + $listofresourceid = array(); + } $firstelem = reset($listofresourceid); if (isset($listofresourceid[$firstelem['id']])) { $listofresourceid[$firstelem['id']]['transparency'] = (GETPOSTISSET('transparency') ? GETPOST('transparency', 'alpha') : 0); // 0 by default when refreshing } } print '
'; - print $form->select_dolresources_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtoresource', 1, '', 0, '', '', 0, 0, 0, 'AND u.statut != 0', 1, $listofresourceid); + print $form->select_dolresources_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtoresource', 1, array(), 0, '', array(), 0, 0, 0, 'AND u.statut != 0', 1, $listofresourceid); print '
'; print ''; } @@ -1584,10 +1590,10 @@ if ($action == 'create') { */ $sav = getDolGlobalString('CONTACT_USE_SEARCH_TO_SELECT'); $conf->global->CONTACT_USE_SEARCH_TO_SELECT = 0; - print $form->selectcontacts(GETPOSTISSET('socid') ? GETPOSTINT('socid') : $select_contact_default, $preselectedids, 'socpeopleassigned[]', 1, '', '', 0, 'minwidth300 widthcentpercentminusxx maxwidth500', 0, 0, array(), false, 'multiple', 'contactid'); + print $form->selectcontacts(GETPOSTISSET('socid') ? GETPOSTINT('socid') : $select_contact_default, $preselectedids, 'socpeopleassigned[]', 1, '', '', 0, 'minwidth300 widthcentpercentminusxx maxwidth500', 0, 0, 0, array(), 'multiple', 'contactid'); $conf->global->CONTACT_USE_SEARCH_TO_SELECT = $sav; } else { - print $form->selectcontacts(GETPOSTISSET('socid') ? GETPOSTINT('socid') : $select_contact_default, $preselectedids, 'socpeopleassigned[]', 1, '', '', 0, 'minwidth300 widthcentpercentminusxx maxwidth500', 0, 0, array(), false, 'multiple', 'contactid'); + print $form->selectcontacts(GETPOSTISSET('socid') ? GETPOSTINT('socid') : $select_contact_default, $preselectedids, 'socpeopleassigned[]', 1, '', '', 0, 'minwidth300 widthcentpercentminusxx maxwidth500', 0, 0, 0, array(), 'multiple', 'contactid'); } print ''; @@ -2083,7 +2089,7 @@ if ($id > 0) { print ''.$langs->trans("ActionAssignedTo").''; print '
'; - print $form->select_dolusers_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtouser', 1, '', 0, '', '', 0, 0, 0, 'AND u.statut != 0', 1, $listofuserid, $listofcontactid, $listofotherid); + print $form->select_dolusers_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtouser', 1, array(), 0, '', array(), 0, 0, 0, 'AND u.statut != 0', 1, $listofuserid, $listofcontactid, $listofotherid); print '
'; /*if (in_array($user->id,array_keys($listofuserid))) { @@ -2114,7 +2120,7 @@ if ($id > 0) { foreach ($cats as $cat) { $arrayselected[] = $cat->id; } - print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0); + print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0); print ""; } @@ -2264,9 +2270,11 @@ if ($id > 0) { $actionCommReminder->typeremind = 'email'; } $disabled = ''; + /* if ($object->datep < dol_now()) { //$disabled = 'disabled title="'.dol_escape_htmltag($langs->trans("EventExpired")).'"'; } + */ print '
'; @@ -2559,7 +2567,7 @@ if ($id > 0) { $listofcontactid = array(); // not used yet $listofotherid = array(); // not used yet print '
'; - print $form->select_dolusers_forevent('view', 'assignedtouser', 1, '', 0, '', '', 0, 0, 0, '', ($object->datep != $object->datef) ? 1 : 0, $listofuserid, $listofcontactid, $listofotherid); + print $form->select_dolusers_forevent('view', 'assignedtouser', 1, array(), 0, '', array(), 0, 0, 0, '', ($object->datep != $object->datef) ? 1 : 0, $listofuserid, $listofcontactid, $listofotherid); print '
'; /* if ($object->datep != $object->datef && in_array($user->id,array_keys($listofuserid))) diff --git a/htdocs/comm/action/class/cactioncomm.class.php b/htdocs/comm/action/class/cactioncomm.class.php index 8c2476b9739..9c28468c1c7 100644 --- a/htdocs/comm/action/class/cactioncomm.class.php +++ b/htdocs/comm/action/class/cactioncomm.class.php @@ -82,7 +82,7 @@ class CActionComm public $picto; /** - * @var array array of type_actions + * @var array array of type_actions // TODO: Remove or explain */ public $type_actions = array(); diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php index b1b37b1661d..8eb19ae19cd 100644 --- a/htdocs/comm/action/document.php +++ b/htdocs/comm/action/document.php @@ -6,6 +6,7 @@ * Copyright (C) 2005 Simon TOSSER * Copyright (C) 2013 Cédric Salvador * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -278,7 +279,7 @@ if ($object->id > 0) { $listofuserid = array(); if (empty($donotclearsession)) { if ($object->userownerid > 0) { - $listofuserid[$object->userownerid] = array('id'=>$object->userownerid, 'transparency'=>$object->transparency); // Owner first + $listofuserid[$object->userownerid] = array('id' => $object->userownerid, 'transparency' => $object->transparency); // Owner first } if (!empty($object->userassigned)) { // Now concat assigned users // Restore array with key with same value than param 'id' @@ -298,7 +299,7 @@ if ($object->id > 0) { $listofcontactid = array(); // not used yet $listofotherid = array(); // not used yet print '
'; - print $form->select_dolusers_forevent('view', 'assignedtouser', 1, '', 0, '', '', 0, 0, 0, '', ($object->datep != $object->datef) ? 1 : 0, $listofuserid, $listofcontactid, $listofotherid); + print $form->select_dolusers_forevent('view', 'assignedtouser', 1, array(), 0, '', array(), 0, 0, 0, '', ($object->datep != $object->datef) ? 1 : 0, $listofuserid, $listofcontactid, $listofotherid); print '
'; /*if (in_array($user->id,array_keys($listofuserid))) { diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 53bc33241f8..63048fefeb9 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -2158,9 +2158,11 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa '@phan-var-force ActionComm $event'; if (empty($reshook)) { // Other calendar + /* if (empty($event->fulldayevent)) { //print $event->getNomUrl(2).' '; } + */ // Date if (empty($event->fulldayevent)) { diff --git a/htdocs/comm/action/list.php b/htdocs/comm/action/list.php index 7bce264617d..064ca39d86d 100644 --- a/htdocs/comm/action/list.php +++ b/htdocs/comm/action/list.php @@ -1149,8 +1149,8 @@ while ($i < $imaxinloop) { print ''; if ($obj->socid > 0) { $societestatic->id = $obj->socid; - $societestatic->client = $obj->client; - $societestatic->name = $obj->societe; + $societestatic->client = (int) $obj->client; + $societestatic->name = (string) $obj->societe; $societestatic->email = $obj->socemail; print $societestatic->getNomUrl(1, '', 28); diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php index 0e9b5bbbaf1..d5d99d1c8da 100644 --- a/htdocs/comm/mailing/cibles.php +++ b/htdocs/comm/mailing/cibles.php @@ -93,6 +93,7 @@ $result = $object->fetch($id); $hookmanager->initHooks(array('ciblescard', 'globalcard')); $sqlmessage = ''; +$mesgs = array(); // List of sending methods $listofmethods = array(); diff --git a/htdocs/commande/list_det.php b/htdocs/commande/list_det.php index b501d463135..92147f8bc63 100644 --- a/htdocs/commande/list_det.php +++ b/htdocs/commande/list_det.php @@ -91,6 +91,7 @@ $search_dateorder_end = dol_mktime(23, 59, 59, GETPOSTINT('search_dateorder_end_ $search_datedelivery_start = dol_mktime(0, 0, 0, GETPOSTINT('search_datedelivery_start_month'), GETPOSTINT('search_datedelivery_start_day'), GETPOSTINT('search_datedelivery_start_year')); $search_datedelivery_end = dol_mktime(23, 59, 59, GETPOSTINT('search_datedelivery_end_month'), GETPOSTINT('search_datedelivery_end_day'), GETPOSTINT('search_datedelivery_end_year')); +$search_product_category_array = array(); if (isModEnabled('category')) { $search_product_category_array = GETPOST("search_category_".Categorie::TYPE_PRODUCT."_list", "array"); $searchCategoryProductOperator = 0; @@ -255,6 +256,7 @@ if ($user->socid) { } $result = restrictedArea($user, 'commande', $id, ''); +$permissiontoread = false; /* * Actions @@ -1498,6 +1500,7 @@ if ($resql) { // Détail commande $totalqty = 0; + $oldref = null; $totalarray = array(); $totalarray['nbfield'] = 0; @@ -1816,7 +1819,7 @@ if ($resql) { // Channel if (!empty($arrayfields['c.fk_input_reason']['checked'])) { print ''; - $form->formInputReason($_SERVER['PHP_SELF'], $obj->fk_input_reason, 'none', ''); + $form->formInputReason($_SERVER['PHP_SELF'], $obj->fk_input_reason, 'none', 0); print ''; if (!$i) { $totalarray['nbfield']++; @@ -2101,6 +2104,7 @@ if ($resql) { if (!empty($arrayfields['shippable']['checked'])) { print ''; if (!empty($show_shippable_command) && isModEnabled('stock')) { + $text_icon = ''; if (($obj->fk_statut > $generic_commande::STATUS_DRAFT) && ($obj->fk_statut < $generic_commande::STATUS_CLOSED)) { $generic_commande->loadExpeditions(); // Load array ->expeditions diff --git a/htdocs/compta/accounting-files.php b/htdocs/compta/accounting-files.php index c423ee3e42e..2005e7d0fb2 100644 --- a/htdocs/compta/accounting-files.php +++ b/htdocs/compta/accounting-files.php @@ -417,11 +417,11 @@ if ($action == 'searchfiles' || $action == 'dl') { // Test on permission not req //var_dump($files); if (count($files) < 1) { $nofile = array(); - $nofile['id'] = $objd->id; - $nofile['entity'] = $objd->entity; + $nofile['id'] = (int) $objd->id; + $nofile['entity'] = (int) $objd->entity; $nofile['date'] = $db->jdate($objd->date); $nofile['date_due'] = $db->jdate($objd->date_due); - $nofile['paid'] = $objd->paid; + $nofile['paid'] = (int) $objd->paid; $nofile['amount_ht'] = $objd->total_ht; $nofile['amount_ttc'] = $objd->total_ttc; $nofile['amount_vat'] = $objd->total_vat; @@ -444,11 +444,11 @@ if ($action == 'searchfiles' || $action == 'dl') { // Test on permission not req $filesarray[$nofile['item'].'_'.$nofile['id']] = $nofile; } else { foreach ($files as $key => $file) { - $file['id'] = $objd->id; - $file['entity'] = $objd->entity; + $file['id'] = (int) $objd->id; + $file['entity'] = (int) $objd->entity; $file['date'] = $db->jdate($objd->date); $file['date_due'] = $db->jdate($objd->date_due); - $file['paid'] = $objd->paid; + $file['paid'] = (int) $objd->paid; $file['amount_ht'] = $objd->total_ht; $file['amount_ttc'] = $objd->total_ttc; $file['amount_vat'] = $objd->total_vat; @@ -816,7 +816,7 @@ if (!empty($date_start) && !empty($date_stop)) { print ''; if ($data['item'] == 'Invoice') { - $invoice->id = $data['id']; + $invoice->id = (int) $data['id']; $invoice->ref = $data['ref']; $invoice->total_ht = $data['amount_ht']; $invoice->total_ttc = $data['amount_ttc']; @@ -827,7 +827,7 @@ if (!empty($date_start) && !empty($date_stop)) { $invoice->multicurrency_code = $data['currency']; print $invoice->getNomUrl(1, '', 0, 0, '', 0, 0, 0); } elseif ($data['item'] == 'SupplierInvoice') { - $supplier_invoice->id = $data['id']; + $supplier_invoice->id = (int) $data['id']; $supplier_invoice->ref = $data['ref']; $supplier_invoice->total_ht = $data['amount_ht']; $supplier_invoice->total_ttc = $data['amount_ttc']; @@ -838,27 +838,27 @@ if (!empty($date_start) && !empty($date_stop)) { $supplier_invoice->multicurrency_code = $data['currency']; print $supplier_invoice->getNomUrl(1, '', 0, 0, '', 0, 0, 0); } elseif ($data['item'] == 'ExpenseReport') { - $expensereport->id = $data['id']; + $expensereport->id = (int) $data['id']; $expensereport->ref = $data['ref']; print $expensereport->getNomUrl(1, 0, 0, 0, 0, 0); } elseif ($data['item'] == 'SalaryPayment') { - $salary_payment->id = $data['id']; + $salary_payment->id = (int) $data['id']; $salary_payment->ref = $data['ref']; print $salary_payment->getNomUrl(1); } elseif ($data['item'] == 'Donation') { - $don->id = $data['id']; + $don->id = (int) $data['id']; $don->ref = $data['ref']; print $don->getNomUrl(1, 0, '', 0); } elseif ($data['item'] == 'SocialContributions') { - $charge_sociales->id = $data['id']; + $charge_sociales->id = (int) $data['id']; $charge_sociales->ref = $data['ref']; print $charge_sociales->getNomUrl(1, 0, 0, 0, 0); } elseif ($data['item'] == 'VariousPayment') { - $various_payment->id = $data['id']; + $various_payment->id = (int) $data['id']; $various_payment->ref = $data['ref']; print $various_payment->getNomUrl(1, '', 0, 0); } elseif ($data['item'] == 'LoanPayment') { - $payment_loan->id = $data['id']; + $payment_loan->id = (int) $data['id']; $payment_loan->ref = $data['ref']; print $payment_loan->getNomUrl(1, 0, 0, '', 0); } else { diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php index 8299965fc17..8132b0729a7 100644 --- a/htdocs/compta/bank/annuel.php +++ b/htdocs/compta/bank/annuel.php @@ -305,11 +305,11 @@ if ($result < 0) { $obj = $db->fetch_object($resql); $min = $db->jdate($obj->min); $max = $db->jdate($obj->max); + $log = "graph.php: min=".$min." max=".$max; + dol_syslog($log); } else { dol_print_error($db); } - $log = "graph.php: min=".$min." max=".$max; - dol_syslog($log); // CRED PART // Chargement du tableau des années diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php index ea8b2bd39a4..6f4e4a946f3 100644 --- a/htdocs/compta/bank/bankentries_list.php +++ b/htdocs/compta/bank/bankentries_list.php @@ -974,6 +974,7 @@ if ($resql) { $last_receipts = array(); $last_releve = ''; $last_ok = 0; + $numr = 0; $resqlr = $db->query($sql); if ($resqlr) { @@ -1101,7 +1102,7 @@ if ($resql) { // Bank line $moreforfilter .= '
'; $tmptitle = $langs->trans('RubriquesTransactions'); - $cate_arbo = $form->select_all_categories(Categorie::TYPE_BANK_LINE, $search_bid, 'parent', null, null, 1); + $cate_arbo = $form->select_all_categories(Categorie::TYPE_BANK_LINE, $search_bid, 'parent', 0, 0, 1); $moreforfilter .= img_picto($tmptitle, 'category', 'class="pictofixedwidth"').$form->selectarray('search_bid', $cate_arbo, $search_bid, $tmptitle, 0, 0, '', 0, 0, 0, '', '', 1); $moreforfilter .= '
'; } diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php index f78e9d08bef..31f7fc7ca20 100644 --- a/htdocs/compta/bank/card.php +++ b/htdocs/compta/bank/card.php @@ -505,7 +505,7 @@ if ($action == 'create') { $arrayselected[] = $cat->id; } } - print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0); + print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0); print ""; } @@ -594,6 +594,10 @@ if ($action == 'create') { $name = 'cle_rib'; $sizecss = 'minwidth50'; $content = $object->cle_rib; + } else { + $name = 'undefined'; + $sizecss = 'undefined'; + $content = 'undefined'; } print ''.$langs->trans($val).''; @@ -651,7 +655,7 @@ if ($action == 'create') { print ''.$langs->trans("AccountancyCode").''; print ''; print img_picto('', 'accounting_account', 'class="pictofixedwidth"'); - print $formaccounting->select_account($object->account_number, 'account_number', 1, '', 1, 1); + print $formaccounting->select_account($object->account_number, 'account_number', 1, array(), 1, 1); if ($formaccounting->nbaccounts == 0) { $langs->load("errors"); $htmltext = $langs->transnoentitiesnoconv("WarningGoOnAccountancySetupToAddAccounts", $langs->transnoentitiesnoconv("MenuAccountancy"), $langs->transnoentitiesnoconv("Setup"), $langs->transnoentitiesnoconv("Chartofaccounts")); @@ -1069,7 +1073,7 @@ if ($action == 'create') { $arrayselected[] = $cat->id; } } - print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0); + print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0); print ""; } @@ -1110,7 +1114,7 @@ if ($action == 'create') { if (isModEnabled('accounting')) { /** @var FormAccounting $formaccounting */ print img_picto('', 'accounting_account', 'class="pictofixedwidth"'); - print $formaccounting->select_account($object->account_number, 'account_number', 1, '', 1, 1); + print $formaccounting->select_account($object->account_number, 'account_number', 1, array(), 1, 1); if ($formaccounting->nbaccounts == 0) { $langs->load("errors"); $htmltext = $langs->transnoentitiesnoconv("WarningGoOnAccountancySetupToAddAccounts", $langs->transnoentitiesnoconv("MenuAccountancy"), $langs->transnoentitiesnoconv("Setup"), $langs->transnoentitiesnoconv("Chartofaccounts")); @@ -1182,6 +1186,10 @@ if ($action == 'create') { $name = 'cle_rib'; $css = 'width50'; $content = $object->cle_rib; + } else { + $name = 'undefined'; + $css = 'undefined'; + $content = 'undefined'; } print ''.$langs->trans($val).''; diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php index 20a1be491c9..be7ff72baf1 100644 --- a/htdocs/compta/bank/graph.php +++ b/htdocs/compta/bank/graph.php @@ -94,6 +94,13 @@ if (GETPOST("ref")) { $title = $object->ref.' - '.$langs->trans("Graph"); $helpurl = ""; +$show1 = ''; +$show2 = ''; +$show3 = ''; +$show4 = ''; +$show5 = ''; +$morehtml = ''; + llxHeader('', $title, $helpurl); $result = dol_mkdir($conf->bank->dir_temp); diff --git a/htdocs/compta/bank/line.php b/htdocs/compta/bank/line.php index 1e9a8a4080f..511b2b52a22 100644 --- a/htdocs/compta/bank/line.php +++ b/htdocs/compta/bank/line.php @@ -636,7 +636,7 @@ if ($result) { // Bank line print ''.$form->editfieldkey('RubriquesTransactions', 'custcats', '', $object, 0).''; - $cate_arbo = $form->select_all_categories(Categorie::TYPE_BANK_LINE, null, 'parent', null, null, 1); + $cate_arbo = $form->select_all_categories(Categorie::TYPE_BANK_LINE, '', 'parent', 0, 0, 1); $arrayselected = array(); @@ -647,7 +647,7 @@ if ($result) { $arrayselected[] = $cat->id; } } - print img_picto('', 'category', 'class="paddingright"').$form->multiselectarray('custcats', $cate_arbo, $arrayselected, null, null, null, null, "90%"); + print img_picto('', 'category', 'class="paddingright"').$form->multiselectarray('custcats', $cate_arbo, $arrayselected, 0, 0, '', 0, "90%"); print ""; } diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php index d65c44e8837..f1d3523c336 100644 --- a/htdocs/compta/bank/releve.php +++ b/htdocs/compta/bank/releve.php @@ -495,6 +495,8 @@ if (empty($numref)) { $obj = $db->fetch_object($resql); $total = $obj->amount; $db->free($resql); + } else { + $total = 0; } $totalc = $totald = 0; diff --git a/htdocs/compta/bank/transfer.php b/htdocs/compta/bank/transfer.php index 80101b1b9e8..6150abc0cf3 100644 --- a/htdocs/compta/bank/transfer.php +++ b/htdocs/compta/bank/transfer.php @@ -173,13 +173,13 @@ if ($action == 'add' && $user->hasRight('banque', 'transfer')) { } if (!$error) { - $bank_line_id_from = $tmpaccountfrom->addline($dateo[$n], $typefrom, $label[$n], price2num(-1 * (float) $amount[$n]), '', '', $user); + $bank_line_id_from = $tmpaccountfrom->addline($dateo[$n], $typefrom, $label[$n], price2num(-1 * (float) $amount[$n]), '', 0, $user); } if (!($bank_line_id_from > 0)) { $error++; } if (!$error) { - $bank_line_id_to = $tmpaccountto->addline($dateo[$n], $typeto, $label[$n], $amountto[$n], '', '', $user); + $bank_line_id_to = $tmpaccountto->addline($dateo[$n], $typeto, $label[$n], $amountto[$n], '', 0, $user); } if (!($bank_line_id_to > 0)) { $error++; diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php index be77fa1b9c9..69c859037b2 100644 --- a/htdocs/compta/bank/treso.php +++ b/htdocs/compta/bank/treso.php @@ -5,6 +5,7 @@ * Copyright (C) 2015 Marcos García * Copyright (C) 2022 Alexandre Spangaro + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -283,7 +284,7 @@ if (GETPOST("account") || GETPOST("ref")) { if ($tmpobj->family == 'invoice') { $facturestatic->ref = $tmpobj->ref; $facturestatic->id = $tmpobj->objid; - $facturestatic->type = $tmpobj->type; + $facturestatic->type = (int) $tmpobj->type; $ref = $facturestatic->getNomUrl(1, ''); $societestatic->id = $tmpobj->socid; diff --git a/htdocs/compta/bank/various_payment/card.php b/htdocs/compta/bank/various_payment/card.php index 8e5a6c41a57..a8dfc070bd4 100644 --- a/htdocs/compta/bank/various_payment/card.php +++ b/htdocs/compta/bank/various_payment/card.php @@ -226,6 +226,8 @@ if (empty($reshook)) { if ($result > 0) { $result = $accountline->delete($user); // $result may be 0 if not found (when bank entry was deleted manually and fk_bank point to nothing) } + } else { + $account_line = null; } if ($result >= 0) { @@ -233,7 +235,7 @@ if (empty($reshook)) { header("Location: ".DOL_URL_ROOT.'/compta/bank/various_payment/list.php'); exit; } else { - $object->error = $accountline->error; + $object->error = $accountline ? $accountline->error : 'No AccountLine'; $db->rollback(); setEventMessages($object->error, $object->errors, 'errors'); } @@ -356,9 +358,13 @@ if ($action == 'confirm_clone' && $confirm == 'yes' && $permissiontoadd) { $form = new Form($db); if (isModEnabled('accounting')) { $formaccounting = new FormAccounting($db); +} else { + $formaccounting = null; } if (isModEnabled('project')) { $formproject = new FormProjets($db); +} else { + $formproject = null; } if ($id) { @@ -531,7 +537,7 @@ if ($action == 'create') { // TODO Remove the fieldrequired and allow instead to edit a various payment to enter accounting code print ''.$langs->trans("AccountAccounting").''; print ''; - print $formaccounting->select_account($accountancy_code, 'accountancy_code', 1, null, 1, 1); + print $formaccounting->select_account($accountancy_code, 'accountancy_code', 1, array(), 1, 1); print ''; } else { // For external software print ''.$langs->trans("AccountAccounting").''; @@ -606,7 +612,7 @@ if ($id) { $morehtmlref = '
'; // Project - if (isModEnabled('project')) { + if (isModEnabled('project') && $formproject !== null) { $langs->load("projects"); //$morehtmlref .= '
'; if ($permissiontoadd) { diff --git a/htdocs/core/modules/mailings/modules_mailings.php b/htdocs/core/modules/mailings/modules_mailings.php index 8aa20523f7d..e45bd655ef3 100644 --- a/htdocs/core/modules/mailings/modules_mailings.php +++ b/htdocs/core/modules/mailings/modules_mailings.php @@ -449,4 +449,20 @@ class MailingTargets // This can't be abstract as it is used for some method dol_syslog($msg, LOG_ERR); return array(); } + + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps + /** + * Add destinations in the targets table + * + * @param int $mailing_id Id of emailing + * @return int Return integer < 0 on error, count of added when ok + */ + public function add_to_target($mailing_id) + { + // phpcs:enable + // Needs to be implemented in child class + $msg = get_class($this)."::".__FUNCTION__." not implemented"; + dol_syslog($msg, LOG_ERR); + return -1; + } } From 75ce3e85136113a73b60f8fecda92a110614e570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=B6dl?= <27991923+f-hoedl@users.noreply.github.com> Date: Tue, 12 Nov 2024 00:36:34 +0100 Subject: [PATCH 015/110] [FIX] Update ticket create form to hide contracts from other thirdparties for external users (#31762) Co-authored-by: fhoedl --- htdocs/core/class/html.formticket.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index 4f8b20293f1..482e6af0088 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -769,7 +769,8 @@ class FormTicket $formcontract = new FormContract($this->db); print ''; print img_picto('', 'contract', 'class="pictofixedwidth"'); - print $formcontract->select_contract(-1, GETPOSTINT('contactid'), 'contractid', 0, 1, 1, 1); + // socid is for internal users null and not 0 or -1 + print $formcontract->select_contract($user->socid ?? -1, GETPOSTINT('contactid'), 'contractid', 0, 1, 1, 1); print ''; } } From 07c3690bb75e0f7886e770f95e113f6afa455464 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 01:26:08 +0100 Subject: [PATCH 016/110] FIX the style not visible in combo using autocomplete --- htdocs/core/class/html.form.class.php | 6 ++++-- htdocs/core/lib/ajax.lib.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index c87b0e6cb79..be5c3028b4e 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3757,7 +3757,7 @@ class Form // Add criteria on ref/label if ($filterkey != '') { $sql .= ' AND ('; - $prefix = !getDolGlobalString('PRODUCT_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on + $prefix = getDolGlobalString('PRODUCT_DONOTSEARCH_ANYWHERE') ? '' : '%'; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on // For natural search $search_crit = explode(' ', $filterkey); $i = 0; @@ -4041,10 +4041,12 @@ class Form } $optstart .= ' data-description="' . dol_escape_htmltag($objp->description, 0, 1) . '"'; + // set $parameters to call hook $outarrayentry = array( 'key' => $outkey, 'value' => $outref, 'label' => $outvallabel, + 'labelhtml' => $optlabel, 'qty' => $outqty, 'price_qty_ht' => price2num($objp->fprice, 'MU'), // Keep higher resolution for price for the min qty 'price_unit_ht' => price2num($objp->unitprice, 'MU'), // This is used to fill the Unit Price @@ -4064,7 +4066,6 @@ class Form $outarrayentry['multicurrency_code'] = $objp->multicurrency_code; $outarrayentry['multicurrency_unitprice'] = price2num($objp->multicurrency_unitprice, 'MU'); } - $parameters = array( 'objp' => &$objp, 'optstart' => &$optstart, @@ -4084,6 +4085,7 @@ class Form 'key' => $outkey, 'value' => $outref, 'label' => $outvallabel, + 'labelhtml' => $optlabel, 'qty' => $outqty, 'price_qty_ht' => price2num($objp->fprice, 'MU'), // Keep higher resolution for price for the min qty 'price_qty_ht_locale' => price($objp->fprice), diff --git a/htdocs/core/lib/ajax.lib.php b/htdocs/core/lib/ajax.lib.php index f573fa9360d..1bf6c6f207f 100644 --- a/htdocs/core/lib/ajax.lib.php +++ b/htdocs/core/lib/ajax.lib.php @@ -127,12 +127,15 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption = '', $minLen if (data != null) { response($.map( data, function(item) { + console.log("Received answer from ajax GET, we populate array to return to the jquery autocomplete"); if (autoselect == 1 && data.length == 1) { $("#search_'.$htmlnamejquery.'").val(item.value); $("#'.$htmlnamejquery.'").val(item.key).trigger("change"); } var label = ""; - if (item.label != null) { + if (item.labelhtml != null) { + label = item.labelhtml.toString(); + } else if (item.label != null) { label = item.label.toString(); } var update = {}; @@ -148,7 +151,6 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption = '', $minLen }); } - console.log("Return value from GET to the rest of code"); return { label: label, value: item.value, id: item.key, From 960413db0f5b72894e06ebce44a8e7b40bc88c66 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 01:57:51 +0100 Subject: [PATCH 017/110] Close #24389 --- htdocs/product/class/product.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index f7a21500f85..b0536fb239c 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -6189,6 +6189,7 @@ class Product extends CommonObject $this->stock_reel += $row->reel; $i++; } + $this->stock_reel = price2num($this->stock_reel, 'MS'); } $this->db->free($result); From 66ee2a2cfe81782da1bda8a949ae239a17efd55b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 02:24:25 +0100 Subject: [PATCH 018/110] Close #24828 --- htdocs/takepos/invoice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 21681ef27b4..72056dbda4c 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -1523,6 +1523,8 @@ $( document ).ready(function() { $s .= " - " . $contact->getFullName($langs); } } + } elseif (getDolGlobalInt("TAKEPOS_NO_GENERIC_THIRDPARTY")) { + print '$("#idcustomer").val("");'; } ?> From 22eec4ba8a406730229a8d7785a815a4c084ed43 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 02:38:34 +0100 Subject: [PATCH 019/110] Doc --- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 2 +- htdocs/core/modules/facture/doc/pdf_octopus.modules.php | 2 +- htdocs/core/modules/facture/doc/pdf_sponge.modules.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index b5d7a29c7c6..255aa356a73 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -2232,7 +2232,7 @@ class pdf_crabe extends ModelePDFFactures // @phan-suppress-next-line PhanPluginSuspiciousParamOrder $pdf->MultiCell($widthrecbox - 2, 4, $carac_client, 0, $ltrdirection); - // Show shipping address + // Show shipping/delivery address if (getDolGlobalInt('INVOICE_SHOW_SHIPPING_ADDRESS')) { $idaddressshipping = $object->getIdContact('external', 'SHIPPING'); diff --git a/htdocs/core/modules/facture/doc/pdf_octopus.modules.php b/htdocs/core/modules/facture/doc/pdf_octopus.modules.php index 85f85c194a0..9ec9d52a63e 100644 --- a/htdocs/core/modules/facture/doc/pdf_octopus.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_octopus.modules.php @@ -2397,7 +2397,7 @@ class pdf_octopus extends ModelePDFFactures // @phan-suppress-next-line PhanPluginSuspiciousParamOrder $pdf->MultiCell($widthrecbox - 2, 4, $carac_client, 0, $ltrdirection); - // Show shipping address + // Show shipping/delivery address if (getDolGlobalInt('INVOICE_SHOW_SHIPPING_ADDRESS')) { $idaddressshipping = $object->getIdContact('external', 'SHIPPING'); diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index 4d97c877705..9a361ab0ce4 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -2479,7 +2479,7 @@ class pdf_sponge extends ModelePDFFactures // @phan-suppress-next-line PhanPluginSuspiciousParamOrder $pdf->MultiCell($widthrecbox - 2, 4, $carac_client, 0, $ltrdirection); - // Show shipping address + // Show shipping/delivery address if (getDolGlobalInt('INVOICE_SHOW_SHIPPING_ADDRESS')) { $idaddressshipping = $object->getIdContact('external', 'SHIPPING'); From e5caa2170ead07a06b934facb530612b5fdfff01 Mon Sep 17 00:00:00 2001 From: UT from dolibit <45215329+dolibit-ut@users.noreply.github.com> Date: Tue, 12 Nov 2024 02:43:46 +0100 Subject: [PATCH 020/110] Update workstation_list.php (#25707) * Update workstation_list.php * Update workstation_list.php --------- Co-authored-by: Laurent Destailleur --- htdocs/workstation/workstation_list.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/workstation/workstation_list.php b/htdocs/workstation/workstation_list.php index 2003d680255..254036c5945 100644 --- a/htdocs/workstation/workstation_list.php +++ b/htdocs/workstation/workstation_list.php @@ -55,6 +55,8 @@ $backtopage = GETPOST('backtopage', 'alpha'); $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') $mode = GETPOST('mode', 'aZ'); // The output mode ('list', 'kanban', 'hierarchy', 'calendar', ...) + +// Load variables for pagination $id = GETPOSTINT('id'); $ref = GETPOST('ref', 'alpha'); @@ -159,6 +161,7 @@ $object->fields = dol_sort_array($object->fields, 'position'); $arrayfields = dol_sort_array($arrayfields, 'position'); '@phan-var-force array,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan +// Permissions $permissiontoread = $user->hasRight('workstation', 'workstation', 'read'); $permissiontoadd = $user->hasRight('workstation', 'workstation', 'write'); $permissiontodelete = $user->hasRight('workstation', 'workstation', 'delete'); @@ -167,6 +170,7 @@ $permissiontodelete = $user->hasRight('workstation', 'workstation', 'delete'); restrictedArea($user, $object->element, 0, $object->table_element, 'workstation'); + /* * Actions */ @@ -229,6 +233,7 @@ $title = $langs->trans("Workstations"); $help_url = 'EN:Module_Workstation'; $morejs = array(); $morecss = array(); +// llxHeader -> look down at section Output page // Build and execute select @@ -242,6 +247,7 @@ if (!empty($extrafields->attributes[$object->table_element]['label'])) { $sql .= ($extrafields->attributes[$object->table_element]['type'][$key] != 'separate' ? ", ef.".$key." as options_".$key : ''); } } + // Add fields from hooks $parameters = array(); $reshook = $hookmanager->executeHooks('printFieldListSelect', $parameters, $object, $action); // Note that $action and $object may have been modified by hook @@ -260,6 +266,7 @@ if (!empty($groups)) { if (!empty($resources)) { $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'workstation_workstation_resource wr ON (wr.fk_workstation = t.rowid)'; } + // Add table from hooks $parameters = array(); $reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object, $action); // Note that $action and $object may have been modified by hook @@ -796,10 +803,12 @@ while ($i < $imaxinloop) { // Extra fields include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php'; + // Fields from hook $parameters = array('arrayfields' => $arrayfields, 'object' => $object, 'obj' => $obj, 'i' => $i, 'totalarray' => &$totalarray); $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters, $object, $action); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; + // Action column if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { print ''; From d395924150dfec624fd6927473d122c212c1090b Mon Sep 17 00:00:00 2001 From: UT from dolibit <45215329+dolibit-ut@users.noreply.github.com> Date: Tue, 12 Nov 2024 02:54:18 +0100 Subject: [PATCH 021/110] Update /datapolicy/admin/setup.php (#25709) * Update /datapolicy/admin/setup.php * Update setup.php --------- Co-authored-by: Laurent Destailleur --- htdocs/datapolicy/admin/setup.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/htdocs/datapolicy/admin/setup.php b/htdocs/datapolicy/admin/setup.php index 1d19a9d2fed..ea3ae94a6d5 100644 --- a/htdocs/datapolicy/admin/setup.php +++ b/htdocs/datapolicy/admin/setup.php @@ -50,13 +50,15 @@ if (empty($action)) { } $arrayofparameters = array(); +// ThirdParty $arrayofparameters['ThirdParty'] = array( - 'DATAPOLICY_TIERS_CLIENT' => array('css' => 'minwidth200', 'picto' => img_picto('', 'company', 'class="pictofixedwidth"')), - 'DATAPOLICY_TIERS_PROSPECT' => array('css' => 'minwidth200', 'picto' => img_picto('', 'company', 'class="pictofixedwidth"')), - 'DATAPOLICY_TIERS_PROSPECT_CLIENT' => array('css' => 'minwidth200', 'picto' => img_picto('', 'company', 'class="pictofixedwidth"')), - 'DATAPOLICY_TIERS_NIPROSPECT_NICLIENT' => array('css' => 'minwidth200', 'picto' => img_picto('', 'company', 'class="pictofixedwidth"')), - 'DATAPOLICY_TIERS_FOURNISSEUR' => array('css' => 'minwidth200', 'picto' => img_picto('', 'supplier', 'class="pictofixedwidth"')), -); + 'DATAPOLICY_TIERS_CLIENT'=>array('css'=>'minwidth200', 'picto'=>img_picto('', 'company', 'class="pictofixedwidth"')), + 'DATAPOLICY_TIERS_PROSPECT'=>array('css'=>'minwidth200', 'picto'=>img_picto('', 'company', 'class="pictofixedwidth"')), + 'DATAPOLICY_TIERS_PROSPECT_CLIENT'=>array('css'=>'minwidth200', 'picto'=>img_picto('', 'company', 'class="pictofixedwidth"')), + 'DATAPOLICY_TIERS_NIPROSPECT_NICLIENT'=>array('css'=>'minwidth200', 'picto'=>img_picto('', 'company', 'class="pictofixedwidth"')), + 'DATAPOLICY_TIERS_FOURNISSEUR'=>array('css'=>'minwidth200', 'picto'=>img_picto('', 'supplier', 'class="pictofixedwidth"')), + ); +// Contact if (getDolGlobalString('DATAPOLICY_USE_SPECIFIC_DELAY_FOR_CONTACT')) { $arrayofparameters['Contact'] = array( 'DATAPOLICY_CONTACT_CLIENT' => array('css' => 'minwidth200', 'picto' => img_picto('', 'contact', 'class="pictofixedwidth"')), @@ -66,6 +68,7 @@ if (getDolGlobalString('DATAPOLICY_USE_SPECIFIC_DELAY_FOR_CONTACT')) { 'DATAPOLICY_CONTACT_FOURNISSEUR' => array('css' => 'minwidth200', 'picto' => img_picto('', 'contact', 'class="pictofixedwidth"')), ); } +// Member if (isModEnabled('member')) { $arrayofparameters['Member'] = array( 'DATAPOLICY_ADHERENT' => array('css' => 'minwidth200', 'picto' => img_picto('', 'member', 'class="pictofixedwidth"')), @@ -73,13 +76,13 @@ if (isModEnabled('member')) { } $valTab = array( - '' => $langs->trans('Never'), - '6' => $langs->trans('NB_MONTHS', 6), - '12' => $langs->trans('ONE_YEAR'), - '24' => $langs->trans('NB_YEARS', 2), - '36' => $langs->trans('NB_YEARS', 3), - '48' => $langs->trans('NB_YEARS', 4), - '60' => $langs->trans('NB_YEARS', 5), + '' => $langs->trans('Never'), + '6' => $langs->trans('NB_MONTHS', 6), + '12' => $langs->trans('ONE_YEAR'), + '24' => $langs->trans('NB_YEARS', 2), + '36' => $langs->trans('NB_YEARS', 3), + '48' => $langs->trans('NB_YEARS', 4), + '60' => $langs->trans('NB_YEARS', 5), '120' => $langs->trans('NB_YEARS', 10), '180' => $langs->trans('NB_YEARS', 15), '240' => $langs->trans('NB_YEARS', 20), From f35fd7c1f0ca30e003c75c264b269247ec209d69 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 03:17:55 +0100 Subject: [PATCH 022/110] Clean code --- htdocs/core/class/commonobject.class.php | 56 +++++++++++--------- htdocs/core/class/html.formcompany.class.php | 10 ++-- htdocs/expedition/contact.php | 2 +- 3 files changed, 36 insertions(+), 32 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 97ef613a1cf..9c2d7b10aa7 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1627,11 +1627,11 @@ abstract class CommonObject * Return array with list of possible values for type of contacts * * @param 'internal'|'external'|'all' $source 'internal', 'external' or 'all' - * @param string $order Sort order by : 'position', 'code', 'rowid'... - * @param int<0,1> $option 0=Return array id->label, 1=Return array code->label - * @param int<0,1> $activeonly 0=all status of contact, 1=only the active - * @param string $code Type of contact (Example: 'CUSTOMER', 'SERVICE') - * @return array|array|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error + * @param string $order Sort order by : 'position', 'code', 'rowid'... + * @param int<0,1> $option 0=Return array id->label, 1=Return array code->label, 2=Return complete array + * @param int<0,1> $activeonly 0=all status of contact, 1=only the active + * @param string $code Type of contact (Example: 'CUSTOMER', 'SERVICE') + * @return array|array|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error */ public function liste_type_contact($source = 'internal', $order = 'position', $option = 0, $activeonly = 0, $code = '') { @@ -1646,43 +1646,47 @@ abstract class CommonObject } $tab = array(); + $sql = "SELECT DISTINCT tc.rowid, tc.code, tc.libelle as type_label, tc.position"; $sql .= " FROM ".$this->db->prefix()."c_type_contact as tc"; - $sql .= " WHERE tc.element='".$this->db->escape($this->element)."'"; + $sql .= " WHERE tc.element = '".$this->db->escape($this->element)."'"; if ($activeonly == 1) { - $sql .= " AND tc.active=1"; // only the active types + $sql .= " AND tc.active = 1"; // only the active types } if (!empty($source) && $source != 'all') { - $sql .= " AND tc.source='".$this->db->escape($source)."'"; + $sql .= " AND tc.source = '".$this->db->escape($source)."'"; } if (!empty($code)) { - $sql .= " AND tc.code='".$this->db->escape($code)."'"; + $sql .= " AND tc.code = '".$this->db->escape($code)."'"; } $sql .= $this->db->order($order, 'ASC'); //print "sql=".$sql; $resql = $this->db->query($sql); - if ($resql) { - $num = $this->db->num_rows($resql); - $i = 0; - while ($i < $num) { - $obj = $this->db->fetch_object($resql); - - $transkey = "TypeContact_".$this->element."_".$source."_".$obj->code; - $libelle_type = ($langs->trans($transkey) != $transkey ? $langs->trans($transkey) : $obj->type_label); - if (empty($option)) { - $tab[$obj->rowid] = $libelle_type; - } else { - $tab[$obj->code] = $libelle_type; - } - $i++; - } - return $tab; - } else { + if (!$resql) { $this->error = $this->db->lasterror(); //dol_print_error($this->db); return null; } + + $num = $this->db->num_rows($resql); + $i = 0; + while ($i < $num) { + $obj = $this->db->fetch_object($resql); + + $transkey = "TypeContact_".$this->element."_".$source."_".$obj->code; + $libelle_type = ($langs->trans($transkey) != $transkey ? $langs->trans($transkey) : $obj->type_label); + if (empty($option)) { + $tab[$obj->rowid] = $libelle_type; + } elseif ($option == 1) { + $tab[$obj->code] = $libelle_type; + } else { + $tab[$obj->rowid] = array('id' => $obj->rowid, 'code' => $obj->code, 'label' => $libelle_type); + } + $i++; + } + + return $tab; } /** diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index ae973c79902..39c0ff94ec2 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -828,22 +828,22 @@ class FormCompany extends Form $out = ''; if (is_object($object) && method_exists($object, 'liste_type_contact')) { '@phan-var-force CommonObject $object'; // CommonObject has the method. - $lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1); // List of types into c_type_contact for element=$object->element + $lesTypes = $object->liste_type_contact($source, $sortorder, 2, 1); // List of types into c_type_contact for element=$object->element $out .= '"; if ($user->admin && empty($forcehidetooltip)) { - $out .= ' ' . info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); + $out .= ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); } $out .= ajax_combobox($htmlname); diff --git a/htdocs/expedition/contact.php b/htdocs/expedition/contact.php index 939c6649535..058cf084894 100644 --- a/htdocs/expedition/contact.php +++ b/htdocs/expedition/contact.php @@ -22,7 +22,7 @@ /** * \file htdocs/expedition/contact.php * \ingroup expedition - * \brief Onglet de gestion des contacts de expedition + * \brief Tab to manage addresses of shipments */ // Load Dolibarr environment From 353696b3ba35db9771319e9abfa0ade22037d0b2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 03:22:51 +0100 Subject: [PATCH 023/110] Doc --- htdocs/install/mysql/tables/llx_expedition.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/tables/llx_expedition.sql b/htdocs/install/mysql/tables/llx_expedition.sql index 25d22b9bbf0..5743e9b4543 100644 --- a/htdocs/install/mysql/tables/llx_expedition.sql +++ b/htdocs/install/mysql/tables/llx_expedition.sql @@ -38,7 +38,7 @@ create table llx_expedition date_valid datetime, -- date of validation fk_user_valid integer, -- user that validate date_delivery datetime DEFAULT NULL, -- date planned of delivery - date_expedition datetime, -- not used (deprecated) + date_expedition datetime, -- date real shipment (to implement) fk_address integer DEFAULT NULL, -- delivery address (deprecated) fk_shipping_method integer, tracking_number varchar(50), From c9972f1dd9321d28bc4f10841f5fbf789264d69d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 03:32:57 +0100 Subject: [PATCH 024/110] Fix phan --- htdocs/core/class/commonobject.class.php | 2 +- htdocs/product/class/product.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 9c2d7b10aa7..620dbb57c61 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1631,7 +1631,7 @@ abstract class CommonObject * @param int<0,1> $option 0=Return array id->label, 1=Return array code->label, 2=Return complete array * @param int<0,1> $activeonly 0=all status of contact, 1=only the active * @param string $code Type of contact (Example: 'CUSTOMER', 'SERVICE') - * @return array|array|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error + * @return array|array|array|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error */ public function liste_type_contact($source = 'internal', $order = 'position', $option = 0, $activeonly = 0, $code = '') { diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index b0536fb239c..eb4e784b8e6 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -6189,7 +6189,7 @@ class Product extends CommonObject $this->stock_reel += $row->reel; $i++; } - $this->stock_reel = price2num($this->stock_reel, 'MS'); + $this->stock_reel = (float) price2num($this->stock_reel, 'MS'); } $this->db->free($result); From 3b0ccddaea5bf75c332a75344601d5abe904fa3d Mon Sep 17 00:00:00 2001 From: iLLixM <162678117+iLLixM@users.noreply.github.com> Date: Tue, 12 Nov 2024 03:37:48 +0100 Subject: [PATCH 025/110] set payment method information on new membership subscriptions (#31750) When creating new membership subscriptions and choosing to create an invoice (for linked thirdparty), existing payment method information of the customer should be used. Co-authored-by: Laurent Destailleur --- htdocs/adherents/class/adherent.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 4c5703e4540..a113d6f0970 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -1836,13 +1836,17 @@ class Adherent extends CommonObject } } $invoice->socid = $this->fk_soc; - // set customer's bank account on the invoice + // set customer's payment bank account on the invoice if (!empty($customer->fk_account)) { $invoice->fk_account = $customer->fk_account; } elseif (getDolGlobalString('FACTURE_RIB_NUMBER')) { // set default bank account from invoice module settings $invoice->fk_account = (int) getDolGlobalString('FACTURE_RIB_NUMBER'); } + //set customer's payment method on the invoice + if (!empty($customer->mode_reglement_id)) { + $invoice->mode_reglement_id = $customer->mode_reglement_id; + } //$invoice->date = $datesubscription; $invoice->date = dol_now(); From 836bb71303c767c29bb0e2694ee180e31d797d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 12 Nov 2024 03:38:38 +0100 Subject: [PATCH 026/110] fix customreports.lib.php (#31771) * fix customreports.lib.php * Update commondict.class.php * Update ctyperesource.class.php * fix * CommonDict is not a business class * Update ctyperesource.class.php * Update ctyperesource.class.php --------- Co-authored-by: Laurent Destailleur --- build/phpstan/phpstan-baseline.neon | 15 --------------- htdocs/core/lib/customreports.lib.php | 4 ++-- htdocs/opensurvey/wizard/create_survey.php | 2 +- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index 48e5c9f8c08..6616e9c1b87 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -17930,21 +17930,6 @@ parameters: count: 1 path: ../../htdocs/opensurvey/results.php - - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" - count: 1 - path: ../../htdocs/opensurvey/wizard/create_survey.php - - - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" - count: 1 - path: ../../htdocs/opensurvey/wizard/create_survey.php - - - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" - count: 1 - path: ../../htdocs/opensurvey/wizard/create_survey.php - - message: "#^Variable \\$allow_comments might not be defined\\.$#" count: 1 diff --git a/htdocs/core/lib/customreports.lib.php b/htdocs/core/lib/customreports.lib.php index a94891c00d7..ac3cab1aa64 100644 --- a/htdocs/core/lib/customreports.lib.php +++ b/htdocs/core/lib/customreports.lib.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2024 Laurent Destailleur * Copyright (C) 2024 Frédéric France * Copyright (C) 2024 MDW * @@ -591,7 +591,7 @@ function fillArrayOfFilterFields($object, $tablealias, $labelofobject, &$arrayof 'position' => 1000 + (int) $extrafields->attributes[$object->table_element]['pos'][$key] + ($count * 100000), 'table' => $object->table_element, 'tablefromt' => $tablepath, - 'type' => $val['type'] // TODO: Check this, seems a copy/paste error + 'type' => $extrafields->attributes[$object->table_element]['type'][$key], ); } } diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php index 6df9d1ec060..0cf7deab04f 100644 --- a/htdocs/opensurvey/wizard/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -93,7 +93,7 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { $testdate = false; $champdatefin = (int) dol_mktime(23, 59, 59, GETPOSTINT('champdatefinmonth'), GETPOSTINT('champdatefinday'), GETPOSTINT('champdatefinyear')); - if ($champdatefin > 0) { // A date was provided, $error still 0 here + if ($champdatefin > 0) { // A date was provided // Expire date is not before today if ($champdatefin >= dol_now()) { $testdate = true; From 34b4b07fe21c35d476d2f7a3e1fb8023021c805b Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Tue, 12 Nov 2024 04:40:38 +0200 Subject: [PATCH 027/110] New: prepare for e-shipment (SQL part) (#31773) * Add issue date * Add field fk_unit * Add shipment contacts * New Add is_delivery_note SQL part * New fields for e-shipment SQL part * Update llx_facture.sql * Update 20.0.0-21.0.0.sql * Update 20.0.0-21.0.0.sql * Update llx_expedition.sql --------- Co-authored-by: Laurent Destailleur --- htdocs/install/mysql/data/llx_c_type_contact.sql | 5 +++++ htdocs/install/mysql/migration/20.0.0-21.0.0.sql | 5 +++++ htdocs/install/mysql/tables/llx_expedition.sql | 3 +-- htdocs/install/mysql/tables/llx_expeditiondet.sql | 13 +++++++------ 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/htdocs/install/mysql/data/llx_c_type_contact.sql b/htdocs/install/mysql/data/llx_c_type_contact.sql index 07178dacdcd..b7e649559e9 100644 --- a/htdocs/install/mysql/data/llx_c_type_contact.sql +++ b/htdocs/install/mysql/data/llx_c_type_contact.sql @@ -73,6 +73,11 @@ insert into llx_c_type_contact (element, source, code, libelle, active ) values insert into llx_c_type_contact (element, source, code, libelle, active ) values ('commande', 'external', 'CUSTOMER', 'Contact client suivi commande', 1); insert into llx_c_type_contact (element, source, code, libelle, active ) values ('commande', 'external', 'SHIPPING', 'Contact client livraison commande', 1); +-- Shipment / Expedition +insert into llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Loading facility', 1); +insert into llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Delivery facility', 1); +insert into llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Customer shipping contact', 1); + -- Intervention / Fichinter insert into llx_c_type_contact (element, source, code, libelle, active ) values ('fichinter', 'internal', 'INTERREPFOLL', 'Responsable suivi de l''intervention', 1); insert into llx_c_type_contact (element, source, code, libelle, active ) values ('fichinter', 'internal', 'INTERVENING', 'Intervenant', 1); diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index 5d8523c0dac..6cc7b0bfa76 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -320,4 +320,9 @@ ALTER TABLE llx_c_tva ADD COLUMN fk_department_buyer integer DEFAULT NULL AFTER ALTER TABLE llx_c_tva ADD INDEX idx_tva_fk_department_buyer (fk_department_buyer); ALTER TABLE llx_c_tva ADD CONSTRAINT fk_tva_fk_department_buyer FOREIGN KEY (fk_department_buyer) REFERENCES llx_c_departements (rowid); +ALTER TABLE llx_expeditiondet ADD COLUMN fk_unit integer AFTER qty; +INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Loading facility', 1); +INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Delivery facility', 1); +INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Customer shipping contact', 1); + ALTER TABLE llx_facture_rec ADD COLUMN fk_societe_rib integer DEFAULT NULL; diff --git a/htdocs/install/mysql/tables/llx_expedition.sql b/htdocs/install/mysql/tables/llx_expedition.sql index 5743e9b4543..3c4cfb545f6 100644 --- a/htdocs/install/mysql/tables/llx_expedition.sql +++ b/htdocs/install/mysql/tables/llx_expedition.sql @@ -27,11 +27,10 @@ create table llx_expedition ref varchar(30) NOT NULL, entity integer DEFAULT 1 NOT NULL, -- multi company id fk_soc integer NOT NULL, - fk_projet integer DEFAULT NULL, + fk_projet integer DEFAULT NULL, ref_ext varchar(255), -- reference into an external system (not used by dolibarr) ref_customer varchar(255), -- customer number - date_creation datetime, -- date of creation fk_user_author integer, -- author of creation fk_user_modif integer, -- author of last change diff --git a/htdocs/install/mysql/tables/llx_expeditiondet.sql b/htdocs/install/mysql/tables/llx_expeditiondet.sql index 3fdda0c3442..be3cd616318 100644 --- a/htdocs/install/mysql/tables/llx_expeditiondet.sql +++ b/htdocs/install/mysql/tables/llx_expeditiondet.sql @@ -22,12 +22,13 @@ create table llx_expeditiondet ( rowid integer AUTO_INCREMENT PRIMARY KEY, - fk_expedition integer NOT NULL, -- ID of parent object - fk_element integer, -- ID of main source object - fk_elementdet integer, -- ID of line of source object (proposal, sale order) + fk_expedition integer NOT NULL, -- ID of parent object + fk_element integer, -- ID of main source object + fk_elementdet integer, -- ID of line of source object (proposal, sale order) element_type varchar(50) DEFAULT 'commande' NOT NULL, -- Type of source object ('commande', ...) - fk_product integer, -- ID of product. If empy, you can retreive it using fk_element/element_type link - qty real, -- Quantity - fk_entrepot integer, -- Warehouse for departure of product + fk_product integer, -- ID of product. If empy, you can retreive it using fk_element/element_type link + qty real, -- Quantity + fk_unit integer, -- ID of unit code + fk_entrepot integer, -- Warehouse for departure of product rang integer DEFAULT 0 )ENGINE=innodb; From 4a97adfc62c1aee046f47d6ed999bfdd3d649486 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 03:52:08 +0100 Subject: [PATCH 028/110] Add column is_also_delivery_note --- htdocs/install/mysql/migration/20.0.0-21.0.0.sql | 6 ++++-- htdocs/install/mysql/tables/llx_expedition.sql | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index 6cc7b0bfa76..d4d36ba7da4 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -114,7 +114,7 @@ ALTER TABLE llx_bank_categ RENAME TO llx_category_bank; -- TODO Move content in ALTER TABLE llx_bank_class RENAME TO llx_category_bankline; -create table llx_paymentexpensereport_expensereport +CREATE TABLE llx_paymentexpensereport_expensereport ( rowid integer AUTO_INCREMENT PRIMARY KEY, fk_payment integer, @@ -257,7 +257,7 @@ ALTER TABLE llx_c_accounting_category ADD COLUMN fk_report integer NOT NULL DEFA ALTER TABLE llx_c_accounting_category DROP INDEX uk_c_accounting_category; ALTER TABLE llx_c_accounting_category ADD UNIQUE INDEX uk_c_accounting_category (code,entity,fk_report); -create table llx_accounting_category_account +CREATE TABLE llx_accounting_category_account ( rowid integer AUTO_INCREMENT PRIMARY KEY, fk_accounting_category integer, @@ -326,3 +326,5 @@ INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Customer shipping contact', 1); ALTER TABLE llx_facture_rec ADD COLUMN fk_societe_rib integer DEFAULT NULL; + +ALTER TABLE llx_facture ADD COLUMN is_also_delivery_note tinyint DEFAULT 0 NOT NULL; diff --git a/htdocs/install/mysql/tables/llx_expedition.sql b/htdocs/install/mysql/tables/llx_expedition.sql index 3c4cfb545f6..f9ea867ee31 100644 --- a/htdocs/install/mysql/tables/llx_expedition.sql +++ b/htdocs/install/mysql/tables/llx_expedition.sql @@ -63,6 +63,8 @@ create table llx_expedition fk_incoterms integer, -- for incoterms location_incoterms varchar(255), -- for incoterms - import_key varchar(14), - extraparams varchar(255) -- for other parameters with json format + is_also_delivery_note tinyint DEFAULT 0 NOT NULL, -- 0=default, 1=can act also as a delivery note (for countries that accept invoices as delivery notes) + + import_key varchar(14), -- import id when line is imported + extraparams varchar(255) -- for other parameters with json format )ENGINE=innodb; From 71a47c6555617eb9404d554f7c37cccdd2c64b64 Mon Sep 17 00:00:00 2001 From: JonathanBtq <99287239+Jonathanbtq@users.noreply.github.com> Date: Tue, 12 Nov 2024 04:00:37 +0100 Subject: [PATCH 029/110] add custom tpl to note (#31736) * add custom tpl to note * Update note.php --------- Co-authored-by: Laurent Destailleur --- htdocs/commande/note.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index dc22f09deea..572e741348f 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -146,7 +146,13 @@ if ($id > 0 || !empty($ref)) { $cssclass = "titlefield"; - include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php'; + $dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl')); + foreach ($dirtpls as $reldir) { + $res = @include dol_buildpath($reldir.'/notes.tpl.php'); + if ($res) { + break; + } + } print '
'; From 5312bd80b926ff43040f27c057e98ef9a2159863 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 04:04:31 +0100 Subject: [PATCH 030/110] Doc --- htdocs/core/class/conf.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index cb5a97f8c7b..a86f0551bab 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -378,7 +378,8 @@ class Conf extends stdClass 'hooks' => array(), 'dir' => array(), 'syslog' => array(), - 'websitetemplates' => array() + 'websitetemplates' => array(), + //'captcha' => array() // Can be removed,this does not generates warning ); // First level object that are modules. From 2c3d6fa66a5bf6ec4b7bdf113bf20e475e8fc51c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 10:53:08 +0100 Subject: [PATCH 031/110] Reduce limit for list --- htdocs/blockedlog/admin/blockedlog_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php index b89e047492f..5cb5d47b1b3 100644 --- a/htdocs/blockedlog/admin/blockedlog_list.php +++ b/htdocs/blockedlog/admin/blockedlog_list.php @@ -350,7 +350,7 @@ $help_url = "EN:Module_Unalterable_Archives_-_Logs|FR:Module_Archives_-_Logs_Ina llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist mod-blockedlog page-admin_blockedlog_list'); -$MAXLINES = 10000; +$MAXLINES = getDolGlobalInt('BLOCKEDLOG_MAX_LINES', 1000); $blocks = $block_static->getLog('all', $search_id, $MAXLINES, $sortfield, $sortorder, $search_fk_user, $search_start, $search_end, $search_ref, $search_amount, $search_code); if (!is_array($blocks)) { From bd170e0474929002a768894659ee24f43640f869 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 11:33:31 +0100 Subject: [PATCH 032/110] Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop --- htdocs/blockedlog/class/blockedlog.class.php | 52 ++++++++++++++----- htdocs/core/db/DoliDB.class.php | 3 +- htdocs/core/db/mysqli.class.php | 5 +- .../install/mysql/migration/20.0.0-21.0.0.sql | 3 ++ .../mysql/tables/llx_blockedlog.key.sql | 23 +++++++- 5 files changed, 67 insertions(+), 19 deletions(-) diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php index 46820f95ea3..ef209ae6b85 100644 --- a/htdocs/blockedlog/class/blockedlog.class.php +++ b/htdocs/blockedlog/class/blockedlog.class.php @@ -1088,23 +1088,47 @@ class BlockedLog $previoussignature = ''; - $sql = "SELECT rowid, signature FROM ".MAIN_DB_PREFIX."blockedlog"; - $sql .= " WHERE entity = ".((int) $conf->entity); + // Fast search of previous record by searching with beforeid - 1. This is very fast and will work 99% of time. if ($beforeid) { - $sql .= " AND rowid < ".(int) $beforeid; - } - $sql .= " ORDER BY rowid DESC LIMIT 1"; - $sql .= ($withlock ? " FOR UPDATE " : ""); + $sql = "SELECT rowid, signature FROM ".MAIN_DB_PREFIX."blockedlog"; + $sql .= " WHERE entity = ".((int) $conf->entity); + $sql .= " AND rowid = ".((int) $beforeid - 1); + $sql .= ($withlock ? " FOR UPDATE " : ""); - $resql = $this->db->query($sql); - if ($resql) { - $obj = $this->db->fetch_object($resql); - if ($obj) { - $previoussignature = $obj->signature; + $resql = $this->db->query($sql); + if ($resql) { + $obj = $this->db->fetch_object($resql); + if ($obj) { + $previoussignature = $obj->signature; + } + } else { + dol_print_error($this->db); + exit; + } + } + + if (empty($previoussignature)) { + $sql = "SELECT rowid, signature FROM ".MAIN_DB_PREFIX."blockedlog"; + if ($beforeid) { + $sql.= $this->db->hintindex('entity_rowid', 1); + } + $sql .= " WHERE entity = ".((int) $conf->entity); + if ($beforeid) { + $sql .= " AND rowid < ".(int) $beforeid; + } + $sql .= " ORDER BY rowid DESC LIMIT 1"; + $sql .= ($withlock ? " FOR UPDATE " : ""); + + $resql = $this->db->query($sql); + if ($resql) { + $obj = $this->db->fetch_object($resql); + if ($obj) { + $previoussignature = $obj->signature; + } + } else { + dol_print_error($this->db); + exit; } - } else { - dol_print_error($this->db); - exit; } if (empty($previoussignature)) { diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index a73b6649654..1a898e9c618 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -122,9 +122,10 @@ abstract class DoliDB implements Database * Return SQL string to force an index * * @param string $nameofindex Name of index + * @param int $mode 0=Use, 1=Force * @return string SQL string */ - public function hintindex($nameofindex) + public function hintindex($nameofindex, $mode = 1) { return ''; } diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 7a20d8027a6..6fd6a86061c 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -200,11 +200,12 @@ class DoliDBMysqli extends DoliDB * Return SQL string to force an index * * @param string $nameofindex Name of index + * @param int $mode 0=Use, 1=Force * @return string SQL string */ - public function hintindex($nameofindex) + public function hintindex($nameofindex, $mode = 1) { - return " FORCE INDEX(".preg_replace('/[^a-z0-9_]/', '', $nameofindex).")"; + return " ".($mode == 1 ? 'FORCE' : 'USE')." INDEX(".preg_replace('/[^a-z0-9_]/', '', $nameofindex).")"; } diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index d4d36ba7da4..5281bc760f1 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -51,6 +51,9 @@ ALTER TABLE llx_hrm_evaluation MODIFY COLUMN modelpdf varchar(255) DEFAULT NULL; -- V21 migration +ALTER TABLE llx_blockedlog DROP INDEX entity_action; +ALTER TABLE llx_blockedlog ADD INDEX entity_rowid (entity, rowid); + ALTER TABLE llx_ecm_files MODIFY COLUMN description varchar(255); ALTER TABLE llx_ecm_files MODIFY COLUMN cover varchar(32); ALTER TABLE llx_ecm_files ADD COLUMN content text; diff --git a/htdocs/install/mysql/tables/llx_blockedlog.key.sql b/htdocs/install/mysql/tables/llx_blockedlog.key.sql index 4312a056894..065be82aba1 100644 --- a/htdocs/install/mysql/tables/llx_blockedlog.key.sql +++ b/htdocs/install/mysql/tables/llx_blockedlog.key.sql @@ -1,6 +1,25 @@ +-- =================================================================== +-- Copyright (C) 2024 Laurent Destailleur +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- =================================================================== + ALTER TABLE llx_blockedlog ADD INDEX signature (signature); ALTER TABLE llx_blockedlog ADD INDEX fk_object_element (fk_object,element); ALTER TABLE llx_blockedlog ADD INDEX entity (entity); -ALTER TABLE llx_blockedlog ADD INDEX fk_user (fk_user); -ALTER TABLE llx_blockedlog ADD INDEX entity_action (entity,action); +ALTER TABLE llx_blockedlog ADD INDEX fk_user (fk_user); ALTER TABLE llx_blockedlog ADD INDEX entity_action_certified (entity,action,certified); + +ALTER TABLE llx_blockedlog ADD INDEX entity_rowid (entity, rowid); -- for the "SELECT rowid, signature FROM llx_blockedlog FORCE INDEX entity_rowid WHERE entity = x AND rowid < z ORDER BY rowid DESC" From 487f910aa79da2e7b01b5caa29bd96e4ec6a12da Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 11:41:00 +0100 Subject: [PATCH 033/110] Fix bad value --- htdocs/blockedlog/admin/blockedlog_list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php index 5cb5d47b1b3..eb831fb06b8 100644 --- a/htdocs/blockedlog/admin/blockedlog_list.php +++ b/htdocs/blockedlog/admin/blockedlog_list.php @@ -647,8 +647,9 @@ if (is_array($blocks)) { // Fingerprint print ''; + // Note: the previous line id is not necessarily id-1, so in texttoshow we say "on previous line" without giving id to avoid a search/fetch to get previous id. $texttoshow = $langs->trans("Fingerprint").' - '.$langs->trans("SavedOnLine").' =
'.$block->signature; - $texttoshow .= '

'.$langs->trans("Fingerprint").' - Recalculated sha256('.$langs->trans("PreviousHash").' on line '.($block->id - 1).' + data) =
'.$checkdetail[$block->id]['calculatedsignature']; + $texttoshow .= '

'.$langs->trans("Fingerprint").' - Recalculated sha256('.$langs->trans("PreviousHash").' on previous line + data) =
'.$checkdetail[$block->id]['calculatedsignature']; $texttoshow .= '
'.$langs->trans("PreviousHash").'='.$checkdetail[$block->id]['previoushash'].''; //$texttoshow .= '
keyforsignature='.$checkdetail[$block->id]['keyforsignature']; print $form->textwithpicto(dol_trunc($block->signature, 8), $texttoshow, 1, 'help', '', 0, 2, 'fingerprint'.$block->id); From 4c556babaf032597231e37de8c85bdb576e9b0f4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 11:51:14 +0100 Subject: [PATCH 034/110] Clean code --- htdocs/blockedlog/admin/blockedlog_list.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php index eb831fb06b8..95da9f8f9ee 100644 --- a/htdocs/blockedlog/admin/blockedlog_list.php +++ b/htdocs/blockedlog/admin/blockedlog_list.php @@ -117,13 +117,16 @@ $block_static->loadTrackedEvents(); $result = restrictedArea($user, 'blockedlog', 0, ''); // Execution Time -$max_execution_time_for_importexport = (!getDolGlobalString('EXPORT_MAX_EXECUTION_TIME') ? 300 : $conf->global->EXPORT_MAX_EXECUTION_TIME); // 5mn if not defined +$max_execution_time_for_importexport = getDolGlobalInt('EXPORT_MAX_EXECUTION_TIME', 300); // 5mn if not defined $max_time = @ini_get("max_execution_time"); if ($max_time && $max_time < $max_execution_time_for_importexport) { dol_syslog("max_execution_time=".$max_time." is lower than max_execution_time_for_importexport=".$max_execution_time_for_importexport.". We try to increase it dynamically."); @ini_set("max_execution_time", $max_execution_time_for_importexport); // This work only if safe mode is off. also web servers has timeout of 300 } +$MAXLINES = getDolGlobalInt('BLOCKEDLOG_MAX_LINES', 10000); +$MAXFORSHOWNLINKS = getDolGlobalInt('BLOCKEDLOG_MAX_FOR_SHOWN_LINKS', 100); + /* * Actions @@ -350,8 +353,6 @@ $help_url = "EN:Module_Unalterable_Archives_-_Logs|FR:Module_Archives_-_Logs_Ina llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist mod-blockedlog page-admin_blockedlog_list'); -$MAXLINES = getDolGlobalInt('BLOCKEDLOG_MAX_LINES', 1000); - $blocks = $block_static->getLog('all', $search_id, $MAXLINES, $sortfield, $sortorder, $search_fk_user, $search_start, $search_end, $search_ref, $search_amount, $search_code); if (!is_array($blocks)) { if ($blocks == -2) { @@ -587,7 +588,6 @@ if (getDolGlobalString('BLOCKEDLOG_SCAN_ALL_FOR_LOWERIDINERROR')) { if (is_array($blocks)) { $nbshown = 0; - $MAXFORSHOWLINK = 100; $object_link = ''; $object_link_title = ''; @@ -596,7 +596,7 @@ if (is_array($blocks)) { if (empty($search_showonlyerrors) || !$checkresult[$block->id]) { $nbshown++; - if ($nbshown < $MAXFORSHOWLINK) { // For performance and memory purpose, we get/show the link of objects only for the 100 first output + if ($nbshown < $MAXFORSHOWNLINKS) { // For performance and memory purpose, we get/show the link of objects only for the 100 first output $object_link = $block->getObjectLink(); $object_link_title = ''; } else { From b86a48106bd73a14ecd1856550e21214f2b93e47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 12:43:50 +0100 Subject: [PATCH 035/110] Fix phan --- htdocs/product/class/product.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index eb4e784b8e6..b06e7c98c57 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -356,14 +356,14 @@ class Product extends CommonObject /** * Stock real (denormalized data) * - * @var int + * @var float */ public $stock_reel = 0; /** * Stock virtual * - * @var int + * @var float */ public $stock_theorique; From a64de4d24d7d93b0b5f6ed91fae1df7d58b9fa51 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 12:57:08 +0100 Subject: [PATCH 036/110] Clean code --- htdocs/barcode/printsheet.php | 6 ++--- htdocs/core/class/commonobject.class.php | 32 ++++++++++++++++-------- htdocs/core/class/html.form.class.php | 4 +-- htdocs/product/card.php | 6 ++--- htdocs/product/price_suppliers.php | 2 +- 5 files changed, 30 insertions(+), 20 deletions(-) diff --git a/htdocs/barcode/printsheet.php b/htdocs/barcode/printsheet.php index ba3c994fcf7..3415162c260 100644 --- a/htdocs/barcode/printsheet.php +++ b/htdocs/barcode/printsheet.php @@ -157,7 +157,7 @@ if (empty($reshook)) { // Get encoder (barcode_type_coder) from barcode type id (barcode_type) $stdobject = new GenericObject($db); $stdobject->barcode_type = $fk_barcode_type; - $result = $stdobject->fetch_barcode(); + $result = $stdobject->fetchBarCode(); if ($result <= 0) { $error++; setEventMessages('Failed to get bar code type information '.$stdobject->error, $stdobject->errors, 'errors'); @@ -171,8 +171,8 @@ if (empty($reshook)) { if (!$error && $stdobject !== null) { $code = $forbarcode; - $generator = $stdobject->barcode_type_coder; // coder (loaded by fetch_barcode). Engine. - $encoding = strtoupper($stdobject->barcode_type_code); // code (loaded by fetch_barcode). Example 'ean', 'isbn', ... + $generator = $stdobject->barcode_type_coder; // coder (loaded by fetchBarCode). Engine. + $encoding = strtoupper($stdobject->barcode_type_code); // code (loaded by fetchBarCode). Example 'ean', 'isbn', ... $diroutput = $conf->barcode->dir_temp; dol_mkdir($diroutput); diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 620dbb57c61..b37acf4b7f2 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -425,25 +425,25 @@ abstract class CommonObject /** * @var int Barcode type - * @see fetch_barcode() + * @see fetchBarCode() */ public $barcode_type; /** * @var string Code of the barcode type - * @see fetch_barcode(), barcode_type + * @see fetchBarCode(), barcode_type */ public $barcode_type_code; /** * @var string Label of the barcode type - * @see fetch_barcode(), barcode_type + * @see fetchBarCode(), barcode_type */ public $barcode_type_label; /** * @var string - * @see fetch_barcode(), barcode_type + * @see fetchBarCode(), barcode_type */ public $barcode_type_coder; @@ -1702,7 +1702,7 @@ abstract class CommonObject */ public function listeTypeContacts($source = 'internal', $option = 0, $activeonly = 0, $code = '', $element = '', $excludeelement = '') { - global $langs, $conf; + global $langs; $langs->loadLangs(array('bills', 'contracts', 'interventions', 'orders', 'projects', 'propal', 'ticket', 'agenda')); @@ -1784,8 +1784,6 @@ abstract class CommonObject */ public function getIdContact($source, $code, $status = 0) { - global $conf; - $result = array(); $i = 0; // Particular case for shipping @@ -1952,13 +1950,24 @@ abstract class CommonObject * if it is not defined, ->element must be defined to know default barcode type. * * @return int<-1,1> Return integer <0 if KO, 0 if can't guess type of barcode (ISBN, EAN13...), >0 if OK (all barcode properties loaded) + * @deprecated Use fetchBarCode() */ public function fetch_barcode() { // phpcs:enable - global $conf; + return fetchBarCode(); + } - dol_syslog(get_class($this).'::fetch_barcode this->element='.$this->element.' this->barcode_type='.$this->barcode_type); + /** + * Load data for barcode into properties ->barcode_type* + * Properties ->barcode_type that is id of barcode. Type is used to find other properties, but + * if it is not defined, ->element must be defined to know default barcode type. + * + * @return int<-1,1> Return integer <0 if KO, 0 if can't guess type of barcode (ISBN, EAN13...), >0 if OK (all barcode properties loaded) + */ + public function fetchBarCode() + { + dol_syslog(get_class($this).'::fetchBarCode this->element='.$this->element.' this->barcode_type='.$this->barcode_type); $idtype = $this->barcode_type; if (empty($idtype) && $idtype != '0') { // If type of barcode no set, we try to guess. If set to '0' it means we forced to have type remain not defined @@ -1967,7 +1976,7 @@ abstract class CommonObject } elseif ($this->element == 'societe') { $idtype = getDolGlobalString('GENBARCODE_BARCODETYPE_THIRDPARTY'); } else { - dol_syslog('Call fetch_barcode with barcode_type not defined and cannot be guessed', LOG_WARNING); + dol_syslog('Call fetchBarCode with barcode_type not defined and cannot be guessed', LOG_WARNING); } } @@ -1976,10 +1985,11 @@ abstract class CommonObject $sql = "SELECT rowid, code, libelle as label, coder"; $sql .= " FROM ".$this->db->prefix()."c_barcode_type"; $sql .= " WHERE rowid = ".((int) $idtype); - dol_syslog(get_class($this).'::fetch_barcode', LOG_DEBUG); + $resql = $this->db->query($sql); if ($resql) { $obj = $this->db->fetch_object($resql); + $this->barcode_type = $obj->rowid; $this->barcode_type_code = $obj->code; $this->barcode_type_label = $obj->label; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index be5c3028b4e..ab6f9fdf462 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -10290,8 +10290,8 @@ class Form // Complete object if not complete if (empty($object->barcode_type_code) || empty($object->barcode_type_coder)) { // @phan-suppress-next-line PhanPluginUnknownObjectMethodCall - $result = $object->fetch_barcode(); - //Check if fetch_barcode() failed + $result = $object->fetchBarCode(); + //Check if fetchBarCode() failed if ($result < 1) { return ''; } diff --git a/htdocs/product/card.php b/htdocs/product/card.php index b7e8cd562df..6e9ebf57447 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -590,7 +590,7 @@ if (empty($reshook)) { $stdobject = new GenericObject($db); $stdobject->element = 'product'; $stdobject->barcode_type = GETPOSTINT('fk_barcode_type'); - $result = $stdobject->fetch_barcode(); + $result = $stdobject->fetchBarCode(); if ($result < 0) { $error++; $mesg = 'Failed to get bar code type information '; @@ -835,7 +835,7 @@ if (empty($reshook)) { $stdobject = new GenericObject($db); $stdobject->element = 'product'; $stdobject->barcode_type = GETPOSTINT('fk_barcode_type'); - $result = $stdobject->fetch_barcode(); + $result = $stdobject->fetchBarCode(); if ($result < 0) { $error++; $mesg = 'Failed to get bar code type information '; @@ -2555,7 +2555,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio print $formbarcode->formBarcodeType($_SERVER['PHP_SELF'].'?id='.$object->id, $object->barcode_type, 'fk_barcode_type'); $fk_barcode_type = $object->barcode_type; } else { - $object->fetch_barcode(); + $object->fetchBarCode(); $fk_barcode_type = $object->barcode_type; print $object->barcode_type_label ? $object->barcode_type_label : ($object->barcode ? '
'.$langs->trans("SetDefaultBarcodeType").'
' : ''); } diff --git a/htdocs/product/price_suppliers.php b/htdocs/product/price_suppliers.php index fa1849b0192..d89ebed0e6e 100644 --- a/htdocs/product/price_suppliers.php +++ b/htdocs/product/price_suppliers.php @@ -1260,7 +1260,7 @@ if ($id > 0 || $ref) { if (!empty($arrayfields['pfp.fk_barcode_type']['checked'])) { print ''; $productfourn->barcode_type = !empty($productfourn->supplier_fk_barcode_type) ? $productfourn->supplier_fk_barcode_type : 0; - $productfourn->fetch_barcode(); + $productfourn->fetchBarCode(); print $productfourn->barcode_type_label ? $productfourn->barcode_type_label : ($productfourn->supplier_barcode ? '
'.$langs->trans("SetDefaultBarcodeType").'
' : ''); print ''; } From 14d548143b23301471a3da417fe39231b880ad58 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 13:08:03 +0100 Subject: [PATCH 037/110] Try to fix phpstan --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index b37acf4b7f2..04d68e85489 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1631,7 +1631,7 @@ abstract class CommonObject * @param int<0,1> $option 0=Return array id->label, 1=Return array code->label, 2=Return complete array * @param int<0,1> $activeonly 0=all status of contact, 1=only the active * @param string $code Type of contact (Example: 'CUSTOMER', 'SERVICE') - * @return array|array|array|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error + * @return array|array|array|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error */ public function liste_type_contact($source = 'internal', $order = 'position', $option = 0, $activeonly = 0, $code = '') { From 405444879a4b5ca688cf55b8c89b2470b2dd3d2c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 13:25:46 +0100 Subject: [PATCH 038/110] Debug v21 --- htdocs/compta/facture/class/facture-rec.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index e0c28539c6b..ea3d6f0ea68 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -203,8 +203,10 @@ class FactureRec extends CommonInvoice */ public $fk_societe_rib; + const PAYMENTCODETOEDITSOCIETERIB = "PRE"; + /** * 'type' if the field format ('integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter]]', 'varchar(x)', 'double(24,8)', 'real', 'price', 'text', 'html', 'date', 'datetime', 'timestamp', 'duration', 'mail', 'phone', 'url', 'password') * Note: Filter can be a string like "(t.ref:like:'SO-%') or (t.date_creation:<:'20160101') or (t.nature:is:NULL)" @@ -567,7 +569,7 @@ class FactureRec extends CommonInvoice $sql .= " localtax1 = ".((float) $this->total_localtax1).","; $sql .= " localtax2 = ".((float) $this->total_localtax2).","; $sql .= " total_ht = ".((float) $this->total_ht).","; - $sql .= " total_ttc = ".((float) $this->total_ttc); + $sql .= " total_ttc = ".((float) $this->total_ttc).","; $sql .= " fk_societe_rib = ".((int) $this->fk_societe_rib); // TODO Add missing fields $sql .= " WHERE rowid = ".((int) $this->id); From 4b384b3753b749c1c240d5a178aff06de13f1a9b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 13:28:50 +0100 Subject: [PATCH 039/110] Doc --- htdocs/compta/facture/class/facture-rec.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index ea3d6f0ea68..cd34ce11682 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -184,6 +184,11 @@ class FactureRec extends CommonInvoice */ public $mode_reglement_code; // Code in llx_c_paiement + /** + * @var int ID of bank account to use if invoice is set for direct debit payment (see PAYMENTCODETOEDITSOCIETERIB) + */ + public $fk_societe_rib; + /** * @var int */ @@ -198,10 +203,6 @@ class FactureRec extends CommonInvoice */ public $generate_pdf; // 1 to generate PDF on invoice generation (default) - /** - * @var int - */ - public $fk_societe_rib; const PAYMENTCODETOEDITSOCIETERIB = "PRE"; From 542b4bd099e73bb03122c445f8782710a4edeb7c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 13:45:15 +0100 Subject: [PATCH 040/110] Fix phan --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 04d68e85489..cc406277aef 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1955,7 +1955,7 @@ abstract class CommonObject public function fetch_barcode() { // phpcs:enable - return fetchBarCode(); + return $this->fetchBarCode(); } /** From 98c92337f1832d7cc9b9ffd9e36fbf47b6a7351e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 12 Nov 2024 13:46:13 +0100 Subject: [PATCH 041/110] Update security.php (#31777) Co-authored-by: Laurent Destailleur --- htdocs/admin/security.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index 83622f5b80c..c28c4deaa56 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -1,8 +1,8 @@ - * Copyright (C) 2005-2007 Regis Houssin - * Copyright (C) 2013-2015 Juanjo Menent - * Copyright (C) 2024 MDW +/* Copyright (C) 2004-2022 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin + * Copyright (C) 2013-2015 Juanjo Menent + * Copyright (C) 2024 MDW * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -114,8 +114,10 @@ if ($action == 'activate_encrypt') { } } elseif ($action == 'disable_encrypt') { // By default, $allow_disable_encryption is false we do not allow to disable encryption because passwords can't be decoded once encrypted. + // We set entity=0 (all) because DATABASE_PWD_ENCRYPTED is a setup into conf file, so always shared for everybody if ($allow_disable_encryption) { dolibarr_del_const($db, "DATABASE_PWD_ENCRYPTED", $conf->entity); + dolibarr_del_const($db, "DATABASE_PWD_ENCRYPTED", 0); } } @@ -125,7 +127,7 @@ if ($action == 'activate_encryptdbpassconf') { sleep(3); // Don't know why but we need to wait file is completely saved before making the reload. Even with flush and clearstatcache, we need to wait. // database value not required - //dolibarr_set_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED", "1"); + // dolibarr_set_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED", "1"); header("Location: security.php"); exit; } else { @@ -137,11 +139,11 @@ if ($action == 'activate_encryptdbpassconf') { sleep(3); // Don't know why but we need to wait file is completely saved before making the reload. Even with flush and clearstatcache, we need to wait. // database value not required - //dolibarr_del_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED",$conf->entity); + // dolibarr_del_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED",$conf->entity); header("Location: security.php"); exit; } else { - //setEventMessages($langs->trans('InstrucToClearPass', $dolibarr_main_db_pass), null, 'warnings'); + // setEventMessages($langs->trans('InstrucToClearPass', $dolibarr_main_db_pass), null, 'warnings'); setEventMessages($langs->trans('InstrucToClearPass', $langs->transnoentitiesnoconv("DatabasePassword")), null, 'warnings'); } } From 3720b748b1adcae5b0cf55af80f0186bc1cdd724 Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:46:45 +0200 Subject: [PATCH 042/110] fix column is_also_delivery_note belongs to llx_facture table (#31779) * fix remove is_also_delivery_note * New: Add field is_also_delivery_note --- htdocs/install/mysql/tables/llx_expedition.sql | 2 -- htdocs/install/mysql/tables/llx_facture.sql | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/install/mysql/tables/llx_expedition.sql b/htdocs/install/mysql/tables/llx_expedition.sql index f9ea867ee31..4a44007de8d 100644 --- a/htdocs/install/mysql/tables/llx_expedition.sql +++ b/htdocs/install/mysql/tables/llx_expedition.sql @@ -63,8 +63,6 @@ create table llx_expedition fk_incoterms integer, -- for incoterms location_incoterms varchar(255), -- for incoterms - is_also_delivery_note tinyint DEFAULT 0 NOT NULL, -- 0=default, 1=can act also as a delivery note (for countries that accept invoices as delivery notes) - import_key varchar(14), -- import id when line is imported extraparams varchar(255) -- for other parameters with json format )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_facture.sql b/htdocs/install/mysql/tables/llx_facture.sql index 9e2f2ad1890..ae6a5b00fb8 100644 --- a/htdocs/install/mysql/tables/llx_facture.sql +++ b/htdocs/install/mysql/tables/llx_facture.sql @@ -102,7 +102,7 @@ create table llx_facture import_key varchar(14), extraparams varchar(255), -- for other parameters with json format - + is_also_delivery_note tinyint DEFAULT 0 NOT NULL, -- 0=default, 1=can act also as a delivery note (for countries that accept invoices as delivery notes) fk_multicurrency integer, multicurrency_code varchar(3), multicurrency_tx double(24,8) DEFAULT 1, From 3bd2aa1921cbea3095028ca6c71f5ff16974fe4b Mon Sep 17 00:00:00 2001 From: atm-corentin <165782689+atm-corentin@users.noreply.github.com> Date: Tue, 12 Nov 2024 13:48:12 +0100 Subject: [PATCH 043/110] FIX tpl object line because the was twice marginclass2 on col margin rates but also on mark rates (#31774) Co-authored-by: Laurent Destailleur --- htdocs/core/tpl/objectline_create.tpl.php | 2 +- htdocs/core/tpl/objectline_title.tpl.php | 2 +- htdocs/core/tpl/objectline_view.tpl.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index fb4489e38bf..e859b3bc5f3 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -171,7 +171,7 @@ if ($nolinesbefore) { echo ''.$langs->trans('MarginRate').''; } if (getDolGlobalString('DISPLAY_MARK_RATES')) { - echo ''.$langs->trans('MarkRate').''; + echo ''.$langs->trans('MarkRate').''; } } } ?> diff --git a/htdocs/core/tpl/objectline_title.tpl.php b/htdocs/core/tpl/objectline_title.tpl.php index f94d304ace4..f548145747b 100644 --- a/htdocs/core/tpl/objectline_title.tpl.php +++ b/htdocs/core/tpl/objectline_title.tpl.php @@ -191,7 +191,7 @@ if ($usemargins && isModEnabled('margin') && empty($user->socid)) { print ''; } if (getDolGlobalString('DISPLAY_MARK_RATES') && $user->hasRight('margins', 'liretous')) { - print ''.$langs->trans('MarkRate').''; + print ''.$langs->trans('MarkRate').''; } } diff --git a/htdocs/core/tpl/objectline_view.tpl.php b/htdocs/core/tpl/objectline_view.tpl.php index d482a97657f..e50370f4c45 100644 --- a/htdocs/core/tpl/objectline_view.tpl.php +++ b/htdocs/core/tpl/objectline_view.tpl.php @@ -454,7 +454,7 @@ if ($usemargins && isModEnabled('margin') && empty($user->socid)) { pa_ht == 0) ? 'n/a' : price(price2num($line->marge_tx, 'MT')).'%'); ?> hasRight('margins', 'liretous')) {?> - marque_tx, 'MT')).'%'; ?> + marque_tx, 'MT')).'%'; ?> Date: Tue, 12 Nov 2024 13:51:13 +0100 Subject: [PATCH 044/110] sells do not need to be paid completely to be included in the cash control (#31727) Co-authored-by: abb --- htdocs/compta/cashcontrol/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/cashcontrol/report.php b/htdocs/compta/cashcontrol/report.php index 34719bd6755..8e72c84a294 100644 --- a/htdocs/compta/cashcontrol/report.php +++ b/htdocs/compta/cashcontrol/report.php @@ -143,7 +143,7 @@ $sql .= " FROM ".MAIN_DB_PREFIX."paiement_facture as pf, ".MAIN_DB_PREFIX."factu $sql .= " WHERE pf.fk_facture = f.rowid AND p.rowid = pf.fk_paiement AND cp.id = p.fk_paiement AND p.fk_bank = b.rowid"; $sql .= " AND f.module_source = '".$db->escape($posmodule)."'"; $sql .= " AND f.pos_source = '".$db->escape($terminalid)."'"; -$sql .= " AND f.paye = 1"; +//$sql .= " AND f.paye = 1"; $sql .= " AND p.entity = ".$conf->entity; // Never share entities for features related to accountancy /*if ($key == 'cash') $sql.=" AND cp.code = 'LIQ'"; elseif ($key == 'cheque') $sql.=" AND cp.code = 'CHQ'"; From c8e8651c665d03d0b34ca548b575ed2db55f1451 Mon Sep 17 00:00:00 2001 From: Andrew Burks <92557438+BurksEngineering@users.noreply.github.com> Date: Tue, 12 Nov 2024 08:14:36 -0500 Subject: [PATCH 045/110] NEW [Accounting] Allow grouping taxes with primary line price (#26732) * Fix expense report journal entries bind to user WAS: expense report payments did not fill out $tabtb (credit) to associate with their $tabpay (debit). The case would always fall through to 'NotDefined' and require manual adjustment. NEW: if a user is associated with the expense report, then that user will get an associated credit line ($tabtp) generated. * allow grouping tax with actual cost for accounting Provides the ability for taxes paid in expense reports (ER_JOURNAL_GROUP_TAX_WITH_LINES) or purchases (AC_JOURNAL_GROUP_TAX_WITH_LINES) to get grouped with the main expense/purchase line and associated with the accounting account for the item itself. This is in contrast to the default behavior designed around VAT which splits off any taxes paid into a separate accounting account for each type of tax. * fixed out of date reference fixed merge error * fixed linting issues whitespace around braces and if/else keywords * Update bankjournal.php --------- Co-authored-by: Laurent Destailleur --- .../journal/expensereportsjournal.php | 13 ++++++++---- .../accountancy/journal/purchasesjournal.php | 20 ++++++++++++------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php index 8c8407ff3a1..c56fbcee5d1 100644 --- a/htdocs/accountancy/journal/expensereportsjournal.php +++ b/htdocs/accountancy/journal/expensereportsjournal.php @@ -185,6 +185,7 @@ if ($result) { // Variables $account_salary = getDolGlobalString('ACCOUNTING_ACCOUNT_EXPENSEREPORT', 'NotDefined'); $account_vat = getDolGlobalString('ACCOUNTING_VAT_BUY_ACCOUNT', 'NotDefined'); + $group_tax_with_lines = getDolGlobalInt('ER_JOURNAL_GROUP_TAX_WITH_LINES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA) $i = 0; while ($i < $num) { @@ -231,10 +232,14 @@ if ($result) { } $tabttc[$obj->rowid][$compta_user] += $obj->total_ttc; - $tabht[$obj->rowid][$compta_fees] += $obj->total_ht; - $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva; - $tablocaltax1[$obj->rowid][$compta_localtax1] += $obj->total_localtax1; - $tablocaltax2[$obj->rowid][$compta_localtax2] += $obj->total_localtax2; + if ($group_tax_with_lines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) + $tabht[$obj->rowid][$compta_fees] += $obj->total_ttc; + } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) + $tabht[$obj->rowid][$compta_fees] += $obj->total_ht; + $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva; + $tablocaltax1[$obj->rowid][$compta_localtax1] += $obj->total_localtax1; + $tablocaltax2[$obj->rowid][$compta_localtax2] += $obj->total_localtax2; + } $tabuser[$obj->rowid] = array( 'id' => $obj->uid, 'name' => dolGetFirstLastname($obj->firstname, $obj->lastname), diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index d735901fa1b..d717b34395c 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -225,6 +225,7 @@ $cptfour = getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER', 'NotDefined'); $cpttva = getDolGlobalString('ACCOUNTING_VAT_BUY_ACCOUNT', 'NotDefined'); $rcctva = getDolGlobalString('ACCOUNTING_VAT_BUY_REVERSE_CHARGES_CREDIT', 'NotDefined'); $rcdtva = getDolGlobalString('ACCOUNTING_VAT_BUY_REVERSE_CHARGES_DEBIT', 'NotDefined'); +$group_tax_with_lines = getDolGlobalInt('AC_JOURNAL_GROUP_TAX_WITH_LINES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA) $country_code_in_EEC = getCountriesInEEC(); // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC'] $result = $db->query($sql); @@ -343,14 +344,19 @@ if ($result) { } $tabttc[$obj->rowid][$compta_soc] += $obj->total_ttc; - $tabht[$obj->rowid][$compta_prod] += $obj->total_ht; - $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva; - $tva_npr = ((($obj->info_bits & 1) == 1) ? 1 : 0); - if ($tva_npr) { // If NPR, we add an entry for counterpartWe into tabother - $tabother[$obj->rowid][$compta_counterpart_tva_npr] += $obj->total_tva; + + if ($group_tax_with_lines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) + $tabht[$obj->rowid][$compta_prod] += $obj->total_ttc; + } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) + $tabht[$obj->rowid][$compta_prod] += $obj->total_ht; + $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva; + $tva_npr = (($obj->info_bits & 1 == 1) ? 1 : 0); + if ($tva_npr) { // If NPR, we add an entry for counterpartWe into tabother + $tabother[$obj->rowid][$compta_counterpart_tva_npr] += $obj->total_tva; + } + $tablocaltax1[$obj->rowid][$compta_localtax1] += $obj->total_localtax1; + $tablocaltax2[$obj->rowid][$compta_localtax2] += $obj->total_localtax2; } - $tablocaltax1[$obj->rowid][$compta_localtax1] += $obj->total_localtax1; - $tablocaltax2[$obj->rowid][$compta_localtax2] += $obj->total_localtax2; $tabcompany[$obj->rowid] = array( 'id' => $obj->socid, 'name' => $obj->name, From 6c7c12b4b425d32b54fa7951fed16964e3c295e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 14:20:08 +0100 Subject: [PATCH 046/110] Rename variables --- htdocs/accountancy/journal/expensereportsjournal.php | 4 ++-- htdocs/accountancy/journal/purchasesjournal.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php index c56fbcee5d1..fb88ad3ac40 100644 --- a/htdocs/accountancy/journal/expensereportsjournal.php +++ b/htdocs/accountancy/journal/expensereportsjournal.php @@ -185,7 +185,7 @@ if ($result) { // Variables $account_salary = getDolGlobalString('ACCOUNTING_ACCOUNT_EXPENSEREPORT', 'NotDefined'); $account_vat = getDolGlobalString('ACCOUNTING_VAT_BUY_ACCOUNT', 'NotDefined'); - $group_tax_with_lines = getDolGlobalInt('ER_JOURNAL_GROUP_TAX_WITH_LINES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA) + $noTaxDispatchingKeepWithLines = getDolGlobalInt('ACCOUNTING_EXPENSEREPORT_DO_NOT_DISPATCH_TAXES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA) $i = 0; while ($i < $num) { @@ -232,7 +232,7 @@ if ($result) { } $tabttc[$obj->rowid][$compta_user] += $obj->total_ttc; - if ($group_tax_with_lines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) + if ($noTaxDispatchingKeepWithLines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) $tabht[$obj->rowid][$compta_fees] += $obj->total_ttc; } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) $tabht[$obj->rowid][$compta_fees] += $obj->total_ht; diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index d717b34395c..f4108477ff9 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -225,7 +225,7 @@ $cptfour = getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER', 'NotDefined'); $cpttva = getDolGlobalString('ACCOUNTING_VAT_BUY_ACCOUNT', 'NotDefined'); $rcctva = getDolGlobalString('ACCOUNTING_VAT_BUY_REVERSE_CHARGES_CREDIT', 'NotDefined'); $rcdtva = getDolGlobalString('ACCOUNTING_VAT_BUY_REVERSE_CHARGES_DEBIT', 'NotDefined'); -$group_tax_with_lines = getDolGlobalInt('AC_JOURNAL_GROUP_TAX_WITH_LINES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA) +$noTaxDispatchingKeepWithLines = getDolGlobalInt('ACCOUNTING_PURCHASES_DO_NOT_DISPATCH_TAXES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA) $country_code_in_EEC = getCountriesInEEC(); // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC'] $result = $db->query($sql); @@ -345,7 +345,7 @@ if ($result) { $tabttc[$obj->rowid][$compta_soc] += $obj->total_ttc; - if ($group_tax_with_lines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) + if ($noTaxDispatchingKeepWithLines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) $tabht[$obj->rowid][$compta_prod] += $obj->total_ttc; } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) $tabht[$obj->rowid][$compta_prod] += $obj->total_ht; From d5e2f89edc7592fea7a96dcaa235c93b97a6cce3 Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Tue, 12 Nov 2024 14:25:36 +0100 Subject: [PATCH 047/110] FIX can validate shipment without stock movement (#31780) --- htdocs/expedition/class/expedition.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index eaff6848ad8..bcc6b745980 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -2295,7 +2295,11 @@ class Expedition extends CommonObject $error ++; } - return $error; + if (!$error) { + return 1; + } else { + return -1; + } } /** From 9730a83d9c5902d4c4cfcc433a6ac7bfa0e981df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 14:42:07 +0100 Subject: [PATCH 048/110] Fix phpstan missing parenthesis --- htdocs/accountancy/journal/purchasesjournal.php | 2 +- htdocs/compta/facture/class/factureligne.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index f4108477ff9..1c64cc8934a 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -350,7 +350,7 @@ if ($result) { } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) $tabht[$obj->rowid][$compta_prod] += $obj->total_ht; $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva; - $tva_npr = (($obj->info_bits & 1 == 1) ? 1 : 0); + $tva_npr = ((($obj->info_bits & 1) == 1) ? 1 : 0); if ($tva_npr) { // If NPR, we add an entry for counterpartWe into tabother $tabother[$obj->rowid][$compta_counterpart_tva_npr] += $obj->total_tva; } diff --git a/htdocs/compta/facture/class/factureligne.class.php b/htdocs/compta/facture/class/factureligne.class.php index 585e3e11b7b..324cbf2175d 100644 --- a/htdocs/compta/facture/class/factureligne.class.php +++ b/htdocs/compta/facture/class/factureligne.class.php @@ -244,7 +244,7 @@ class FactureLigne extends CommonInvoiceLine $this->date_start = $this->db->jdate($objp->date_start); $this->date_end = $this->db->jdate($objp->date_end); $this->info_bits = $objp->info_bits; - $this->tva_npr = (($objp->info_bits & 1) == 1) ? 1 : 0; + $this->tva_npr = ((($objp->info_bits & 1) == 1) ? 1 : 0); $this->special_code = $objp->special_code; $this->total_ht = $objp->total_ht; $this->total_tva = $objp->total_tva; From 369fb8b898c797e9bc3a12e952b4764d1d5977fa Mon Sep 17 00:00:00 2001 From: antonin_tdj <50403308+ibuiv@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:56:09 +0100 Subject: [PATCH 049/110] FIX Supplier orders : delete dispatched lines on supplier order deletion (#25292) * Add 2 entries for DispatchedLines on Delete * Delete dispatched lined on order deletion * add choice on deletion while dispatched lines exists * fix indent * fix begin, rollback and commit locations * fix indent * Update card.php --------- Co-authored-by: Laurent Destailleur --- htdocs/fourn/commande/card.php | 101 ++++++++++++++++++++++++++++++--- htdocs/langs/en_US/orders.lang | 4 ++ 2 files changed, 96 insertions(+), 9 deletions(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 4e648b32711..d53802c4b42 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -65,6 +65,10 @@ if (isModEnabled('variants')) { require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination.class.php'; } +if (isModEnabled('stock')) { + require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.dispatch.class.php'; + require_once DOL_DOCUMENT_ROOT.'/product/stock/class/mouvementstock.class.php'; +} /** * @var Conf $conf @@ -83,21 +87,22 @@ if (isModEnabled('incoterm')) { // Get Parameters -$id = GETPOSTINT('id'); -$ref = GETPOST('ref', 'alpha'); $action = GETPOST('action', 'alpha'); $confirm = GETPOST('confirm', 'alpha'); $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'purchaseordercard'; // To manage different context of search +$cancel = GETPOST('cancel', 'alpha'); $backtopage = GETPOST('backtopage', 'alpha'); $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); +$id = GETPOSTINT('id'); +$ref = GETPOST('ref', 'alpha'); $socid = GETPOSTINT('socid'); $projectid = GETPOSTINT('projectid'); -$cancel = GETPOST('cancel', 'alpha'); $lineid = GETPOSTINT('lineid'); $origin = GETPOST('origin', 'alpha'); $originid = (GETPOSTINT('originid') ? GETPOSTINT('originid') : GETPOSTINT('origin_id')); // For backward compatibility $rank = (GETPOSTINT('rank') > 0) ? GETPOSTINT('rank') : -1; +$stockDelete = GETPOST('stockDelete', 'int'); // PDF $hidedetails = (GETPOSTINT('hidedetails') ? GETPOSTINT('hidedetails') : (getDolGlobalString('MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS') ? 1 : 0)); @@ -1128,12 +1133,63 @@ if (empty($reshook)) { if ($action == 'confirm_delete' && $confirm == 'yes' && $usercandelete) { - $result = $object->delete($user); - if ($result > 0) { - header("Location: ".DOL_URL_ROOT.'/fourn/commande/list.php?restore_lastsearch_values=1'); - exit; + // Delete existing dispatched lines + $errOnDelete = 0; + + $db->begin(); + + if ($stockDelete) { + $dispatchedLines = $object->getDispachedLines(); + if (!empty($dispatchedLines)) { + foreach ($dispatchedLines as $dispatchedLine) { + $supplierorderdispatch = new CommandeFournisseurDispatch($db); + $result = $supplierorderdispatch->fetch($dispatchedLine['id']); + if ($result > 0) { + $qty = $supplierorderdispatch->qty; + $entrepot = $supplierorderdispatch->fk_entrepot; + $product = $supplierorderdispatch->fk_product; + $price = price2num(GETPOST('price', 'alpha'), 'MU'); + $comment = $langs->trans('SupplierOrderDeletion', $object->ref); + $eatby = $supplierorderdispatch->eatby; + $sellby = $supplierorderdispatch->sellby; + $batch = $supplierorderdispatch->batch; + $result = $supplierorderdispatch->delete($user); + } + if ($result < 0) { + $errorsOnDelete = $object->errors; + $errOnDelete++; + } else { + // If module stock is enabled and the stock increase is done on purchase order dispatching + if ($entrepot > 0 && !empty($conf->stock->enabled) && !empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER) && empty($supplierorderdispatch->fk_reception)) { + $mouv = new MouvementStock($db); + if ($product > 0) { + $mouv->origin = &$object; + $mouv->setOrigin($object->element, $object->id); + $result = $mouv->livraison($user, $product, $entrepot, $qty, $price, $comment, '', $eatby, $sellby, $batch); + if ($result < 0) { + $errorsOnDelete = $mouv->errors; + $errOnDelete++; + } + } + } + } + } + } + } + + if (empty($errOnDelete)) { + $result = $object->delete($user); + if ($result > 0) { + $db->commit(); + header("Location: " . DOL_URL_ROOT . '/fourn/commande/list.php?restore_lastsearch_values=1'); + exit; + } else { + $db->rollback(); + setEventMessages($object->error, $object->errors, 'errors'); + } } else { - setEventMessages($object->error, $object->errors, 'errors'); + $db->rollback(); + setEventMessages('', $errorsOnDelete, 'errors'); } } @@ -1902,7 +1958,34 @@ if ($action == 'create') { // Confirmation de la suppression de la commande if ($action == 'delete') { - $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', '', 0, 2); + $arrayAjouts = array(); + $heightModal = 0; + $widthModal = 500; + if (!empty($object->getDispachedLines())) { + $arrayAjouts = array( + array( + 'type' => 'other', + 'value' => img_warning() . " " . $langs->trans('ExistingDipatchLines') + ), + array('type' => 'separator'), + array( + 'type' => 'select', + 'id' => 'stockDeleteSelect', + 'name' => 'stockDelete', + 'label' => $langs->trans('ConfirmDeleteDispatchedLines'), + 'values' => array(1 => $langs->trans('Yes'), 0 => $langs->trans('No')), + 'select_show_empty' => false + ), + array( + 'type' => 'other', + 'value' => img_warning() . " " . $langs->trans('WarningDispatchedLinesWillNotBeAccessibles') + ), + array('type' => 'separator'), + ); + $heightModal = 300; + $widthModal = "70%"; + } + $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', $arrayAjouts, 0, 2, $heightModal, $widthModal); } // Clone confirmation diff --git a/htdocs/langs/en_US/orders.lang b/htdocs/langs/en_US/orders.lang index 33ec8c22c7d..692bd2c7714 100644 --- a/htdocs/langs/en_US/orders.lang +++ b/htdocs/langs/en_US/orders.lang @@ -206,4 +206,8 @@ StatusSupplierOrderReceivedPartially=Partially received StatusSupplierOrderReceivedAll=All products received NeedAtLeastOneInvoice = There has to be at least one Invoice LineAlreadyDispatched = The order line is already received. +ExistingDipatchLines = There are dispatched lines for this order. +WarningDispatchedLinesWillNotBeAccessibles = You will be unable to update/remove these dispatched lines if you decide to not delete them. +ConfirmDeleteDispatchedLines = Delete dispatched lines ? +SupplierOrderDeletion = Supplier order %s Deletion OrderStatusMakeOperationForbidden = Order status forbidden for this operation. From ffd9bde1cdd3ef90a11917fa773cc2998f355bc3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 15:26:50 +0100 Subject: [PATCH 050/110] Disable bugged code and rewrite it in comment to show the way --- htdocs/fourn/commande/card.php | 80 ++++++++++++++++++++-------------- htdocs/langs/en_US/orders.lang | 5 +-- 2 files changed, 50 insertions(+), 35 deletions(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index d53802c4b42..7c9e2631d7f 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1135,48 +1135,60 @@ if (empty($reshook)) { if ($action == 'confirm_delete' && $confirm == 'yes' && $usercandelete) { // Delete existing dispatched lines $errOnDelete = 0; - + $errorsOnDelete = ''; + $db->begin(); - + if ($stockDelete) { + // TODO We must find line already recorded in stock, not lines dispatched (stock recording may not have been done + // even if dispatched in llx_receptiondet_batch) + // For example to know if stock movement were already record, we may look at stock movements in llx_stock_movement linked to a reception + // that is linked to the purchase order. + + /* $dispatchedLines = $object->getDispachedLines(); + if (!empty($dispatchedLines)) { foreach ($dispatchedLines as $dispatchedLine) { $supplierorderdispatch = new CommandeFournisseurDispatch($db); $result = $supplierorderdispatch->fetch($dispatchedLine['id']); if ($result > 0) { - $qty = $supplierorderdispatch->qty; - $entrepot = $supplierorderdispatch->fk_entrepot; - $product = $supplierorderdispatch->fk_product; - $price = price2num(GETPOST('price', 'alpha'), 'MU'); - $comment = $langs->trans('SupplierOrderDeletion', $object->ref); - $eatby = $supplierorderdispatch->eatby; - $sellby = $supplierorderdispatch->sellby; - $batch = $supplierorderdispatch->batch; $result = $supplierorderdispatch->delete($user); } if ($result < 0) { $errorsOnDelete = $object->errors; $errOnDelete++; - } else { - // If module stock is enabled and the stock increase is done on purchase order dispatching - if ($entrepot > 0 && !empty($conf->stock->enabled) && !empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER) && empty($supplierorderdispatch->fk_reception)) { - $mouv = new MouvementStock($db); - if ($product > 0) { - $mouv->origin = &$object; - $mouv->setOrigin($object->element, $object->id); - $result = $mouv->livraison($user, $product, $entrepot, $qty, $price, $comment, '', $eatby, $sellby, $batch); - if ($result < 0) { - $errorsOnDelete = $mouv->errors; - $errOnDelete++; - } - } + } + } + } + + if ($entrepot > 0 && $product > 0 && isModEnabled('enabled')) { + $stockMovementLines = $object->getstockMovementLines() + + if (!empty($stockMovementLines)) { + foreach($stockMovementLines as $stockmovementline) { + $qty = $stockmovementline->qty; + $entrepot = $stockmovementline->fk_entrepot; + $product = $stockmovementline->fk_product; + $price = $stockmovementline->price; + $comment = $langs->trans('SupplierOrderDeletion', $object->ref); + $eatby = $stockmovementline->eatby; + $sellby = $stockmovementline->sellby; + $batch = $stockmovementline->batch; + + $mouv = new MouvementStock($db); + $mouv->setOrigin($object->element, $object->id); + $result = $mouv->livraison($user, $product, $entrepot, $qty, $price, $comment, '', $eatby, $sellby, $batch); + if ($result < 0) { + $errorsOnDelete = $mouv->errors; + $errOnDelete++; } } } } + */ } - + if (empty($errOnDelete)) { $result = $object->delete($user); if ($result > 0) { @@ -1961,7 +1973,14 @@ if ($action == 'create') { $arrayAjouts = array(); $heightModal = 0; $widthModal = 500; - if (!empty($object->getDispachedLines())) { + + // TODO We must find line already recorded in stock, not lines dispatched (stock recording may not have been done + // even if dispatched in llx_receptiondet_batch). + // For example to know if stock movement were already record, we may look at stock movements in llx_stock_movement linked to a reception + // that is linked to the purchase order. + /* $dispatchedLines = $object->getStockMovementLines(); + + if (!empty($dispatchedLines)) { $arrayAjouts = array( array( 'type' => 'other', @@ -1975,17 +1994,14 @@ if ($action == 'create') { 'label' => $langs->trans('ConfirmDeleteDispatchedLines'), 'values' => array(1 => $langs->trans('Yes'), 0 => $langs->trans('No')), 'select_show_empty' => false - ), - array( - 'type' => 'other', - 'value' => img_warning() . " " . $langs->trans('WarningDispatchedLinesWillNotBeAccessibles') - ), - array('type' => 'separator'), + ) ); $heightModal = 300; $widthModal = "70%"; } - $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', $arrayAjouts, 0, 2, $heightModal, $widthModal); + */ + + $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.((int) $object->id), $langs->trans('DeleteOrder'), $langs->trans('ConfirmDeleteOrder'), 'confirm_delete', $arrayAjouts, 0, 2, $heightModal, $widthModal); } // Clone confirmation diff --git a/htdocs/langs/en_US/orders.lang b/htdocs/langs/en_US/orders.lang index 692bd2c7714..9be6a9d9f9b 100644 --- a/htdocs/langs/en_US/orders.lang +++ b/htdocs/langs/en_US/orders.lang @@ -206,8 +206,7 @@ StatusSupplierOrderReceivedPartially=Partially received StatusSupplierOrderReceivedAll=All products received NeedAtLeastOneInvoice = There has to be at least one Invoice LineAlreadyDispatched = The order line is already received. -ExistingDipatchLines = There are dispatched lines for this order. -WarningDispatchedLinesWillNotBeAccessibles = You will be unable to update/remove these dispatched lines if you decide to not delete them. -ConfirmDeleteDispatchedLines = Delete dispatched lines ? +ExistingDipatchLines = There are already lines that has generated stock movement for this order. +ConfirmDeleteDispatchedLines = Revert also all stock movements already done ? SupplierOrderDeletion = Supplier order %s Deletion OrderStatusMakeOperationForbidden = Order status forbidden for this operation. From 5b4744a6774194f00bad8794723e40de4552b815 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 16:18:19 +0100 Subject: [PATCH 051/110] Fix duplicate status after merge from v18 fix --- htdocs/compta/facture/tpl/linkedobjectblock.tpl.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php index c6c93e662b2..b67c7e33a88 100644 --- a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php +++ b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php @@ -89,11 +89,8 @@ foreach ($linkedObjectBlock as $key => $objectlink) { $totalallpayments = 0; $totalcalculated = false; if (method_exists($objectlink, 'getSommePaiement')) { - print $objectlink->getLibStatut(3, $objectlink->getSommePaiement()); $totalcalculated = true; $totalallpayments += $objectlink->getSommePaiement(); - } else { - print $objectlink->getLibStatut(3); } if (method_exists($objectlink, 'getSumDepositsUsed')) { $totalcalculated = true; From 21f9d417cdeb43af1caf2c8b51a6a0908ebe2fbe Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 17:05:15 +0100 Subject: [PATCH 052/110] Trans --- htdocs/langs/en_US/companies.lang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang index f67f43988bd..6c3a4de807a 100644 --- a/htdocs/langs/en_US/companies.lang +++ b/htdocs/langs/en_US/companies.lang @@ -432,7 +432,7 @@ LeopardNumRefModelDesc=Free code without verification. ManagingDirectors=Manager(s) name (CEO, director, president...) MergeOriginThirdparty=Duplicated third party (the third party you want to delete) MergeThirdparties=Merge third parties -ConfirmMergeThirdparties=Are you sure you want to merge the chosen third party with the current one? All linked objects (invoices, orders, ...) will be moved to the current third party, after which the chosen third party will be deleted. +ConfirmMergeThirdparties=Are you sure you want to merge the chosen third party with the current one? All linked objects (invoices, orders, ...) will be moved to the current third party, then the chosen third party will be deleted. ThirdpartiesMergeSuccess=Third parties have been merged SaleRepresentativeLogin=Login of sales representative SaleRepresentativeFirstname=First name of sales representative @@ -464,4 +464,4 @@ AADEWebserviceCredentials=AADE Webservice Credentials ThirdPartyMustBeACustomerToCreateBANOnStripe=The third-party must be a customer to allow the creation of its bank info on Stripe side NewSocNameForClone=New company name ConfirmCloneThirdparties=Are you sure that you want to clone %s company ? -SocialNetworksBusiness=Social networks for company \ No newline at end of file +SocialNetworksBusiness=Social networks for company From e63992b779fed326f0dc871aec115604f498bb2c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 17:32:54 +0100 Subject: [PATCH 053/110] Fix phan --- htdocs/fourn/commande/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 7c9e2631d7f..7073aebc776 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1135,7 +1135,7 @@ if (empty($reshook)) { if ($action == 'confirm_delete' && $confirm == 'yes' && $usercandelete) { // Delete existing dispatched lines $errOnDelete = 0; - $errorsOnDelete = ''; + $errorsOnDelete = array(); $db->begin(); @@ -1189,6 +1189,7 @@ if (empty($reshook)) { */ } + // @phpstan-ignore-next-line if (empty($errOnDelete)) { $result = $object->delete($user); if ($result > 0) { From daafa150a06bfdef8eda00521f8a523eedd9d249 Mon Sep 17 00:00:00 2001 From: Quentin-Seekness <72733832+Quentin-Seekness@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:55:56 +0100 Subject: [PATCH 054/110] Update export.class.php (#31783) Allow usage of a method param that is not part of the $obj from the sql request. The issue I encontered is the usage of order's LibStatut method that required a $mode param that can't be fetched from the sql request obj. This would be the code for the export declaration : $this->export_special_array[$r] = array( 'orders.fk_statut'=> [ 'rule' => 'compute', 'class' => 'Commande', 'classfile' => '/commande/class/commande.class.php', 'method' => 'LibStatut', 'method_params' => ['orders_fk_statut', 'orders_facture', '1'], ], ); We can see that the first two params will come from the $obj, but the third one will be used for it's value (in this case '1'). Co-authored-by: Laurent Destailleur --- htdocs/exports/class/export.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 5cabec8df20..214a518b944 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -837,7 +837,7 @@ class Export $params = []; if (!empty($item['method_params'])) { foreach ($item['method_params'] as $paramName) { - $params[] = $obj->$paramName ?? null; + $params[] = $obj->$paramName ?? ($paramName ?? null); } } $value = $tmpObject->$methodName(...$params); From 221f8e947a96486885fa9f398f7a5232a2a3ada6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 19:41:21 +0100 Subject: [PATCH 055/110] Debug v21 --- htdocs/core/class/html.formfile.class.php | 45 ++++++++++++++--------- htdocs/core/modules/modStock.class.php | 2 +- htdocs/exports/class/export.class.php | 10 ++++- 3 files changed, 36 insertions(+), 21 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index b4dbbde1788..5e3cf431f39 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -975,12 +975,18 @@ class FormFile } } + require_once DOL_DOCUMENT_ROOT . '/ecm/class/ecmfiles.class.php'; + $i = 0; foreach ($file_list as $file) { $i++; - require_once DOL_DOCUMENT_ROOT . '/ecm/class/ecmfiles.class.php'; - $ecmfile = new EcmFiles($this->db); - $ecmfile->fetch($file['rowid']); + + if (!empty($file['rowid'])) { + $ecmfile = new EcmFiles($this->db); + $ecmfile->fetch($file['rowid']); + } else { + $ecmfile = null; + } // Define relative path for download link (depends on module) $relativepath = (string) $file["name"]; // Cas general @@ -1007,22 +1013,25 @@ class FormFile } else { $out .= ''; } - // $out .= 'getNomUrl(1, $modulepart, 0, 0, ' documentdownload'); + } else { + $out .= 'trans("File").': '.$file["name"]); - // $out .= dol_trunc($file["name"], 150); - // $out .= ''; - $out .= $ecmfile->getNomUrl(1, $modulepart, 0, 0, ' documentdownload'); + $mime = dol_mimetype($relativepath, '', 0); + if (preg_match('/text/', $mime)) { + $out .= ' target="_blank" rel="noopener noreferrer"'; + } + $out .= ' title="'.dol_escape_htmltag($file["name"]).'"'; + $out .= '>'; + $out .= img_mime($file["name"], $langs->trans("File").': '.$file["name"]); + $out .= dol_trunc($file["name"], 150); + $out .= ''; + } $out .= ''."\n"; $out .= $imgpreview; $out .= ''; diff --git a/htdocs/core/modules/modStock.class.php b/htdocs/core/modules/modStock.class.php index cdd52576a24..c9bc793fb36 100644 --- a/htdocs/core/modules/modStock.class.php +++ b/htdocs/core/modules/modStock.class.php @@ -316,7 +316,7 @@ class modStock extends DolibarrModules 'e.rowid' => 'List:entrepot:ref::stock', 'e.ref' => 'Text', 'e.lieu' => 'Text', 'e.description' => 'Text', 'e.address' => 'Text', 'e.zip' => 'Text', 'e.town' => 'Text', 'p.rowid' => "Numeric", 'p.ref' => "Text", 'p.fk_product_type' => "Text", 'p.label' => "Text", 'p.description' => "Text", 'p.note' => "Text", 'p.price' => "Numeric", 'p.tva_tx' => 'Numeric', 'p.tosell' => "Boolean", 'p.tobuy' => "Boolean", 'p.duration' => "Duree", - 'p.datec' => 'DateCreation', 'p.tms' => 'DateModification', 'p.pmp' => 'PMPValue', 'p.cost_price' => 'CostPrice', 'lcpn.label'=>'Text', + 'p.datec' => 'Date', 'p.tms' => 'Date', 'p.pmp' => 'PMPValue', 'p.cost_price' => 'CostPrice', 'lcpn.label'=>'Text', 'pb.batch' => 'Text', 'pb.qty' => 'Numeric', 'pl.eatby' => 'Date', 'pl.sellby' => 'Date', 'none.dateLastMovement' => 'Date' ); diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 214a518b944..95a2f4bbf3e 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -833,13 +833,19 @@ class Export return -1; } - $methodName = $item['method']; + $methodName = dol_escape_all($item['method']); $params = []; if (!empty($item['method_params'])) { + // Example used for export of "Stocks and location (warehouse) with batch" in field "Date of last movement" foreach ($item['method_params'] as $paramName) { - $params[] = $obj->$paramName ?? ($paramName ?? null); + if (property_exists($obj, $paramName)) { + $params[] = $obj->$paramName; + } else { + $params[] = $paramName; + } } } + //var_dump($tmpObject);var_dump($methodName);var_dump($params);exit; $value = $tmpObject->$methodName(...$params); } $obj->$alias = $value; From 0eee1ad18bbf1f02aa9fe9c61d6c79a161430645 Mon Sep 17 00:00:00 2001 From: uvaldenaire-opendsi Date: Tue, 12 Nov 2024 19:45:52 +0100 Subject: [PATCH 056/110] Qual: remove php 8.2 warnings by casting trim() argument to string. (#28162) (#31693) In create and update methods of societe class, the trim function triggered warnings when the argument passed is null. Cast string properties to string to avoid php warnings when the property is null. Co-authored-by: UltraViolet33 <93035200+UltraViolet33@users.noreply.github.com> --- htdocs/societe/class/societe.class.php | 60 +++++++++++++------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 635c8580c21..bab3719a902 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -889,7 +889,7 @@ class Societe extends CommonObject if (empty($this->status)) { $this->status = 0; } - $this->name = $this->name ?trim($this->name) : trim($this->nom); + $this->name = $this->name ? trim($this->name) : trim((string) $this->nom); $this->setUpperOrLowerCase(); $this->nom = $this->name; // For backward compatibility if (empty($this->client)) { @@ -898,12 +898,12 @@ class Societe extends CommonObject if (empty($this->fournisseur)) { $this->fournisseur = 0; } - $this->import_key = trim($this->import_key); + $this->import_key = trim((string) $this->import_key); - $this->accountancy_code_customer = trim($this->code_compta); - $this->accountancy_code_supplier = trim($this->code_compta_fournisseur); - $this->accountancy_code_buy = trim($this->accountancy_code_buy); - $this->accountancy_code_sell = trim($this->accountancy_code_sell); + $this->accountancy_code_customer = trim((string) $this->code_compta); + $this->accountancy_code_supplier = trim((string) $this->code_compta_fournisseur); + $this->accountancy_code_buy = trim((string) $this->accountancy_code_buy); + $this->accountancy_code_sell = trim((string) $this->accountancy_code_sell); if (!empty($this->multicurrency_code)) { $this->fk_multicurrency = MultiCurrency::getIdFromCode($this->db, $this->multicurrency_code); @@ -1288,34 +1288,34 @@ class Societe extends CommonObject $now = dol_now(); // Clean parameters - $this->id = $id; - $this->entity = ((isset($this->entity) && is_numeric($this->entity)) ? $this->entity : $conf->entity); - $this->name = $this->name ? trim($this->name) : trim($this->nom); - $this->nom = $this->name; // For backward compatibility - $this->name_alias = trim($this->name_alias); - $this->ref_ext = trim($this->ref_ext); - $this->address = $this->address ?trim($this->address) : trim($this->address); - $this->zip = $this->zip ?trim($this->zip) : trim($this->zip); - $this->town = $this->town ?trim($this->town) : trim($this->town); - $this->state_id = trim($this->state_id); - $this->country_id = ($this->country_id > 0) ? $this->country_id : 0; - $this->phone = trim($this->phone); + $this->id = $id; + $this->entity = ((isset($this->entity) && is_numeric($this->entity)) ? $this->entity : $conf->entity); + $this->name = $this->name ? trim($this->name) : trim((string) $this->nom); + $this->nom = $this->name; // For backward compatibility + $this->name_alias = trim((string) $this->name_alias); + $this->ref_ext = (empty($this->ref_ext) ? '' : trim($this->ref_ext)); + $this->address = trim((string) $this->address); + $this->zip = trim((string) $this->zip); + $this->town = trim((string) $this->town); + $this->state_id = (is_numeric($this->state_id)) ? (int) trim($this->state_id) : 0; + $this->country_id = ($this->country_id > 0) ? $this->country_id : 0; + $this->phone = trim((string) $this->phone); $this->phone = preg_replace("/\s/", "", $this->phone); $this->phone = preg_replace("/\./", "", $this->phone); - $this->fax = trim($this->fax); + $this->fax = trim((string) $this->fax); $this->fax = preg_replace("/\s/", "", $this->fax); $this->fax = preg_replace("/\./", "", $this->fax); - $this->email = trim($this->email); - $this->url = $this->url ?clean_url($this->url, 0) : ''; - $this->note_private = trim($this->note_private); - $this->note_public = trim($this->note_public); - $this->idprof1 = trim($this->idprof1); - $this->idprof2 = trim($this->idprof2); - $this->idprof3 = trim($this->idprof3); - $this->idprof4 = trim($this->idprof4); - $this->idprof5 = (!empty($this->idprof5) ?trim($this->idprof5) : ''); - $this->idprof6 = (!empty($this->idprof6) ?trim($this->idprof6) : ''); - $this->prefix_comm = trim($this->prefix_comm); + $this->email = trim((string) $this->email); + $this->url = $this->url ? clean_url($this->url, 0) : ''; + $this->note_private = (empty($this->note_private) ? '' : trim($this->note_private)); + $this->note_public = (empty($this->note_public) ? '' : trim($this->note_public)); + $this->idprof1 = trim((string) $this->idprof1); + $this->idprof2 = trim((string) $this->idprof2); + $this->idprof3 = trim((string) $this->idprof3); + $this->idprof4 = trim((string) $this->idprof4); + $this->idprof5 = (!empty($this->idprof5) ? trim($this->idprof5) : ''); + $this->idprof6 = (!empty($this->idprof6) ? trim($this->idprof6) : ''); + $this->prefix_comm = trim((string) $this->prefix_comm); $this->outstanding_limit = price2num($this->outstanding_limit); $this->order_min_amount = price2num($this->order_min_amount); $this->supplier_order_min_amount = price2num($this->supplier_order_min_amount); From 2f207dd34748587e9cbaa95f5c59733ef9b28064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 12 Nov 2024 23:18:02 +0100 Subject: [PATCH 057/110] switching on phpstan v2 level 10 (#31764) * switching on phpstan v2 level 10 * switching on phpstan v2 level 10 * switching on phpstan v2 level 10 * switching on phpstan v2 level 10 * switching on phpstan v2 level 10 * version * fix phpstan * fix phpstan * test * test * test * test * test * fix * fix * fix * fix * fix * fix * fix * add action to refresh phpstan baseline * add action to refresh phpstan baseline * add action to refresh phpstan baseline * add action to refresh phpstan baseline * fix phpstan * fix phpstan * fix phpstan * fix phpstan * update baseline --- .editorconfig | 4 + .github/workflows/phpstan.yml | 10 +- .github/workflows/phpstan_baseline.yml | 73 + build/phpstan/phpstan-baseline.neon | 25094 ++++++++++++---- htdocs/core/actions_setmoduleoptions.inc.php | 7 +- htdocs/core/actions_setnotes.inc.php | 16 +- htdocs/core/class/html.formfile.class.php | 2 +- .../doc/doc_generic_asset_odt.modules.php | 2 +- .../asset/doc/pdf_standard_asset.modules.php | 2 +- .../core/modules/facture/modules_facture.php | 5 +- htdocs/core/modules/member/modules_cards.php | 1 + .../pdf_standard_movementstock.modules.php | 2 +- .../printsheet/doc/pdf_tcpdflabel.class.php | 1 + .../conferenceorboothattendee_note.php | 2 +- htdocs/filefunc.inc.php | 4 +- htdocs/public/agenda/agendaexport.php | 10 +- htdocs/public/bookcal/index.php | 6 +- phpstan.neon.dist | 10 +- 18 files changed, 19086 insertions(+), 6165 deletions(-) create mode 100644 .github/workflows/phpstan_baseline.yml diff --git a/.editorconfig b/.editorconfig index cdaf5b3af2e..f1d2d2e0864 100644 --- a/.editorconfig +++ b/.editorconfig @@ -26,3 +26,7 @@ trim_trailing_whitespace = false indent_style = tab trim_trailing_whitespace = true indent_size = 4 +[*.yml] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index c041232b26e..77e8d998de2 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -37,14 +37,14 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - # Get PHP and addons - name: Setup PHP id: setup-php uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - tools: phpstan:1.12, cs2pr + coverage: none # disable xdebug, pcov + tools: phpstan:2.0, cs2pr extensions: calendar, json, imagick, gd, zip, mbstring, intl, opcache, imap, mysql, pgsql, sqlite3, ldap, xml, mcrypt @@ -86,3 +86,9 @@ jobs: name: phpstan-srcrt path: ${{ github.workspace }}/_stan.xml retention-days: 2 + # Run PHPStan generate baseline + # - name: Run PHPStan generate baseline + # id: phpstan-baseline + # if: ${{ success() }} + # run: | + # phpstan -vv analyse --memory-limit 7G -a build/phpstan/bootstrap_action.php --generate-baseline build/phpstan/phpstan-baseline.neon diff --git a/.github/workflows/phpstan_baseline.yml b/.github/workflows/phpstan_baseline.yml new file mode 100644 index 00000000000..54791225558 --- /dev/null +++ b/.github/workflows/phpstan_baseline.yml @@ -0,0 +1,73 @@ +name: 'PHPStan' + +on: + # Every Monday we want to refresh the baseline + schedule: + - cron: '0 6 * * 1' + + # We want to be able to manually refresh the baseline too + workflow_dispatch: + + workflow_call: + inputs: + gh_event: + required: true + type: string + # Run PHPStan analyse on pull requests + pull_request: + +env: + PHP_VERSION: '8.2' + gh_event: ${{ inputs.gh_event || github.event_name }} + CACHE_KEY_PART: ${{ ( inputs.gh_event == 'pull_request' || github.event_name == 'pull_request' ) && format('{0}-{1}', github.base_ref, github.head_ref) || github.ref_name }} +jobs: + phpstan: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.PHP_VERSION }} + coverage: none # disable xdebug, pcov + tools: phpstan:2.0, cs2pr + extensions: calendar, json, imagick, gd, zip, mbstring, intl, opcache, imap, + mysql, pgsql, sqlite3, ldap, xml, mcrypt + env: + fail-fast: true + # Restore old cache + - name: Restore phpstan cache + id: cache + uses: actions/cache/restore@v4 + with: + path: ./.github/tmp + key: phpstan-cache-${{ env.PHP_VERSION }}-${{ env.CACHE_KEY_PART }}-${{ + github.run_id }} + restore-keys: | + phpstan-cache-${{ env.PHP_VERSION }}-${{ env.CACHE_KEY_PART }}- + phpstan-cache-${{ env.PHP_VERSION }}-${{ github.head_ref }}- + phpstan-cache-${{ env.PHP_VERSION }}-${{ github.base_ref }}- + phpstan-cache-${{ env.PHP_VERSION }}- + - uses: ruudk/phpstan-baseline-refresh-create-pr-action@main + with: + github_token: ${{ secrets.PAT_GITHUB_TOKEN }} + phpstan_path: phpstan + configuration_path: phpstan.neon.dist + phpstan_additional_arguments: --memory-limit 7G -a build/phpstan/bootstrap_action.php + baseline_path: build/phpstan/phpstan-baseline.neon + commit_name: Dolibot + commit_email: dolibarr-bot@users.noreply.github.com + commit_message: PHPStan > Update baseline + target_branch: develop + pr_create: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && 1 || 0 }} + pr_title: PHPStan > Update baseline + pr_reviewer: eldy + pr_body: | + This PR is automatically created to cleanup our baseline. + + Since the last refresh of the baseline we have fixed {0} ignored errors. + + Keep it up all! :muscle: + + There are only {1} ignored errors left :sweat_smile: diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index 6616e9c1b87..06bd3632cb2 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -1,25491 +1,38299 @@ parameters: ignoreErrors: - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/accountancy/admin/account.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 3 path: ../../htdocs/accountancy/admin/account.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/admin/account.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/admin/account.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/accountancy/admin/accountmodel.php - - message: "#^If condition is always true\\.$#" - count: 5 - path: ../../htdocs/accountancy/admin/accountmodel.php - - - - message: "#^Left side of && is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 3 path: ../../htdocs/accountancy/admin/accountmodel.php - - message: "#^If condition is always true\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 3 + path: ../../htdocs/accountancy/admin/accountmodel.php + + - + message: '#^Loose comparison using \=\= between ''type_cdr'' and ''type_cdr'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 2 + path: ../../htdocs/accountancy/admin/accountmodel.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/accountancy/admin/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/accountancy/admin/card.php - - message: "#^Variable \\$cat_id in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$cat_id in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/admin/categories.php - - message: "#^If condition is always true\\.$#" - count: 3 + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 2 path: ../../htdocs/accountancy/admin/categories_list.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Loose comparison using \=\= between 32 and 32 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/accountancy/admin/categories_list.php + + - + message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\\>\>, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/accountancy/admin/categories_list.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 4 path: ../../htdocs/accountancy/admin/fiscalyear_card.php - - message: "#^Elseif condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''ACCOUNTING_LABEL…'' and ''ACCOUNTING_LABEL…'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/accountancy/admin/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between ''ACCOUNTING_LENGTH…'' and ''ACCOUNTING_LENGTH…'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/accountancy/admin/index.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/accountancy/admin/index.php - - message: "#^If condition is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 1 + path: ../../htdocs/accountancy/admin/index.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 7 path: ../../htdocs/accountancy/admin/journals_list.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Loose comparison using \!\= between 35 and 10 will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue count: 1 path: ../../htdocs/accountancy/admin/journals_list.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\\>\>, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/accountancy/admin/journals_list.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/accountancy/admin/journals_list.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/admin/productaccount.php - - message: "#^Variable \\$defaultvalue in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$defaultvalue in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/accountancy/admin/productaccount.php - - message: "#^Variable \\$toselect in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$toselect in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/admin/productaccount.php - - message: "#^If condition is always true\\.$#" - count: 2 - path: ../../htdocs/accountancy/admin/report_list.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/accountancy/admin/report_list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 45 and 45 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/accountancy/admin/report_list.php + + - + message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\\>\>, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/accountancy/admin/report_list.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/accountancy/admin/report_list.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 3 path: ../../htdocs/accountancy/admin/subaccount.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/admin/subaccount.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/accountancy/bookkeeping/balance.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/accountancy/bookkeeping/balance.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/bookkeeping/balance.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/bookkeeping/balance.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/bookkeeping/balance.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/accountancy/bookkeeping/balance.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/accountancy/bookkeeping/export.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/bookkeeping/export.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/bookkeeping/export.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/accountancy/bookkeeping/export.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/accountancy/bookkeeping/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/bookkeeping/list.php - - message: "#^Variable \\$documentlink might not be defined\\.$#" + message: '#^Variable \$documentlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/accountancy/bookkeeping/list.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/accountancy/bookkeeping/list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/accountancy/bookkeeping/listbyaccount.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/bookkeeping/listbyaccount.php - - message: "#^Property AccountancyCategory\\:\\:\\$active \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$active \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$category_type \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$category_type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$fk_country \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$fk_country \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$formula \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$formula \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$position \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$position \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$range_account \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$range_account \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$sdcpermonth type has no value type specified in iterable type array\\.$#" + message: '#^Property AccountancyCategory\:\:\$sdcpermonth type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^Property AccountancyCategory\\:\\:\\$sens \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyCategory\:\:\$sens \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancycategory.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/accountancy/class/accountancyexport.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between 2 and 2 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/accountancy/class/accountancyexport.class.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 6 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$archiveFullName in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$archiveFullName in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$archivePath in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$archivePath in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$completefilename in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$completefilename in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$downloadFileFullName in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$downloadFileFullName in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$downloadFileMimeType in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$downloadFileMimeType in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$downloadFilePath in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$downloadFilePath in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$exportFileFullName in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$exportFileFullName in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$exportFilePath in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$exportFilePath in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Variable \\$invoice might not be defined\\.$#" + message: '#^Variable \$invoice might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/accountancy/class/accountancyexport.class.php - - message: "#^Property AccountancyReport\\:\\:\\$active \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyReport\:\:\$active \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancyreport.class.php - - message: "#^Property AccountancyReport\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyReport\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancyreport.class.php - - message: "#^Property AccountancyReport\\:\\:\\$fk_country \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyReport\:\:\$fk_country \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancyreport.class.php - - message: "#^Property AccountancyReport\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountancyReport\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/accountancyreport.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Property AccountingAccount\\:\\:\\$account_number \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountingAccount\:\:\$account_number \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Property AccountingAccount\\:\\:\\$fk_pcg_version \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountingAccount\:\:\$fk_pcg_version \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Property AccountingAccount\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountingAccount\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Property AccountingAccount\\:\\:\\$labelshort \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountingAccount\:\:\$labelshort \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Property AccountingAccount\\:\\:\\$pcg_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AccountingAccount\:\:\$pcg_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/class/accountingaccount.class.php - - message: "#^Call to function array_key_exists\\(\\) with 'error' and array\\{ref\\: mixed, label\\: mixed, acquisition_value_ht\\: mixed, depreciation\\: non\\-empty\\-array\\\\}\\>, disposal\\?\\: array\\{date\\: mixed, amount\\: mixed, subject_to_vat\\: bool\\}\\} will always evaluate to false\\.$#" + message: '#^Call to function array_key_exists\(\) with ''error'' and array\{ref\: mixed, label\: mixed, acquisition_value_ht\: mixed, depreciation\: non\-empty\-array\\}\>, disposal\?\: array\{date\: mixed, amount\: mixed, subject_to_vat\: bool\}\} will always evaluate to false\.$#' + identifier: function.impossibleType count: 1 path: ../../htdocs/accountancy/class/accountingjournal.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Parameter \\#2 \\$callback of function array_filter expects \\(callable\\(string\\)\\: bool\\)\\|null, 'strlen' given\\.$#" + message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(string\)\: bool\)\|null, ''strlen'' given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$amount \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$amount \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$code_journal \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$code_journal \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$credit \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$credit \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$debit \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$debit \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$doc_ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$doc_ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$doc_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$doc_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$fk_doc \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$fk_doc \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$fk_docdet \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$fk_docdet \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$fk_user_author \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$fk_user_author \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$journal_label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$journal_label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$label_compte \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$label_compte \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$label_operation \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$label_operation \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$montant \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$montant \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$numero_compte \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$numero_compte \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$piece_num \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$piece_num \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$sens \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$sens \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Property BookKeeping\\:\\:\\$thirdparty_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BookKeeping\:\:\$thirdparty_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/class/bookkeeping.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/accountancy/class/lettering.class.php - - message: "#^Parameter \\#1 \\$document_ids of method Lettering\\:\\:getBankLinesFromFkDocAndDocType\\(\\) expects array\\\\>, array\\ given\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/accountancy/class/lettering.class.php - - message: "#^Variable \\$save_element_by_link might not be defined\\.$#" + message: '#^Parameter \#1 \$document_ids of method Lettering\:\:getBankLinesFromFkDocAndDocType\(\) expects array\\>, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/accountancy/class/lettering.class.php - - message: "#^Variable \\$save_link_by_element might not be defined\\.$#" + message: '#^Parameter \#1 \$link_by_element of method Lettering\:\:getGroupElements\(\) expects array\\>, array\\> given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/accountancy/class/lettering.class.php - - message: "#^Parameter \\#2 \\$callback of function array_filter expects \\(callable\\(string\\)\\: bool\\)\\|null, 'strlen' given\\.$#" + message: '#^Parameter \#3 \$link_key of method Lettering\:\:getGroupElements\(\) expects string, int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/accountancy/class/lettering.class.php + + - + message: '#^Variable \$save_element_by_link might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/accountancy/class/lettering.class.php + + - + message: '#^Variable \$save_link_by_element might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/accountancy/class/lettering.class.php + + - + message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(string\)\: bool\)\|null, ''strlen'' given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/accountancy/closure/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/accountancy/closure/index.php - - message: "#^Variable \\$current_fiscal_period in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$current_fiscal_period in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 4 path: ../../htdocs/accountancy/closure/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/customer/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/accountancy/customer/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/customer/lines.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/customer/lines.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/customer/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/customer/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/customer/list.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/expensereport/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/accountancy/expensereport/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/expensereport/lines.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/expensereport/lines.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/expensereport/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/expensereport/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/expensereport/list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/accountancy/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/accountancy/journal/bankjournal.php + + - + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 3 + path: ../../htdocs/accountancy/journal/bankjournal.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/accountancy/journal/bankjournal.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/accountancy/journal/bankjournal.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/accountancy/journal/bankjournal.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/journal/bankjournal.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/accountancy/journal/expensereportsjournal.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/journal/expensereportsjournal.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/journal/expensereportsjournal.php - - message: "#^Variable \\$def_tva might not be defined\\.$#" + message: '#^Variable \$def_tva might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/accountancy/journal/expensereportsjournal.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/journal/purchasesjournal.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/journal/sellsjournal.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/accountancy/journal/variousjournal.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/supplier/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/accountancy/supplier/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/supplier/lines.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/accountancy/supplier/lines.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/accountancy/supplier/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/accountancy/supplier/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/accountancy/supplier/list.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/accountancy/tpl/export_journal.tpl.php + + - + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/admin/member.php - - message: "#^Variable \\$canvas might not be defined\\.$#" - count: 1 - path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php - - - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject count: 23 path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php + + - + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined + count: 23 + path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php + + - + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject + count: 27 + path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php + + - + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 26 path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject + count: 30 + path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php + + - + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 28 path: ../../htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/adherents/card.php - - message: "#^Variable \\$public in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$public in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/adherents/card.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Adherent\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Adherent\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Adherent\) and ''photo'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Adherent\) and ''societe'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 5 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Property Adherent\\:\\:\\$email \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Contact is not subtype of native type \$this\(Adherent\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Property Adherent\\:\\:\\$first_subscription_amount \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Societe is not subtype of native type \$this\(Adherent\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Property Adherent\\:\\:\\$last_subscription_amount \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type User is not subtype of native type \$this\(Adherent\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Property Adherent\\:\\:\\$societe \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property Adherent\:\:\$email \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Property Adherent\:\:\$first_subscription_amount \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Property Adherent\:\:\$last_subscription_amount \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Property Adherent\:\:\$societe \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/adherents/class/adherent.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(AdherentType\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/adherents/class/adherent_type.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(AdherentType\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/adherents/class/adherent_type.class.php - - message: "#^Property AdherentType\\:\\:\\$duration \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(AdherentType\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/adherents/class/adherent_type.class.php - - message: "#^Property AdherentType\\:\\:\\$subscription \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(AdherentType\) and ''vote'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/adherents/class/adherent_type.class.php - - message: "#^Property AdherentType\\:\\:\\$vote \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Loose comparison using \!\= between '''' and ''nolink'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue count: 1 path: ../../htdocs/adherents/class/adherent_type.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/adherents/class/adherent_type.class.php + + - + message: '#^Property AdherentType\:\:\$duration \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent_type.class.php + + - + message: '#^Property AdherentType\:\:\$subscription \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent_type.class.php + + - + message: '#^Property AdherentType\:\:\$vote \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/adherents/class/adherent_type.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Subscription\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/adherents/class/subscription.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Subscription\) and ''datef'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/adherents/class/subscription.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Subscription\) and ''dateh'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/adherents/class/subscription.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/adherents/class/subscription.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/adherents/class/subscription.class.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/index.php - - message: "#^Variable \\$badgeStatus8 might not be defined\\.$#" + message: '#^Variable \$badgeStatus8 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/adherents/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/adherents/list.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/adherents/list.php + + - + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/adherents/list.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/adherents/list.php - - message: "#^If condition is always true\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/adherents/list.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 2 - path: ../../htdocs/adherents/list.php - - - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/adherents/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$diroutputmassaction might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/list.php - - message: "#^Variable \\$diroutputmassaction might not be defined\\.$#" - count: 1 - path: ../../htdocs/adherents/list.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/adherents/messaging.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/messaging.php - - message: "#^Property Partnership\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Partnership\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/adherents/partnership.php - - message: "#^Property Partnership\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Partnership\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/adherents/partnership.php - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/stats/geo.php - - message: "#^Variable \\$theme_datacolor might not be defined\\.$#" + message: '#^Variable \$theme_datacolor might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/adherents/stats/geo.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/adherents/subscription.php - - message: "#^Variable \\$bankline in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$bankline in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/adherents/subscription/card.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/adherents/subscription/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/adherents/subscription/list.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/adherents/subscription/list.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/adherents/subscription/list.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/adherents/tpl/linkedobjectblock.tpl.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/adherents/type.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/admin/accountant.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/admin/agenda.php - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/agenda_other.php - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/agenda_reminder.php - - message: "#^Variable \\$errorsaved in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$errorsaved in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/bank.php - - message: "#^Variable \\$massaction might not be defined\\.$#" + message: '#^Call to function is_object\(\) with ModeleBoxes will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/admin/boxes.php + + - + message: '#^Variable \$massaction might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/const.php - - message: "#^Offset 'css' on array\\{css\\: 'minwidth200', enabled\\: mixed\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''css'' on array\{css\: ''minwidth200'', enabled\: mixed\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/admin/dav.php - - message: "#^Variable \\$param in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function is_null\(\) with null will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/admin/dict.php - - message: "#^Variable \\$rowidcol in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \!\= between ''create'' and ''edit'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue count: 1 path: ../../htdocs/admin/dict.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\\>\>, array\\|string\>\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/admin/dict.php + + - + message: '#^Variable \$param in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/admin/dict.php + + - + message: '#^Variable \$rowidcol in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/admin/dict.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/admin/emailcollector_card.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/emailcollector_list.php - - message: "#^If condition is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/admin/eventorganization.php + + - + message: '#^Loose comparison using \=\= between 1 and 1 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/admin/eventorganization.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Offset ''css'' on array\{type\: ''category\:customer''\|''emailtemplate…''\|''product''\|''securekey''\|''textarea''\|''thirdparty_type\:'', enabled\: 1, css\: ''''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/admin/eventorganization.php - - message: "#^Offset 'css' on array\\{type\\: 'category\\:customer'\\|'emailtemplate…'\\|'product'\\|'securekey'\\|'textarea'\\|'thirdparty_type\\:', enabled\\: 1, css\\: ''\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/eventorganization.php - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is not falsy\\.$#" - count: 1 - path: ../../htdocs/admin/eventorganization.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/events.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/fediverse.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/admin/geoipmaxmind.php - - message: "#^Elseif condition is always false\\.$#" - count: 4 + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 2 path: ../../htdocs/admin/hrm.php - - message: "#^If condition is always true\\.$#" - count: 4 - path: ../../htdocs/admin/hrm.php - - - - message: "#^Offset 'css' on array\\{type\\: 'integer'\\|'varchar', enabled\\: 1, css\\: ''\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Loose comparison using \=\= between ''varchar'' and ''html'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/admin/hrm.php - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between ''varchar'' and ''product'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/admin/hrm.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Loose comparison using \=\= between ''varchar'' and ''securekey'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/admin/hrm.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''varchar'' and ''yesno'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/admin/hrm.php + + - + message: '#^Loose comparison using \=\= between 1 and 1 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 2 + path: ../../htdocs/admin/hrm.php + + - + message: '#^Offset ''css'' on array\{type\: ''integer''\|''varchar'', enabled\: 1, css\: ''''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset + count: 1 + path: ../../htdocs/admin/hrm.php + + - + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/admin/hrm.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/admin/hrm.php + + - + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote count: 1 path: ../../htdocs/admin/index.php - - message: "#^Variable \\$setupcompanynotcomplete in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/admin/index.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Variable \$setupcompanynotcomplete in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/admin/index.php + + - + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/admin/knowledgemanagement.php - - message: "#^Offset 'includedocgeneration' on array\\{label\\: 'KnowledgeManagement', includerefgeneration\\: 1, includedocgeneration\\: 0, class\\: 'KnowledgeRecord'\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''includedocgeneration'' on array\{label\: ''KnowledgeManagement'', includerefgeneration\: 1, includedocgeneration\: 0, class\: ''KnowledgeRecord''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/admin/knowledgemanagement.php - - message: "#^Offset 'includerefgeneration' on array\\{label\\: 'KnowledgeManagement', includerefgeneration\\: 1, includedocgeneration\\: 0, class\\: 'KnowledgeRecord'\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''includerefgeneration'' on array\{label\: ''KnowledgeManagement'', includerefgeneration\: 1, includedocgeneration\: 0, class\: ''KnowledgeRecord''\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/admin/knowledgemanagement.php - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/knowledgemanagement.php - - message: "#^Variable \\$setupnotempty in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$setupnotempty in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/knowledgemanagement.php - - message: "#^Parameter \\#12 \\$localtaxes_array of function calcul_price_total expects array\\{string, int\\|string, string, int\\|string, string, string\\}\\|array\\{string, int\\|string, string, string\\}, array\\{\\} given\\.$#" + message: '#^Parameter \#12 \$localtaxes_array of function calcul_price_total expects array\{string, int\|string, string, int\|string, string, string\}\|array\{string, int\|string, string, string\}, array\{\} given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/admin/limits.php - - message: "#^Variable \\$aCurrencies in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$aCurrencies in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/admin/limits.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/admin/mails.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 3 path: ../../htdocs/admin/mails.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 3 path: ../../htdocs/admin/mails.php - - message: "#^Variable \\$text in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$text in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 4 path: ../../htdocs/admin/mails.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/admin/mails_emailing.php - - message: "#^Variable \\$text in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$text in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/admin/mails_emailing.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/admin/mails_passwordreset.php - - message: "#^Variable \\$text in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$text in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/admin/mails_passwordreset.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/admin/mails_senderprofile_list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/mails_senderprofile_list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 4 path: ../../htdocs/admin/mails_templates.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Loose comparison using \!\= between ''create'' and ''edit'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue count: 1 path: ../../htdocs/admin/mails_templates.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''create'' and ''edit'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/admin/mails_templates.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/admin/mails_templates.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/admin/mails_templates.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/admin/mails_ticket.php - - message: "#^Variable \\$text in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$text in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/admin/mails_ticket.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/admin/menus/edit.php - - message: "#^Property Menubase\\:\\:\\$target \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Menubase\:\:\$target \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/admin/menus/edit.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 1 - path: ../../htdocs/admin/modules.php - - - - message: "#^Property DolibarrModules\\:\\:\\$langfiles \\(array\\\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/admin/modules.php - - - - message: "#^Ternary operator condition is always false\\.$#" - count: 1 - path: ../../htdocs/admin/modules.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/admin/modules.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/admin/modules.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/admin/modules.php + + - + message: '#^Property DolibarrModules\:\:\$langfiles \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/admin/modules.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/admin/modules.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 2 + path: ../../htdocs/admin/modules.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/admin/notification.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/admin/notification.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/admin/oauth.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/admin/oauthlogintokens.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/admin/oauthlogintokens.php - - message: "#^Left side of && is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/admin/oauthlogintokens.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/admin/oauthlogintokens.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 5 path: ../../htdocs/admin/openid_connect.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 5 path: ../../htdocs/admin/openid_connect.php - - message: "#^Variable \\$bc might not be defined\\.$#" + message: '#^Variable \$bc might not be defined\.$#' + identifier: variable.undefined count: 10 path: ../../htdocs/admin/openid_connect.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/admin/openinghours.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/admin/pdf.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/admin/perms.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/admin/security.php - - message: "#^Variable \\$max in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$max in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/admin/security_file.php - - message: "#^Parameter \\#4 \\$deliveryreceipt of class CSMSFile constructor expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$deliveryreceipt of class CSMSFile constructor expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/admin/sms.php - - message: "#^Parameter \\#5 \\$deferred of class CSMSFile constructor expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$deferred of class CSMSFile constructor expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/admin/sms.php - - message: "#^Parameter \\#6 \\$priority of class CSMSFile constructor expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$priority of class CSMSFile constructor expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/admin/sms.php - - message: "#^Parameter \\#7 \\$class of class CSMSFile constructor expects int, array\\|string given\\.$#" + message: '#^Parameter \#7 \$class of class CSMSFile constructor expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/admin/sms.php - - message: "#^Variable \\$smsfile might not be defined\\.$#" + message: '#^Variable \$smsfile might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/admin/sms.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/admin/stocktransfer.php - - message: "#^Variable \\$setupnotempty in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$setupnotempty in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/stocktransfer.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/admin/system/about.php - - message: "#^Variable \\$conffiletoshowshort might not be defined\\.$#" + message: '#^Variable \$conffiletoshowshort might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/system/constall.php - - message: "#^Variable \\$row might not be defined\\.$#" + message: '#^Variable \$row might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/system/dbtable.php - - message: "#^Variable \\$conffiletoshowshort might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/admin/system/dolibarr.php - - message: "#^Variable \\$ignore in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$conffiletoshowshort might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/system/dolibarr.php - - message: "#^If condition is always true\\.$#" + message: '#^Variable \$ignore in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/admin/system/dolibarr.php + + - + message: '#^Call to function is_array\(\) with non\-empty\-list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/admin/system/filecheck.php - - message: "#^Left side of && is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/admin/system/filecheck.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" - count: 3 + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 path: ../../htdocs/admin/system/filecheck.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Parameter \#1 \$file_list of function getFilesUpdated expects array\{insignature\: array\, missing\?\: array\, updated\: array\\}, array\{\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/admin/system/filecheck.php + + - + message: '#^Parameter \#1 \$size of function dol_print_size expects int, string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/admin/system/filecheck.php + + - + message: '#^Loose comparison using \!\= between '''' and ''kanban'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue count: 1 path: ../../htdocs/admin/system/modules.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/admin/system/modules.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/system/modules.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/admin/system/perf.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/admin/system/phpinfo.php - - message: "#^Variable \\$title in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$title in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/admin/system/phpinfo.php - - message: "#^Variable \\$arrayofstreamtodisable might not be defined\\.$#" + message: '#^Call to function function_exists\(\) with ''exec''\|''popen'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/admin/system/security.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$arrayofstreamtodisable might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/admin/system/security.php + + - + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/admin/system/security.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/system/security.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/system/security.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Call to function is_bool\(\) with true will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/admin/system/xdebug.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/admin/tools/dolibarr_export.php - - message: "#^Variable \\$dolibarr_main_db_name might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_name might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/admin/tools/dolibarr_export.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/tools/dolibarr_export.php - - message: "#^Variable \\$dolibarr_main_db_host might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_host might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/tools/dolibarr_import.php - - message: "#^Variable \\$dolibarr_main_db_name might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_name might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/admin/tools/dolibarr_import.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/tools/dolibarr_import.php - - message: "#^Variable \\$ExecTimeLimit in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$ExecTimeLimit in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/tools/export.php - - message: "#^Variable \\$MemoryLimit in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$MemoryLimit in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/tools/export.php - - message: "#^Variable \\$massaction might not be defined\\.$#" + message: '#^Variable \$massaction might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/tools/export.php - - message: "#^Variable \\$ExecTimeLimit in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$ExecTimeLimit in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/tools/export_files.php - - message: "#^Variable \\$ExecTimeLimit in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$ExecTimeLimit in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/tools/purge.php - - message: "#^Variable \\$dolibarr_main_data_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_data_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/tools/purge.php - - message: "#^Variable \\$massactionbutton in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$massactionbutton in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/admin/translation.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/admin/triggers.php - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/usergroup.php - - message: "#^Variable \\$scandir might not be defined\\.$#" + message: '#^Variable \$scandir might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/usergroup.php - - message: "#^Variable \\$arrayofparameters might not be defined\\.$#" + message: '#^Variable \$arrayofparameters might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/webhook.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/webhook.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 5 path: ../../htdocs/admin/website.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 4 path: ../../htdocs/admin/website.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/admin/website.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/admin/website.php - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType count: 1 path: ../../htdocs/admin/workflow.php - - message: "#^If condition is always false\\.$#" + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType + count: 1 + path: ../../htdocs/admin/workflow.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/admin/workstation.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/admin/workstation.php - - message: "#^Variable \\$arrayofparameters might not be defined\\.$#" + message: '#^Variable \$arrayofparameters might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/admin/workstation.php - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/workstation.php - - message: "#^Variable \\$scandir might not be defined\\.$#" + message: '#^Variable \$scandir might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/admin/workstation.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/admin/workstation.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''edit'' and ''edit'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/ai/admin/setup.php - - message: "#^Unable to resolve the template type T in call to method DolibarrApi\\:\\:_cleanObjectDatas\\(\\)$#" + message: '#^Unable to resolve the template type T in call to method DolibarrApi\:\:_cleanObjectDatas\(\)$#' + identifier: argument.templateType count: 1 path: ../../htdocs/api/class/api.class.php - - message: "#^Method DolibarrApiAccess\\:\\:verifyAccess\\(\\) has parameter \\$m with no value type specified in iterable type array\\.$#" + message: '#^Method DolibarrApiAccess\:\:verifyAccess\(\) has parameter \$m with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_access.class.php - - message: "#^Property DolibarrApiAccess\\:\\:\\$requires type has no value type specified in iterable type array\\.$#" + message: '#^Property DolibarrApiAccess\:\:\$requires type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_access.class.php - - message: "#^Method Documents\\:\\:builddoc\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/api/class/api_documents.class.php - - - - message: "#^Method Documents\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/api/class/api_documents.class.php - - - - message: "#^Method Documents\\:\\:getDocumentsListByElement\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/api/class/api_documents.class.php - - - - message: "#^Method Documents\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/api/class/api_documents.class.php - - - - message: "#^Method Documents\\:\\:post\\(\\) has parameter \\$array_options with no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/api/class/api_documents.class.php - - - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_object\(\) with ActionComm\|Adherent\|Commande\|CommandeFournisseur\|Contact\|Contrat\|ExpenseReport\|Facture\|FactureFournisseur\|Fichinter\|Mo\|Product\|Project\|Propal\|Task will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/api/class/api_documents.class.php - - message: "#^Variable \\$disablevirusscan in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Method Documents\:\:builddoc\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_documents.class.php - - message: "#^Variable \\$modulepart in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Method Documents\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_documents.class.php - - message: "#^Variable \\$relativefile might not be defined\\.$#" + message: '#^Method Documents\:\:getDocumentsListByElement\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_documents.class.php - - message: "#^Method Login\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Documents\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/api/class/api_documents.class.php + + - + message: '#^Method Documents\:\:post\(\) has parameter \$array_options with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/api/class/api_documents.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 2 + path: ../../htdocs/api/class/api_documents.class.php + + - + message: '#^Variable \$disablevirusscan in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/api/class/api_documents.class.php + + - + message: '#^Variable \$modulepart in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/api/class/api_documents.class.php + + - + message: '#^Variable \$relativefile might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/api/class/api_documents.class.php + + - + message: '#^Method Login\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_login.class.php - - message: "#^Method Login\\:\\:loginUnsecured\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Login\:\:loginUnsecured\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_login.class.php - - message: "#^Comparison operation \"\\<\\=\" between 0 and 0 is always true\\.$#" + message: '#^Comparison operation "\<\=" between 0 and 0 is always true\.$#' + identifier: smallerOrEqual.alwaysTrue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" - count: 1 - path: ../../htdocs/api/class/api_setup.class.php - - - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:deleteExtrafieldsFromNames\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:deleteExtrafieldsFromNames\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getAvailability\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getAvailability\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getCheckIntegrity\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getCheckIntegrity\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getEstablishments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getEstablishments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getExtrafields\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getExtrafields\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfCivilities\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfCivilities\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfContactTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfContactTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfCountries\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfCountries\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfCurrencies\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfCurrencies\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfEventTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfEventTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfExpenseReportsTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfExpenseReportsTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfExtrafields\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfExtrafields\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfIncoterms\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfIncoterms\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfLegalForm\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfLegalForm\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfMeasuringUnits\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfMeasuringUnits\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfRegions\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfRegions\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfStaff\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfStaff\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfStates\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfStates\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfTowns\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfTowns\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getListOfsocialNetworks\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getListOfsocialNetworks\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getOrderingMethods\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getOrderingMethods\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getOrderingOrigins\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getOrderingOrigins\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getPaymentTerms\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getPaymentTerms\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getPaymentTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getPaymentTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getShippingModes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getShippingModes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getTicketsCategories\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getTicketsCategories\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getTicketsSeverities\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getTicketsSeverities\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:getTicketsTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:getTicketsTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:postExtrafields\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:postExtrafields\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:translateLabel\\(\\) has parameter \\$dict with no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:translateLabel\(\) has parameter \$dict with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Setup\\:\\:updateExtrafields\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Setup\:\:updateExtrafields\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" - count: 3 - path: ../../htdocs/api/class/api_setup.class.php - - - - message: "#^Variable \\$multicurrency in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Parameter \#1 \$file_list of function getFilesUpdated expects array\{insignature\: array\, missing\?\: array\, updated\: array\\}, array\{\} given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/api/class/api_setup.class.php - - message: "#^Method Status\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/api/class/api_setup.class.php + + - + message: '#^Variable \$multicurrency in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/api/class/api_setup.class.php + + - + message: '#^Variable \$tmpfilelist3 in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/api/class/api_setup.class.php + + - + message: '#^Method Status\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/api/class/api_status.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/api/index.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/accountancy_codes.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/asset/admin/setup.php - - message: "#^If condition is always true\\.$#" - count: 3 - path: ../../htdocs/asset/admin/setup.php - - - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/asset/admin/setup.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Loose comparison using \=\= between 1 and 1 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 2 + path: ../../htdocs/asset/admin/setup.php + + - + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/asset/admin/setup.php - - message: "#^Variable \\$setupnotempty in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/admin/setup.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$setupnotempty in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/asset/admin/setup.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/asset/card.php - - message: "#^Property Asset\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Asset\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/card.php - - message: "#^Parameter \\#4 \\$depreciation_ht of method Asset\\:\\:addDepreciationLine\\(\\) expects float, string given\\.$#" + message: '#^Loose comparison using \=\= between 0 and 9 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/asset/class/asset.class.php - - message: "#^Parameter \\#5 \\$cumulative_depreciation_ht of method Asset\\:\\:addDepreciationLine\\(\\) expects float, string given\\.$#" + message: '#^Loose comparison using \=\= between 9 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/asset/class/asset.class.php - - message: "#^Property Asset\\:\\:\\$date_start \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/asset/class/asset.class.php - - - - message: "#^Property Asset\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#4 \$depreciation_ht of method Asset\:\:addDepreciationLine\(\) expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/asset/class/asset.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#5 \$cumulative_depreciation_ht of method Asset\:\:addDepreciationLine\(\) expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/asset/class/asset.class.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Property Asset\:\:\$date_start \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/asset/class/asset.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Property Asset\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 20, notnull\: 1, visible\: 1, noteditable\: 0, index\: 1, \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 30, notnull\: 1, visible\: 1, searchall\: 1, css\: ''minwidth300'', \.\.\.\}, fk_asset_model\: array\{type\: ''integer\:AssetModel…'', label\: ''AssetModel'', enabled\: 1, position\: 40, notnull\: 0, visible\: 1, index\: 1, validate\: 1\}, qty\: array\{type\: ''real'', label\: ''Qty'', enabled\: 1, position\: 50, notnull\: 1, visible\: 0, default\: ''1'', isameasure\: 1, \.\.\.\}, acquisition_type\: array\{type\: ''smallint'', label\: ''AssetAcquisitionType'', enabled\: 1, position\: 60, notnull\: 1, visible\: 1, arrayofkeyval\: array\{''AssetAcquisitionTyp…'', ''AssetAcquisitionTyp…''\}, validate\: 1\}, asset_type\: array\{type\: ''smallint'', label\: ''AssetType'', enabled\: 1, position\: 70, notnull\: 1, visible\: 1, arrayofkeyval\: array\{''AssetTypeIntangible'', ''AssetTypeTangible'', ''AssetTypeInProgress'', ''AssetTypeFinancial''\}, validate\: 1\}, not_depreciated\: array\{type\: ''boolean'', label\: ''AssetNotDepreciated'', enabled\: 1, position\: 80, notnull\: 0, default\: ''0'', visible\: 1, validate\: 1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/asset/class/asset.class.php + + - + message: '#^Property Asset\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept non\-empty\-array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: ''1''\|int\<0, 1\>, default\?\: string, \.\.\.\}\>\.$#' + identifier: assign.propertyType + count: 6 + path: ../../htdocs/asset/class/asset.class.php + + - + message: '#^Property Asset\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/asset/class/asset.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/asset/class/asset.class.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/asset/class/asset.class.php - - message: "#^Property AssetModel\\:\\:\\$asset_accountancy_codes \\(AssetAccountancyCodes\\) in empty\\(\\) is not falsy\\.$#" - count: 2 - path: ../../htdocs/asset/class/assetmodel.class.php + message: '#^Call to function is_callable\(\) with array\{\$this\(AssetDepreciationOptions\), ''validateField''\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/asset/class/assetdepreciationoptions.class.php - - message: "#^Property AssetModel\\:\\:\\$asset_depreciation_options \\(AssetDepreciationOptions\\) in empty\\(\\) is not falsy\\.$#" - count: 2 - path: ../../htdocs/asset/class/assetmodel.class.php - - - - message: "#^Property AssetModel\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with AssetModel and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/asset/class/assetmodel.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with AssetModel and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/asset/class/assetmodel.class.php - - message: "#^Variable \\$lines in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function property_exists\(\) with AssetModel and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Call to function property_exists\(\) with AssetModel and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Call to function property_exists\(\) with AssetModel and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Property AssetModel\:\:\$asset_accountancy_codes \(AssetAccountancyCodes\) in empty\(\) is not falsy\.$#' + identifier: empty.property + count: 2 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Property AssetModel\:\:\$asset_depreciation_options \(AssetDepreciationOptions\) in empty\(\) is not falsy\.$#' + identifier: empty.property + count: 2 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Property AssetModel\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 20, notnull\: 1, visible\: 1, index\: 1, searchall\: 1, \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 30, notnull\: 1, visible\: 1, searchall\: 1, css\: ''minwidth300'', \.\.\.\}, asset_type\: array\{type\: ''smallint'', label\: ''AssetType'', enabled\: 1, position\: 40, notnull\: 1, visible\: 1, arrayofkeyval\: array\{''AssetTypeIntangible'', ''AssetTypeTangible'', ''AssetTypeInProgress'', ''AssetTypeFinancial''\}, validate\: 1\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 300, notnull\: 0, visible\: 0, validate\: 1\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 301, notnull\: 0, visible\: 0, validate\: 1\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, position\: 500, notnull\: 1, visible\: \-2\}, tms\: array\{type\: ''timestamp'', label\: ''DateModification'', enabled\: 1, position\: 501, notnull\: 0, visible\: \-2\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Property AssetModel\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/asset/class/assetmodel.class.php + + - + message: '#^Variable \$lines in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/asset/depreciation.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/depreciation_options.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/asset/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/asset/list.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/model/accountancy_codes.php - - message: "#^Variable \\$backtopageforcancel might not be defined\\.$#" + message: '#^Variable \$backtopageforcancel might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/model/accountancy_codes.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/model/agenda.php - - message: "#^Property AssetModel\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AssetModel\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/model/card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/model/card.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/asset/model/card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/model/depreciation_options.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/asset/model/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/asset/model/list.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/asset/model/note.php - - message: "#^Variable \\$assetaccountancycodes might not be defined\\.$#" + message: '#^Variable \$assetaccountancycodes might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/accountancy_codes_edit.tpl.php - - message: "#^Variable \\$parameters might not be defined\\.$#" + message: '#^Variable \$parameters might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/accountancy_codes_edit.tpl.php - - message: "#^Variable \\$assetaccountancycodes might not be defined\\.$#" + message: '#^Variable \$assetaccountancycodes might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/accountancy_codes_view.tpl.php - - message: "#^Variable \\$parameters might not be defined\\.$#" + message: '#^Variable \$parameters might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/accountancy_codes_view.tpl.php - - message: "#^Variable \\$parameters might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/asset/tpl/depreciation_options_edit.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$parameters might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/asset/tpl/depreciation_options_edit.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" - count: 7 - path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php - - - - message: "#^Variable \\$parameters might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined + count: 7 + path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php + + - + message: '#^Variable \$parameters might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php + + - + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/asset/tpl/depreciation_view.tpl.php - - message: "#^Variable \\$assetdepreciationoptions might not be defined\\.$#" + message: '#^Variable \$assetdepreciationoptions might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/asset/tpl/depreciation_view.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/depreciation_view.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/asset/tpl/depreciation_view.tpl.php - - message: "#^Variable \\$parameters might not be defined\\.$#" + message: '#^Variable \$parameters might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/depreciation_view.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/asset/tpl/linkedobjectblock.tpl.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 4 path: ../../htdocs/barcode/printsheet.php - - message: "#^Variable \\$code might not be defined\\.$#" + message: '#^Variable \$code might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/barcode/printsheet.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/blockedlog/admin/blockedlog_list.php - - message: "#^Dead catch \\- Exception is never thrown in the try block\\.$#" + message: '#^Strict comparison using \=\=\= between ''facture'' and ''facture'' will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/blockedlog/ajax/block-add.php + + - + message: '#^Call to function is_object\(\) with Don\|Facture\|FactureFournisseur\|PaymentVarious will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/blockedlog/class/blockedlog.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Dead catch \- Exception is never thrown in the try block\.$#' + identifier: catch.neverThrown count: 1 path: ../../htdocs/blockedlog/class/blockedlog.class.php - - message: "#^Variable \\$aaa might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/blockedlog/class/blockedlog.class.php - - message: "#^Property BOM\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Variable \$aaa might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/blockedlog/class/blockedlog.class.php + + - + message: '#^Property BOM\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bom/bom_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bom/bom_card.php - - message: "#^Variable \\$idprod might not be defined\\.$#" + message: '#^Variable \$idprod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bom/bom_card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/bom/bom_list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/bom/bom_list.php - - message: "#^Property BOM\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Loose comparison using \=\= between ''treeview'' and ''treeview'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 3 + path: ../../htdocs/bom/bom_net_needs.php + + - + message: '#^Property BOM\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bom/bom_net_needs.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bom/bom_net_needs.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bom/bom_net_needs.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:deleteLine\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:deleteLine\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method Boms\\:\\:putLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Boms\:\:putLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/bom/class/api_boms.class.php - - message: "#^Method BOM\\:\\:getNetNeedsTree\\(\\) has parameter \\$TNetNeeds with no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(BOM\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bom/class/bom.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(BOM\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bom/class/bom.class.php - - message: "#^Property BOM\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Method BOM\:\:getNetNeedsTree\(\) has parameter \$TNetNeeds with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/bom/class/bom.class.php - - message: "#^Property BOM\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/bom/class/bom.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Property BOM\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, visible\: \-2, position\: 1, notnull\: 1, index\: 1, comment\: ''Id''\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, notnull\: 1, default\: 1, index\: 1, position\: 5\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, noteditable\: 1, visible\: 4, position\: 10, notnull\: 1, default\: ''\(PROV\)'', \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, visible\: 1, position\: 30, notnull\: 1, searchall\: 1, showoncombobox\: ''2'', \.\.\.\}, bomtype\: array\{type\: ''integer'', label\: ''Type'', enabled\: 1, visible\: 1, position\: 33, notnull\: 1, default\: ''0'', arrayofkeyval\: array\{''Manufacturing'', ''Disassemble''\}, \.\.\.\}, fk_product\: array\{type\: ''integer\:Product…'', label\: ''Product'', picto\: ''product'', enabled\: 1, visible\: 1, position\: 35, notnull\: 1, index\: 1, \.\.\.\}, description\: array\{type\: ''text'', label\: ''Description'', enabled\: 1, visible\: \-1, position\: 60, notnull\: \-1\}, qty\: array\{type\: ''real'', label\: ''Quantity'', enabled\: 1, visible\: 1, default\: 1, position\: 55, notnull\: 1, isameasure\: 1, \.\.\.\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/bom/class/bom.class.php + + - + message: '#^Property BOM\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bom/class/bom.class.php + + - + message: '#^Property BOM\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bom/class/bom.class.php + + - + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/bom/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/bom/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Call to function is_object\(\) with BOMLine will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bom/tpl/objectline_create.tpl.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/bom/tpl/objectline_create.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/bom/tpl/objectline_create.tpl.php + + - + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/bom/tpl/objectline_create.tpl.php + + - + message: '#^Call to function is_object\(\) with BOMLine will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$buyer might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$dateSelector might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$buyer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$dateSelector might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/bom/tpl/objectline_edit.tpl.php + + - + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/bom/tpl/objectline_edit.tpl.php + + - + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/bom/tpl/objectline_edit.tpl.php + + - + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$line might not be defined\\.$#" + message: '#^Variable \$line might not be defined\.$#' + identifier: variable.undefined count: 20 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$seller might not be defined\\.$#" + message: '#^Variable \$seller might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$var might not be defined\\.$#" + message: '#^Variable \$var might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bom/tpl/objectline_edit.tpl.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/bom/tpl/objectline_title.tpl.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/bom/tpl/objectline_view.tpl.php - - - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject count: 2 path: ../../htdocs/bom/tpl/objectline_view.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Cannot access property \$id on mixed\.$#' + identifier: property.nonObject + count: 4 + path: ../../htdocs/bom/tpl/objectline_view.tpl.php + + - + message: '#^Cannot access property \$status on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/bom/tpl/objectline_view.tpl.php + + - + message: '#^Cannot access property \$total_cost on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/bom/tpl/objectline_view.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/bom/tpl/objectline_view.tpl.php + + - + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bom/tpl/objectline_view.tpl.php + + - + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/bom/tpl/objectline_view.tpl.php + + - + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/bom/tpl/objectline_view.tpl.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_agenda.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_agenda.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Left side of \|\| is always true\.$#' + identifier: booleanOr.leftAlwaysTrue count: 1 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Property Availabilities\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Availabilities\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 6 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Variable \\$permissiontoadd in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$permissiontoadd in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bookcal/availabilities_card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_contact.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_contact.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/bookcal/availabilities_contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_document.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_document.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/bookcal/availabilities_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/bookcal/availabilities_list.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_list.php - - message: "#^Variable \\$permissiontodelete in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$permissiontodelete in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/bookcal/availabilities_list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_note.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/availabilities_note.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/booking_list.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/booking_list.php - - message: "#^Property Calendar\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Calendar\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bookcal/booking_list.php - - message: "#^Variable \\$lineid might not be defined\\.$#" + message: '#^Variable \$lineid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bookcal/booking_list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_agenda.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_agenda.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^Property Calendar\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Calendar\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^Property Calendar\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Calendar\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 5 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^Variable \\$permissiontoadd in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$permissiontoadd in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/bookcal/calendar_card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_contact.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_contact.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/bookcal/calendar_contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_document.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_document.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/bookcal/calendar_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/bookcal/calendar_list.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_list.php - - message: "#^Variable \\$permissiontodelete in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$permissiontodelete in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/bookcal/calendar_list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_note.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/bookcal/calendar_note.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Availabilities\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Availabilities\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Method Availabilities\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Availabilities\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Method Availabilities\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with Availabilities and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with Availabilities and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Property Availabilities\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Availabilities and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Availabilities and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function property_exists\(\) with Availabilities and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Method Availabilities\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Method Availabilities\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Property Availabilities\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 2, noteditable\: 1, index\: 1, \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 20, notnull\: 0, visible\: 1, searchall\: 1, css\: ''minwidth300'', \.\.\.\}, fk_bookcal_calendar\: array\{type\: ''integer\:Calendar…'', label\: ''Calendar'', enabled\: 1, position\: 25, notnull\: 1, visible\: 1, css\: ''maxwidth500…'', csslist\: ''tdoverflowmax100''\}, description\: array\{type\: ''text'', label\: ''Description'', enabled\: 1, position\: 60, notnull\: 0, visible\: 3, validate\: 1\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 61, notnull\: 0, visible\: 0, cssview\: ''wordbreak'', validate\: 1\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 62, notnull\: 0, visible\: 0, cssview\: ''wordbreak'', validate\: 1\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, position\: 500, notnull\: 1, visible\: \-2\}, tms\: array\{type\: ''timestamp'', label\: ''DateModification'', enabled\: 1, position\: 501, notnull\: 0, visible\: \-2\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Property Availabilities\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bookcal/class/availabilities.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/bookcal/class/availabilities.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Calendar\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/calendar.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Calendar\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/calendar.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Calendar\) and ''fk_soc'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/calendar.class.php - - message: "#^Property Calendar\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Calendar\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/calendar.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Calendar and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/bookcal/class/calendar.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function property_exists\(\) with Calendar and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Call to function property_exists\(\) with Calendar and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Call to function property_exists\(\) with Calendar and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Call to function property_exists\(\) with Calendar and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Property Calendar\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/bookcal/class/calendar.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/bookcal/class/calendar.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/bookcal/lib/bookcal_availabilities.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/bookcal/lib/bookcal_availabilities.lib.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/bookcal/lib/bookcal_calendar.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/bookcal/lib/bookcal_calendar.lib.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/bookmarks/bookmarks.lib.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/bookmarks/bookmarks.lib.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/bookmarks/list.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/categories/card.php - - message: "#^Method Categories\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:getListForObject\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:getListForObject\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:linkObjectById\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:linkObjectById\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:linkObjectByRef\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:linkObjectByRef\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:unlinkObjectById\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:unlinkObjectById\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Method Categories\\:\\:unlinkObjectByRef\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Categories\:\:unlinkObjectByRef\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/categories/class/api_categories.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/categories/class/categorie.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Method Categorie\:\:get_full_arbo\(\) should return \-1\|array\ but returns array\\.$#' + identifier: return.type + count: 1 + path: ../../htdocs/categories/class/categorie.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/categories/class/categorie.class.php - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType count: 1 path: ../../htdocs/categories/class/categorie.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property Categorie\:\:\$cats \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 2 path: ../../htdocs/categories/class/categorie.class.php - - message: "#^If condition is always true\\.$#" - count: 2 - path: ../../htdocs/categories/photos.php - - - - message: "#^Left side of && is always true\\.$#" - count: 2 - path: ../../htdocs/categories/photos.php - - - - message: "#^Elseif condition is always true\\.$#" + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType count: 1 - path: ../../htdocs/categories/viewcat.php + path: ../../htdocs/categories/class/categorie.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/categories/class/categorie.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 2 + path: ../../htdocs/categories/photos.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 2 + path: ../../htdocs/categories/photos.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 9 path: ../../htdocs/categories/viewcat.php - - message: "#^Variable \\$elementtype might not be defined\\.$#" + message: '#^Loose comparison using \=\= between ''bank_account'' and ''bank_account'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/categories/viewcat.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Strict comparison using \!\=\= between Account\|Adherent\|Contact\|Product\|Project\|Societe\|Ticket\|User and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/categories/viewcat.php + + - + message: '#^Variable \$elementtype might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/categories/viewcat.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/collab/index.php - - message: "#^Variable \\$objectpage might not be defined\\.$#" + message: '#^Variable \$objectpage might not be defined\.$#' + identifier: variable.undefined count: 11 path: ../../htdocs/collab/index.php - - message: "#^Left side of && is always false\\.$#" - count: 1 - path: ../../htdocs/comm/action/card.php - - - - message: "#^Negated boolean expression is always true\\.$#" - count: 1 - path: ../../htdocs/comm/action/card.php - - - - message: "#^Result of && is always false\\.$#" - count: 1 - path: ../../htdocs/comm/action/card.php - - - - message: "#^Ternary operator condition is always false\\.$#" - count: 1 - path: ../../htdocs/comm/action/card.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''create'' and ''create'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/comm/action/card.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \=\= between ''edit'' and ''create'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/card.php + + - + message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/card.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/card.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 + path: ../../htdocs/comm/action/card.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/card.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 2 + path: ../../htdocs/comm/action/card.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property ActionComm\\:\\:\\$contact_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ActionComm\:\:\$contact_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property ActionComm\\:\\:\\$durationp \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ActionComm\:\:\$durationp \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property ActionComm\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ActionComm\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property ActionComm\\:\\:\\$transparency \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ActionComm\:\:\$transparency \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property ActionComm\\:\\:\\$type_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ActionComm\:\:\$type_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property ActionComm\\:\\:\\$userownerid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ActionComm\:\:\$userownerid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 5 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Variable \\$agenda_static might not be defined\\.$#" + message: '#^Variable \$agenda_static might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: "#^Method AgendaEvents\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method AgendaEvents\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/api_agendaevents.class.php - - message: "#^Method AgendaEvents\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method AgendaEvents\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/api_agendaevents.class.php - - message: "#^Method AgendaEvents\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method AgendaEvents\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/api_agendaevents.class.php - - message: "#^Method AgendaEvents\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method AgendaEvents\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/api_agendaevents.class.php - - message: "#^Method AgendaEvents\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method AgendaEvents\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/api_agendaevents.class.php - - message: "#^Method AgendaEvents\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method AgendaEvents\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/api_agendaevents.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/comm/action/class/cactioncomm.class.php - - message: "#^Property CActionComm\\:\\:\\$type_actions type has no value type specified in iterable type array\\.$#" + message: '#^Property CActionComm\:\:\$type_actions type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/action/class/cactioncomm.class.php - - message: "#^Variable \\$TSystem might not be defined\\.$#" + message: '#^Variable \$TSystem might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/action/class/cactioncomm.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/action/document.php - - message: "#^If condition is always false\\.$#" - count: 1 - path: ../../htdocs/comm/action/index.php - - - - message: "#^Parameter \\#16 \\$usergroupid of function print_actions_filter expects int, array\\|string given\\.$#" - count: 3 - path: ../../htdocs/comm/action/index.php - - - - message: "#^Parameter \\#18 \\$resourceid of function print_actions_filter expects int, array\\|string given\\.$#" - count: 3 - path: ../../htdocs/comm/action/index.php - - - - message: "#^Right side of && is always true\\.$#" - count: 1 - path: ../../htdocs/comm/action/index.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/comm/action/index.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/comm/action/index.php - - message: "#^Variable \\$reshook in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/action/index.php - - message: "#^Variable \\$theme_datacolor might not be defined\\.$#" + message: '#^Parameter \#16 \$usergroupid of function print_actions_filter expects int, array\\|string given\.$#' + identifier: argument.type + count: 3 + path: ../../htdocs/comm/action/index.php + + - + message: '#^Parameter \#18 \$resourceid of function print_actions_filter expects int, array\\|string given\.$#' + identifier: argument.type + count: 3 + path: ../../htdocs/comm/action/index.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/comm/action/index.php - - message: "#^If condition is always false\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 2 + path: ../../htdocs/comm/action/index.php + + - + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/comm/action/index.php + + - + message: '#^Variable \$reshook in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/comm/action/index.php + + - + message: '#^Variable \$theme_datacolor might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/comm/action/index.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/action/info.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/comm/action/info.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/action/info.php - - message: "#^Ternary operator condition is always true\\.$#" - count: 4 - path: ../../htdocs/comm/action/list.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/comm/action/list.php - - message: "#^Comparison operation \"\\<\" between int\\<1, max\\> and 1 is always false\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 4 + path: ../../htdocs/comm/action/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/comm/action/list.php + + - + message: '#^Call to function is_array\(\) with array\{\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/comm/action/pertype.php - - message: "#^If condition is always false\\.$#" + message: '#^Comparison operation "\<" between int\<1, max\> and 1 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: ../../htdocs/comm/action/pertype.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/pertype.php + + - + message: '#^Loose comparison using \!\= between ''show_pertype'' and ''show_day'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/pertype.php + + - + message: '#^Loose comparison using \!\= between ''show_pertype'' and ''show_peruser'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/pertype.php + + - + message: '#^Loose comparison using \!\= between ''show_pertype'' and ''show_week'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/pertype.php + + - + message: '#^Loose comparison using \!\= between 1 and '''' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/pertype.php + + - + message: '#^Loose comparison using \!\= between 53 and '''' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/pertype.php + + - + message: '#^Loose comparison using \=\= between int\<2, max\> and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/comm/action/pertype.php - - message: "#^Parameter \\#3 \\$status of function print_actions_filter expects int, array\\|string given\\.$#" + message: '#^Parameter \#3 \$status of function print_actions_filter expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/comm/action/pertype.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/comm/action/pertype.php - - message: "#^Right side of && is always true\\.$#" - count: 3 - path: ../../htdocs/comm/action/pertype.php - - - - message: "#^Ternary operator condition is always false\\.$#" - count: 2 - path: ../../htdocs/comm/action/pertype.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 4 path: ../../htdocs/comm/action/pertype.php - - message: "#^Variable \\$mode in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$mode in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/comm/action/pertype.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/action/pertype.php - - message: "#^Variable \\$theme_datacolor might not be defined\\.$#" + message: '#^Variable \$theme_datacolor might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/action/pertype.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_array\(\) with array\{\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Loose comparison using \!\= between ''show_peruser'' and ''show_day'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Loose comparison using \!\= between ''show_peruser'' and ''show_peruser'' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Loose comparison using \!\= between ''show_peruser'' and ''show_week'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Loose comparison using \=\= between ''show_peruser'' and ''list'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Loose comparison using \=\= between ''show_peruser'' and ''show_day'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/comm/action/peruser.php - - message: "#^Result of && is always false\\.$#" + message: '#^Loose comparison using \=\= between ''show_peruser'' and ''show_month'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/comm/action/peruser.php - - message: "#^Right side of && is always false\\.$#" - count: 1 - path: ../../htdocs/comm/action/peruser.php - - - - message: "#^Right side of && is always true\\.$#" - count: 3 - path: ../../htdocs/comm/action/peruser.php - - - - message: "#^Right side of \\|\\| is always false\\.$#" - count: 1 - path: ../../htdocs/comm/action/peruser.php - - - - message: "#^Ternary operator condition is always false\\.$#" - count: 8 - path: ../../htdocs/comm/action/peruser.php - - - - message: "#^Ternary operator condition is always true\\.$#" - count: 11 - path: ../../htdocs/comm/action/peruser.php - - - - message: "#^Variable \\$labelbytype might not be defined\\.$#" - count: 1 - path: ../../htdocs/comm/action/peruser.php - - - - message: "#^Variable \\$mode in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between ''show_peruser'' and ''show_peruser'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/comm/action/peruser.php - - message: "#^Variable \\$s might not be defined\\.$#" + message: '#^Loose comparison using \=\= between ''show_peruser'' and ''show_week'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Loose comparison using \=\= between int\<2, max\> and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 4 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 10 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Variable \$labelbytype might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/action/peruser.php - - message: "#^Variable \\$theme_datacolor might not be defined\\.$#" + message: '#^Variable \$mode in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Variable \$s might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/action/peruser.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Variable \$theme_datacolor might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/comm/action/peruser.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/comm/action/rapport/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/comm/action/rapport/index.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 16 path: ../../htdocs/comm/card.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 6 path: ../../htdocs/comm/card.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Variable \$filedir in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/comm/card.php - - message: "#^Variable \\$filedir in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/comm/card.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/comm/card.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" - count: 6 - path: ../../htdocs/comm/card.php - - - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/contact.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/comm/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/comm/mailing/advtargetemailing.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/comm/mailing/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/comm/mailing/card.php - - message: "#^Parameter \\#1 \\$filenb of function dol_remove_file_process expects int, array\\|string given\\.$#" + message: '#^Parameter \#1 \$filenb of function dol_remove_file_process expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/comm/mailing/card.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/comm/mailing/card.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/mailing/card.php - - message: "#^If condition is always true\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/comm/mailing/cibles.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 4 path: ../../htdocs/comm/mailing/cibles.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/mailing/cibles.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/mailing/cibles.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/comm/mailing/class/advtargetemailing.class.php - - message: "#^Property AdvanceTargetingMailing\\:\\:\\$filtervalue \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AdvanceTargetingMailing\:\:\$filtervalue \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/comm/mailing/class/advtargetemailing.class.php - - message: "#^Property AdvanceTargetingMailing\\:\\:\\$fk_element \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AdvanceTargetingMailing\:\:\$fk_element \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/comm/mailing/class/advtargetemailing.class.php - - message: "#^Property AdvanceTargetingMailing\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AdvanceTargetingMailing\:\:\$name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/comm/mailing/class/advtargetemailing.class.php - - message: "#^Property AdvanceTargetingMailing\\:\\:\\$type_element \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property AdvanceTargetingMailing\:\:\$type_element \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/comm/mailing/class/advtargetemailing.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/comm/mailing/class/mailing.class.php - - message: "#^Property Mailing\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mailing\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/mailing/class/mailing.class.php - - message: "#^Property Mailing\\:\\:\\$sujet \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mailing\:\:\$sujet \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/mailing/class/mailing.class.php - - message: "#^Property Mailing\\:\\:\\$title \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mailing\:\:\$title \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/mailing/class/mailing.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 4 path: ../../htdocs/comm/mailing/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/propal/agenda.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/comm/propal/card.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/comm/propal/card.php - - - - message: "#^Variable \\$classname might not be defined\\.$#" + message: '#^Parameter \#4 \$url of function dolGetButtonAction expects array\\}\>\|string, array\{0\: array\{lang\: ''orders'', enabled\: bool, perm\: 0\|1, label\: ''AddOrder'', url\: non\-falsy\-string\}, 1\: array\{lang\: ''interventions'', enabled\: bool, perm\: 0\|1, label\: ''AddIntervention'', url\: non\-falsy\-string\}\|array\{lang\: ''orders'', enabled\: bool, perm\: bool, label\: ''AddPurchaseOrder'', url\: non\-falsy\-string\}, 2\: array\{lang\: ''contracts'', enabled\: bool, perm\: 0\|1, label\: ''AddContract'', url\: non\-falsy\-string\}\|array\{lang\: ''interventions'', enabled\: bool, perm\: 0\|1, label\: ''AddIntervention'', url\: non\-falsy\-string\}, 3\?\: array\{lang\: ''contracts'', enabled\: bool, perm\: 0\|1, label\: ''AddContract'', url\: non\-falsy\-string\}\|array\{lang\: ''invoice'', enabled\: bool, perm\: 0\|1, label\: ''CreateBill'', url\: non\-falsy\-string\}, 4\?\: array\{lang\: ''invoice'', enabled\: bool, perm\: 0\|1, label\: ''CreateBill'', url\: non\-falsy\-string\}\} given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/comm/propal/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/comm/propal/card.php + + - + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/comm/propal/card.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/comm/propal/card.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/propal/card.php - - message: "#^Method Proposals\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:postContact\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:postContact\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:postLines\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:postLines\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Proposals\\:\\:putLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Proposals\:\:putLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 4 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Property Proposals\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Proposals\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/comm/propal/class/api_proposals.class.php - - message: "#^Method Propal\\:\\:liste_array\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Propal\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Propal\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/comm/propal/class/propal.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Propal\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/comm/propal/class/propal.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Propal\) and ''total_ht'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/comm/propal/class/propal.class.php + + - + message: '#^Method Propal\:\:liste_array\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/comm/propal/class/propal.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 4 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Parameter \\#3 \\$remise_percent_ligne of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$cond_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$cond_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$mode_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$mode_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$total_ht \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_ht \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$total_localtax1 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_localtax1 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$total_localtax2 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_localtax2 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$total_ttc \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_ttc \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property CommonObject\\:\\:\\$total_tva \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_tva \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property Propal\\:\\:\\$date_signature \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propal\:\:\$date_signature \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property Propal\\:\\:\\$demand_reason_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propal\:\:\$demand_reason_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property Propal\\:\\:\\$ref_client \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propal\:\:\$ref_client \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property Propal\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propal\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property Propal\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propal\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Property Propal\\:\\:\\$user_author_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propal\:\:\$user_author_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Variable \\$error in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$error in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/comm/propal/class/propaleligne.class.php - - message: "#^Property PropaleLigne\\:\\:\\$info_bits \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PropaleLigne\:\:\$info_bits \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propaleligne.class.php - - message: "#^Property PropaleLigne\\:\\:\\$pa_ht \\(float\\|int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PropaleLigne\:\:\$pa_ht \(float\|int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/comm/propal/class/propaleligne.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/propal/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/propal/document.php - - message: "#^If condition is always false\\.$#" - count: 4 - path: ../../htdocs/comm/propal/list.php - - - - message: "#^Result of && is always false\\.$#" - count: 1 - path: ../../htdocs/comm/propal/list.php - - - - message: "#^Right side of && is always false\\.$#" - count: 1 - path: ../../htdocs/comm/propal/list.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/comm/propal/list.php - - message: "#^Variable \\$searchCategoryCustomerList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/comm/propal/list.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/comm/propal/list.php - - message: "#^Variable \\$searchCategoryProductList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/comm/propal/list.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/comm/propal/list.php + + - + message: '#^Variable \$searchCategoryCustomerList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/comm/propal/list.php + + - + message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/comm/propal/list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/comm/propal/note.php - - message: "#^Variable \\$title might not be defined\\.$#" + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/comm/propal/stats/index.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/comm/propal/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/propal/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/comm/recap-client.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/commande/agenda.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between null and ''HT'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/commande/card.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Loose comparison using \=\= between null and ''TTC'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/commande/card.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/commande/card.php + + - + message: '#^Parameter \#4 \$url of function dolGetButtonAction expects array\\}\>\|string, array\{0\: array\{lang\: ''interventions'', enabled\: bool, perm\: 0\|1, label\: ''AddIntervention'', url\: non\-falsy\-string\}, 1\: array\{lang\: ''contracts'', enabled\: bool, perm\: 0\|1, label\: ''AddContract'', url\: non\-falsy\-string\}, 2\: array\{lang\: ''bills'', enabled\: bool, perm\: bool, label\: ''CreateBill'', url\: non\-falsy\-string\}\|array\{lang\: ''sendings'', enabled\: bool, perm\: 0\|1, label\: ''CreateShipment'', url\: non\-falsy\-string\}, 3\?\: array\{lang\: ''bills'', enabled\: bool, perm\: bool, label\: ''CreateBill'', url\: non\-falsy\-string\}\}\|array\{0\: array\{lang\: ''orders'', enabled\: bool, perm\: bool, label\: ''AddPurchaseOrder'', url\: non\-falsy\-string\}, 1\: array\{lang\: ''interventions'', enabled\: bool, perm\: 0\|1, label\: ''AddIntervention'', url\: non\-falsy\-string\}, 2\: array\{lang\: ''contracts'', enabled\: bool, perm\: 0\|1, label\: ''AddContract'', url\: non\-falsy\-string\}, 3\: array\{lang\: ''bills'', enabled\: bool, perm\: bool, label\: ''CreateBill'', url\: non\-falsy\-string\}\|array\{lang\: ''sendings'', enabled\: bool, perm\: 0\|1, label\: ''CreateShipment'', url\: non\-falsy\-string\}, 4\?\: array\{lang\: ''bills'', enabled\: bool, perm\: bool, label\: ''CreateBill'', url\: non\-falsy\-string\}\} given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/commande/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/commande/card.php - - message: "#^Variable \\$classname might not be defined\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 2 + path: ../../htdocs/commande/card.php + + - + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/commande/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/commande/card.php - - message: "#^Method Orders\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:deleteContact\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:deleteContact\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:getOrderShipments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:getOrderShipments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:postContact\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:postContact\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Method Orders\\:\\:putLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Orders\:\:putLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Parameter \\#1 \\$object of method Orders\\:\\:_cleanObjectDatas\\(\\) expects object, array\\\\>\\|int given\\.$#" + message: '#^Parameter \#1 \$object of method Orders\:\:_cleanObjectDatas\(\) expects object, array\\>\|int given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Property Orders\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Orders\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/commande/class/api_orders.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 5 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property Commande\\:\\:\\$mode_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$mode_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property Commande\\:\\:\\$ref_client \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$ref_client \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property Commande\\:\\:\\$ref_customer \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$ref_customer \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property Commande\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property Commande\\:\\:\\$statut \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$statut \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$cond_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$cond_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$shipping_method_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$shipping_method_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$total_ht \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_ht \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$total_localtax1 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_localtax1 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$total_localtax2 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_localtax2 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$total_ttc \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_ttc \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Property CommonObject\\:\\:\\$total_tva \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$total_tva \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 1 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Variable \\$error in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$error in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/commande/class/commande.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/commande/class/orderline.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/commande/contact.php - - message: "#^Variable \\$addu might not be defined\\.$#" + message: '#^Variable \$addu might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/commande/customer.php - - message: "#^Variable \\$begin might not be defined\\.$#" + message: '#^Variable \$begin might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/commande/customer.php - - message: "#^Variable \\$maxlen might not be defined\\.$#" + message: '#^Variable \$maxlen might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/commande/customer.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/commande/customer.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/commande/document.php - - message: "#^If condition is always false\\.$#" - count: 10 - path: ../../htdocs/commande/list.php - - - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Call to function method_exists\(\) with Commande and ''fetch_lines'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/commande/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 6 + path: ../../htdocs/commande/list.php + + - + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/commande/list.php + + - + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/commande/list.php + + - + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType + count: 1 + path: ../../htdocs/commande/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/commande/list.php - - message: "#^Variable \\$permissiontoadd might not be defined\\.$#" + message: '#^Variable \$permissiontoadd might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/commande/list.php - - message: "#^Variable \\$searchCategoryCustomerList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategoryCustomerList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/commande/list.php - - message: "#^Variable \\$searchCategoryProductList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/commande/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/commande/list_det.php - - message: "#^Variable \\$formproduct might not be defined\\.$#" + message: '#^Variable \$formproduct might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/commande/list_det.php - - message: "#^Variable \\$permissiontoadd might not be defined\\.$#" + message: '#^Variable \$permissiontoadd might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/commande/list_det.php - - message: "#^Variable \\$searchCategoryProductOperator might not be defined\\.$#" + message: '#^Variable \$searchCategoryProductOperator might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/commande/list_det.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/commande/note.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/commande/stats/index.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/commande/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/commande/tpl/linkedobjectblock.tpl.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 5 path: ../../htdocs/compta/accounting-files.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/compta/accounting-files.php - - message: "#^Variable \\$modulepart might not be defined\\.$#" + message: '#^Variable \$modulepart might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/accounting-files.php - - message: "#^Variable \\$sql in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$sql in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/accounting-files.php - - message: "#^Variable \\$ve might not be defined\\.$#" + message: '#^Variable \$ve might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/bank/account_statement_document.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/compta/bank/bankentries_list.php - - message: "#^Left side of && is always true\\.$#" - count: 1 - path: ../../htdocs/compta/bank/bankentries_list.php - - - - message: "#^Negated boolean expression is always false\\.$#" - count: 1 - path: ../../htdocs/compta/bank/bankentries_list.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/compta/bank/bankentries_list.php - - message: "#^Variable \\$dateop in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/compta/bank/bankentries_list.php - - message: "#^Variable \\$noback in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: ../../htdocs/compta/bank/bankentries_list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/compta/bank/bankentries_list.php + + - + message: '#^Variable \$dateop in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/compta/bank/bankentries_list.php + + - + message: '#^Variable \$noback in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/bank/card.php - - message: "#^Variable \\$selectedcode in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$selectedcode in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/bank/card.php - - message: "#^Variable \\$title might not be defined\\.$#" + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/compta/bank/categ.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Account\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/account.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Account\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/account.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Account\) and ''solde'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/account.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Account\) and ''type_lib'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/account.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/compta/bank/class/account.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/compta/bank/class/account.class.php - - message: "#^Method BankAccounts\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:deleteLine\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:deleteLine\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:getLinks\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:getLinks\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Method BankAccounts\\:\\:transfer\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method BankAccounts\:\:transfer\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Property BankAccounts\\:\\:\\$FIELDS has no type specified\\.$#" + message: '#^Property BankAccounts\:\:\$FIELDS has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Variable \\$amount_to in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$amount_to in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/bank/class/api_bankaccounts.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/bank/class/bankcateg.class.php - - message: "#^Property BankCateg\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property BankCateg\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/bank/class/bankcateg.class.php - - message: "#^Property PaymentVarious\\:\\:\\$accountid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(PaymentVarious\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/bank/class/paymentvarious.class.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(PaymentVarious\) and ''accountancy_code'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/paymentvarious.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentVarious\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/paymentvarious.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentVarious\) and ''datep'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/paymentvarious.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentVarious\) and ''fk_bank'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/bank/class/paymentvarious.class.php + + - + message: '#^Property PaymentVarious\:\:\$accountid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/bank/class/paymentvarious.class.php + + - + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/graph.php - - message: "#^Variable \\$max might not be defined\\.$#" + message: '#^Variable \$max might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/bank/graph.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/compta/bank/line.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/bank/line.php - - message: "#^Variable \\$filepath might not be defined\\.$#" + message: '#^Variable \$filepath might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/line.php - - message: "#^Variable \\$oldfilepath might not be defined\\.$#" + message: '#^Variable \$oldfilepath might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/line.php - - message: "#^If condition is always false\\.$#" - count: 2 - path: ../../htdocs/compta/bank/list.php - - - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/bank/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/compta/bank/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/compta/bank/list.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/compta/bank/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/compta/bank/list.php + + - + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/bank/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/compta/bank/releve.php - - message: "#^Variable \\$buttonreconcile might not be defined\\.$#" + message: '#^Variable \$buttonreconcile might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/releve.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/bank/releve.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/bank/transfer.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/compta/bank/transfer.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/compta/bank/treso.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/treso.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/bank/treso.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/bank/various_payment/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/bank/various_payment/card.php - - message: "#^Variable \\$accountline might not be defined\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/compta/bank/various_payment/card.php - - message: "#^Variable \\$ref might not be defined\\.$#" + message: '#^Variable \$accountline might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/card.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Variable \$ref might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/compta/bank/various_payment/card.php + + - + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/compta/bank/various_payment/document.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/document.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/document.php - - message: "#^Variable \\$morehtmlright might not be defined\\.$#" + message: '#^Variable \$morehtmlright might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/document.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/compta/bank/various_payment/info.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/info.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/info.php - - message: "#^Variable \\$morehtmlright might not be defined\\.$#" + message: '#^Variable \$morehtmlright might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/bank/various_payment/info.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Variable \\$accountingaccount might not be defined\\.$#" + message: '#^Variable \$accountingaccount might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Variable \\$accountingjournal might not be defined\\.$#" + message: '#^Variable \$accountingjournal might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Variable \\$accountstatic might not be defined\\.$#" + message: '#^Variable \$accountstatic might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Variable \\$bankline might not be defined\\.$#" + message: '#^Variable \$bankline might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Variable \\$variousstatic might not be defined\\.$#" + message: '#^Variable \$variousstatic might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/compta/bank/various_payment/list.php - - message: "#^Elseif condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''card'' and ''card'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/compta/cashcontrol/cashcontrol_card.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 3 path: ../../htdocs/compta/cashcontrol/cashcontrol_card.php - - message: "#^Variable \\$posmodule might not be defined\\.$#" + message: '#^Variable \$posmodule might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/cashcontrol/cashcontrol_card.php - - message: "#^Variable \\$terminaltouse might not be defined\\.$#" + message: '#^Variable \$terminaltouse might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/cashcontrol/cashcontrol_card.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/cashcontrol/cashcontrol_list.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(CashControl\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/cashcontrol/class/cashcontrol.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(CashControl\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/cashcontrol/class/cashcontrol.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(CashControl\) and ''posmodule'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/cashcontrol/class/cashcontrol.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(CashControl\) and ''year_close'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/cashcontrol/class/cashcontrol.class.php + + - + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/cashcontrol/report.php - - message: "#^If condition is always true\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/compta/cashcontrol/report.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/compta/charges/index.php - - message: "#^Variable \\$addu might not be defined\\.$#" + message: '#^Variable \$addu might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/clients.php - - message: "#^Variable \\$note might not be defined\\.$#" + message: '#^Variable \$note might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/clients.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/clients.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/clients.php - - message: "#^Variable \\$stcomm might not be defined\\.$#" + message: '#^Variable \$stcomm might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/clients.php - - message: "#^Variable \\$fileurl_avg might not be defined\\.$#" + message: '#^Variable \$fileurl_avg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/deplacement/stats/index.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/deplacement/stats/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/agenda-rec.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/agenda.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/compta/facture/card-rec.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 1 + path: ../../htdocs/compta/facture/card-rec.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/compta/facture/card-rec.php - - message: "#^Comparison operation \"\\<\" between '' and 0 is always true\\.$#" + message: '#^Comparison operation "\<" between '''' and 0 is always true\.$#' + identifier: smaller.alwaysTrue count: 2 path: ../../htdocs/compta/facture/card.php - - message: "#^If condition is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Loose comparison using \=\= between '''' and ''HT'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Loose comparison using \=\= between '''' and ''TTC'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/compta/facture/card.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: ../../htdocs/compta/facture/card.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/compta/facture/card.php - - message: "#^Parameter \\#12 \\$localtaxes_array of function calcul_price_total expects array\\{string, int\\|string, string, int\\|string, string, string\\}\\|array\\{string, int\\|string, string, string\\}, array\\{\\} given\\.$#" + message: '#^Parameter \#12 \$localtaxes_array of function calcul_price_total expects array\{string, int\|string, string, int\|string, string, string\}\|array\{string, int\|string, string, string\}, array\{\} given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/compta/facture/card.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 2 path: ../../htdocs/compta/facture/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Variable \\$classname might not be defined\\.$#" + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/facture/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 10 path: ../../htdocs/compta/facture/card.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/card.php - - message: "#^Method Invoices\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:addPaymentDistributed\\(\\) has parameter \\$arrayofamounts with no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:addPaymentDistributed\(\) has parameter \$arrayofamounts with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:getPayments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:getPayments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:postContact\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:postContact\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:putLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Method Invoices\\:\\:putPayment\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Invoices\:\:putLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Method Invoices\:\:putPayment\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/compta/facture/class/api_invoices.class.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 5 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Property Invoices\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Invoices\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/compta/facture/class/api_invoices.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Parameter \\#1 \\$qty of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#1 \$qty of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Parameter \\#1 \\$vatrate of function getLocalTaxesFromRate expects int\\|string, float given\\.$#" + message: '#^Parameter \#1 \$vatrate of function getLocalTaxesFromRate expects int\|string, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Parameter \\#17 \\$fk_unit of method FactureRec\\:\\:addline\\(\\) expects string\\|null, int\\|null given\\.$#" + message: '#^Parameter \#17 \$fk_unit of method FactureRec\:\:addline\(\) expects string\|null, int\|null given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Parameter \\#3 \\$remise_percent_ligne of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Property CommonObject\\:\\:\\$array_options \\(array\\\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$array_options \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Property FactureRec\\:\\:\\$titre \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureRec\:\:\$titre \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 1 path: ../../htdocs/compta/facture/class/facture-rec.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Facture\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Facture\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Facture\) and ''date'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Facture\) and ''total_ht'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Parameter \\#1 \\$qty of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#1 \$qty of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Parameter \\#12 \\$localtaxes_array of function calcul_price_total expects array\\{string, int\\|string, string, int\\|string, string, string\\}\\|array\\{string, int\\|string, string, string\\}, array\\{\\} given\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Parameter \\#2 \\$alreadypaid of method CommonInvoice\\:\\:getLibStatut\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#12 \$localtaxes_array of function calcul_price_total expects array\{string, int\|string, string, int\|string, string, string\}\|array\{string, int\|string, string, string\}, array\{\} given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Parameter \\#4 \\$txtva of method Facture\\:\\:addline\\(\\) expects float, string given\\.$#" - count: 1 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" - count: 1 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" - count: 1 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonInvoice\\:\\:\\$close_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$close_note \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonInvoice\\:\\:\\$cond_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#2 \$alreadypaid of method CommonInvoice\:\:getLibStatut\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$mode_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Parameter \#4 \$txtva of method Facture\:\:addline\(\) expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$subtype \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonInvoice\\:\\:\\$totalcreditnotes \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonInvoice\\:\\:\\$totaldeposits \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonInvoice\\:\\:\\$totalpaid \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonInvoice\\:\\:\\$type \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$close_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$close_note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$cond_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$mode_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$subtype \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$totalcreditnotes \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$totaldeposits \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$totalpaid \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/compta/facture/class/facture.class.php + + - + message: '#^Property CommonObject\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$fk_facture_source \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$fk_facture_source \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$paye \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$paye \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$ref_client \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$ref_client \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$retained_warranty \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$retained_warranty \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$retained_warranty_fk_cond_reglement \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$retained_warranty_fk_cond_reglement \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$revenuestamp \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$revenuestamp \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$total_ht \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$total_ht \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$total_localtax1 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$total_localtax1 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$total_localtax2 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$total_localtax2 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$total_ttc \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$total_ttc \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Property Facture\\:\\:\\$total_tva \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Facture\:\:\$total_tva \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 3 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 2 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/facture/class/facture.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/compta/facture/class/factureligne.class.php - - message: "#^Property FactureLigne\\:\\:\\$situation_percent \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureLigne\:\:\$situation_percent \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/facture/class/factureligne.class.php - - message: "#^Property PaymentTerm\\:\\:\\$active \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$active \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$decalage \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$decalage \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$libelle \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$libelle \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$libelle_facture \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$libelle_facture \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$nbjour \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$nbjour \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$sortorder \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$sortorder \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^Property PaymentTerm\\:\\:\\$type_cdr \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentTerm\:\:\$type_cdr \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/facture/class/paymentterm.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/compta/facture/invoicetemplate_list.php - - message: "#^If condition is always false\\.$#" - count: 4 - path: ../../htdocs/compta/facture/list.php - - - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/compta/facture/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/compta/facture/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/compta/facture/list.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 2 + path: ../../htdocs/compta/facture/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/facture/list.php - - message: "#^Variable \\$numprlv might not be defined\\.$#" + message: '#^Variable \$numprlv might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/messaging.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/note-rec.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/note.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/facture/prelevement.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/facture/prelevement.php - - message: "#^Variable \\$isdraft might not be defined\\.$#" + message: '#^Variable \$isdraft might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/facture/prelevement.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/facture/prelevement.php - - message: "#^Variable \\$cat_label might not be defined\\.$#" + message: '#^Variable \$cat_label might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/stats/index.php - - message: "#^Variable \\$cat_type might not be defined\\.$#" + message: '#^Variable \$cat_type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/stats/index.php - - message: "#^Variable \\$fileurl_avg might not be defined\\.$#" + message: '#^Variable \$fileurl_avg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/stats/index.php - - message: "#^Variable \\$fileurlamount might not be defined\\.$#" + message: '#^Variable \$fileurlamount might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/stats/index.php - - message: "#^Variable \\$fileurlnb might not be defined\\.$#" + message: '#^Variable \$fileurlnb might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/stats/index.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/stats/index.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/compta/facture/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/facture/tpl/linkedobjectblockForRec.tpl.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/index.php - - message: "#^Variable \\$total_ht might not be defined\\.$#" + message: '#^Variable \$total_ht might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/index.php - - message: "#^Variable \\$total_ttc might not be defined\\.$#" + message: '#^Variable \$total_ttc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/index.php - - message: "#^Variable \\$tabcompany might not be defined\\.$#" + message: '#^Variable \$tabcompany might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tabfac might not be defined\\.$#" + message: '#^Variable \$tabfac might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tabht might not be defined\\.$#" + message: '#^Variable \$tabht might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tablocaltax1 might not be defined\\.$#" + message: '#^Variable \$tablocaltax1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tablocaltax2 might not be defined\\.$#" + message: '#^Variable \$tablocaltax2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tabttc might not be defined\\.$#" + message: '#^Variable \$tabttc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tabtva might not be defined\\.$#" + message: '#^Variable \$tabtva might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/purchasesjournal.php - - message: "#^Variable \\$tabcompany might not be defined\\.$#" + message: '#^Variable \$tabcompany might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$tabfac might not be defined\\.$#" + message: '#^Variable \$tabfac might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$tabht might not be defined\\.$#" + message: '#^Variable \$tabht might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$tablocaltax1 might not be defined\\.$#" + message: '#^Variable \$tablocaltax1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$tablocaltax2 might not be defined\\.$#" + message: '#^Variable \$tablocaltax2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$tabttc might not be defined\\.$#" + message: '#^Variable \$tabttc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$tabtva might not be defined\\.$#" + message: '#^Variable \$tabtva might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/journal/sellsjournal.php - - message: "#^Variable \\$accountline might not be defined\\.$#" + message: '#^Variable \$accountline might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/card.php - - message: "#^Variable \\$morehtmlref might not be defined\\.$#" + message: '#^Variable \$morehtmlref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/card.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Localtax\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/localtax/class/localtax.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Localtax\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/localtax/class/localtax.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Localtax\) and ''datep'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/localtax/class/localtax.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Localtax\) and ''datev'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/localtax/class/localtax.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Localtax\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/localtax/class/localtax.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/compta/localtax/class/localtax.class.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$find might not be defined\\.$#" + message: '#^Variable \$find might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$period might not be defined\\.$#" + message: '#^Variable \$period might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$q might not be defined\\.$#" + message: '#^Variable \$q might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$replace might not be defined\\.$#" + message: '#^Variable \$replace might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$x_coll_sum might not be defined\\.$#" + message: '#^Variable \$x_coll_sum might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$x_paye_sum might not be defined\\.$#" + message: '#^Variable \$x_paye_sum might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/clients.php - - message: "#^Variable \\$arrayofselected might not be defined\\.$#" + message: '#^Variable \$arrayofselected might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/list.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/localtax/list.php - - message: "#^Comparison operation \"\\<\" between 0 and 4 is always true\\.$#" + message: '#^Call to function is_array\(\) with list\\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/localtax/quadri_detail.php - - message: "#^Comparison operation \"\\>\" between 0 and 1 is always false\\.$#" + message: '#^Comparison operation "\<" between 0 and 4 is always true\.$#' + identifier: smaller.alwaysTrue count: 1 path: ../../htdocs/compta/localtax/quadri_detail.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" + message: '#^Comparison operation "\>" between 0 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/compta/localtax/quadri_detail.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/localtax/quadri_detail.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$multicurrency_creditnotes might not be defined\\.$#" + message: '#^Variable \$multicurrency_creditnotes might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$multicurrency_deposits might not be defined\\.$#" + message: '#^Variable \$multicurrency_deposits might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$multicurrency_payment might not be defined\\.$#" + message: '#^Variable \$multicurrency_payment might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$multicurrency_remaintopay might not be defined\\.$#" + message: '#^Variable \$multicurrency_remaintopay might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$paiement_id might not be defined\\.$#" + message: '#^Variable \$paiement_id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$sign might not be defined\\.$#" + message: '#^Variable \$sign might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$tootltiponmulticurrencyfullamount might not be defined\\.$#" + message: '#^Variable \$tootltiponmulticurrencyfullamount might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement.php - - message: "#^Variable \\$marginInfo might not be defined\\.$#" + message: '#^Variable \$marginInfo might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement/card.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/paiement/card.php - - message: "#^Variable \\$site_account_payment might not be defined\\.$#" + message: '#^Variable \$site_account_payment might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/paiement/card.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/paiement/cheque/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/compta/paiement/cheque/card.php - - message: "#^Variable \\$paiement might not be defined\\.$#" + message: '#^Variable \$paiement might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/paiement/cheque/card.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(RemiseCheque\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(RemiseCheque\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(RemiseCheque\) and ''account_id'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(RemiseCheque\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(RemiseCheque\) and ''date_bordereau'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(RemiseCheque\) and ''nbcheque'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/compta/paiement/cheque/class/remisecheque.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/paiement/cheque/list.php - - message: "#^Property RemiseCheque\\:\\:\\$account_id \\(int\\) does not accept string\\.$#" + message: '#^Property RemiseCheque\:\:\$account_id \(int\) does not accept string\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/compta/paiement/cheque/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/paiement/cheque/list.php - - message: "#^Variable \\$arrayofselected might not be defined\\.$#" + message: '#^Variable \$arrayofselected might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement/cheque/list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property CommonDict\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property CommonDict\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property Cpaiement\\:\\:\\$accountancy_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cpaiement\:\:\$accountancy_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property Cpaiement\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cpaiement\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property Cpaiement\\:\\:\\$libelle \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cpaiement\:\:\$libelle \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property Cpaiement\\:\\:\\$module \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cpaiement\:\:\$module \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Property Cpaiement\\:\\:\\$type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cpaiement\:\:\$type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/compta/paiement/class/cpaiement.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/compta/paiement/class/paiement.class.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/compta/paiement/class/paiement.class.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/paiement/document.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/paiement/list.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse count: 3 path: ../../htdocs/compta/paiement/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/paiement/list.php - - message: "#^Variable \\$arrayofselected might not be defined\\.$#" + message: '#^Variable \$arrayofselected might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/paiement/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/paiement/list.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/compta/paiement/rapport.php - - message: "#^Comparison operation \"\\>\" between 1 and 1 is always false\\.$#" + message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/compta/paiement_charge.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/paiement_charge.php - - message: "#^Variable \\$sumpaid might not be defined\\.$#" + message: '#^Variable \$sumpaid might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/paiement_charge.php - - message: "#^Comparison operation \"\\>\" between 1 and 1 is always false\\.$#" + message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/compta/paiement_vat.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/compta/paiement_vat.php - - message: "#^Variable \\$sumpaid might not be defined\\.$#" + message: '#^Variable \$sumpaid might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/paiement_vat.php - - message: "#^Variable \\$outputlangs might not be defined\\.$#" + message: '#^Variable \$outputlangs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/payment_vat/card.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/prelevement/card.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/prelevement/card.php - - message: "#^Variable \\$thirdparty might not be defined\\.$#" + message: '#^Variable \$thirdparty might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/prelevement/card.php - - message: "#^Variable \\$userSalary might not be defined\\.$#" + message: '#^Variable \$userSalary might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/prelevement/card.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(BonPrelevement\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(BonPrelevement\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(BonPrelevement\) and ''date_echeance'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Property BonPrelevement\\:\\:\\$amount \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(BonPrelevement\) and ''total'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Property BonPrelevement\\:\\:\\$date_trans \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Property BonPrelevement\\:\\:\\$factures has no type specified\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Property BonPrelevement\\:\\:\\$invoice_in_error has no type specified\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Property BonPrelevement\\:\\:\\$thirdparty_in_error has no type specified\\.$#" + message: '#^Property BonPrelevement\:\:\$amount \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^Property BonPrelevement\:\:\$date_trans \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php + + - + message: '#^Property BonPrelevement\:\:\$factures has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php + + - + message: '#^Property BonPrelevement\:\:\$invoice_in_error has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php + + - + message: '#^Property BonPrelevement\:\:\$thirdparty_in_error has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php + + - + message: '#^Right side of \|\| is always true\.$#' + identifier: booleanOr.rightAlwaysTrue count: 2 path: ../../htdocs/compta/prelevement/class/bonprelevement.class.php - - message: "#^Property LignePrelevement\\:\\:\\$labelStatus has no type specified\\.$#" + message: '#^Property LignePrelevement\:\:\$labelStatus has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/compta/prelevement/class/ligneprelevement.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/compta/prelevement/create.php - - message: "#^Variable \\$massaction might not be defined\\.$#" + message: '#^Variable \$massaction might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/prelevement/demandes.php - - message: "#^Variable \\$invoicetmpcustomer might not be defined\\.$#" + message: '#^Variable \$invoicetmpcustomer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/prelevement/factures.php - - message: "#^Variable \\$invoicetmpsupplier might not be defined\\.$#" + message: '#^Variable \$invoicetmpsupplier might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/prelevement/factures.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/prelevement/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/prelevement/orders_list.php - - message: "#^Variable \\$nbignored might not be defined\\.$#" + message: '#^Variable \$nbignored might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/prelevement/orders_list.php - - message: "#^Variable \\$nbok might not be defined\\.$#" + message: '#^Variable \$nbok might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/prelevement/orders_list.php - - message: "#^Variable \\$nbtotal might not be defined\\.$#" + message: '#^Variable \$nbtotal might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/prelevement/stats.php - - message: "#^Variable \\$total might not be defined\\.$#" + message: '#^Variable \$total might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/prelevement/stats.php - - message: "#^Offset 'checked' on array\\{label\\: 'Date', checked\\: 1\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''checked'' on array\{label\: ''Date'', checked\: 1\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/compta/recap-compta.php - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType count: 2 path: ../../htdocs/compta/recap-compta.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType + count: 2 + path: ../../htdocs/compta/recap-compta.php + + - + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/clientfourn.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/clientfourn.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/clientfourn.php - - message: "#^Variable \\$period might not be defined\\.$#" + message: '#^Variable \$period might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/clientfourn.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/clientfourn.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/index.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/index.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/index.php - - message: "#^Variable \\$period might not be defined\\.$#" + message: '#^Variable \$period might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/index.php - - message: "#^Variable \\$periodlink might not be defined\\.$#" + message: '#^Variable \$periodlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/index.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/compta/resultat/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array\\}\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$code might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/compta/resultat/result.php + + - + message: '#^Variable \$code might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$period might not be defined\\.$#" + message: '#^Variable \$period might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$sommes in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sommes in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^Variable \\$totCat in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$totCat in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/resultat/result.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/compta/sociales/card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/sociales/card.php - - message: "#^Variable \\$resteapayer might not be defined\\.$#" + message: '#^Variable \$resteapayer might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/sociales/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$accountancy_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$accountancy_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$active \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$active \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$deductible \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$deductible \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$fk_pays \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$fk_pays \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$libelle \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$libelle \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property Cchargesociales\\:\\:\\$module \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cchargesociales\:\:\$module \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/cchargesociales.class.php - - message: "#^Property ChargeSociales\\:\\:\\$paye \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(ChargeSociales\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/sociales/class/chargesociales.class.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(ChargeSociales\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/sociales/class/chargesociales.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ChargeSociales\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/sociales/class/chargesociales.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ChargeSociales\) and ''date_ech'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/sociales/class/chargesociales.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ChargeSociales\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/sociales/class/chargesociales.class.php + + - + message: '#^Property ChargeSociales\:\:\$paye \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/compta/sociales/class/chargesociales.class.php + + - + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$amount \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$datec has no type specified\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$datec has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$datep has no type specified\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$datep has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$fk_charge \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$fk_charge \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$fk_typepaiement \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$fk_typepaiement \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Property PaymentSocialContribution\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSocialContribution\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/sociales/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/sociales/list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/compta/sociales/payments.php - - message: "#^If condition is always false\\.$#" - count: 4 + message: '#^Strict comparison using \!\=\= between mixed and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/compta/sociales/payments.php + + - + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/compta/stats/cabyprodserv.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$searchCategorySocieteList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategorySocieteList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyprodserv.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/cabyuser.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyuser.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyuser.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyuser.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyuser.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/cabyuser.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/casoc.php - - message: "#^Variable \\$builddate might not be defined\\.$#" + message: '#^Variable \$builddate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/casoc.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/casoc.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/casoc.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/casoc.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/compta/stats/casoc.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/index.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/index.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/index.php - - message: "#^Variable \\$periodlink might not be defined\\.$#" + message: '#^Variable \$periodlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/index.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/supplier_turnover.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover.php - - message: "#^Variable \\$periodlink might not be defined\\.$#" + message: '#^Variable \$periodlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$q might not be defined\\.$#" + message: '#^Variable \$q might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_prodserv.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_thirdparty.php - - message: "#^Variable \\$calcmode might not be defined\\.$#" + message: '#^Variable \$calcmode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_thirdparty.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_thirdparty.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_thirdparty.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/stats/supplier_turnover_by_thirdparty.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/compta/stats/supplier_turnover_by_thirdparty.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/compta/tva/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/compta/tva/card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/tva/card.php - - message: "#^Variable \\$accountline might not be defined\\.$#" + message: '#^Variable \$accountline might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/tva/card.php - - message: "#^Variable \\$resteapayer might not be defined\\.$#" + message: '#^Variable \$resteapayer might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/tva/card.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$amount \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$fk_tva \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$fk_tva \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$fk_typepaiement \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$fk_typepaiement \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$num_paiement \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$num_paiement \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^Property PaymentVAT\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentVAT\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Tva\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/tva/class/tva.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Tva\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/tva/class/tva.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Tva\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/tva/class/tva.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Tva\) and ''datev'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/tva/class/tva.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Tva\) and ''type_payment'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/compta/tva/class/tva.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/compta/tva/class/tva.class.php - - message: "#^Comparison operation \"\\<\" between 0 and 4 is always true\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/tva/clients.php - - message: "#^Comparison operation \"\\>\" between 0 and 1 is always false\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/tva/clients.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" + message: '#^Comparison operation "\<" between 0 and 4 is always true\.$#' + identifier: smaller.alwaysTrue count: 1 path: ../../htdocs/compta/tva/clients.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$date_end might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/compta/tva/clients.php + + - + message: '#^Variable \$date_end might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$date_start might not be defined\\.$#" + message: '#^Variable \$date_start might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$date_start_year might not be defined\\.$#" + message: '#^Variable \$date_start_year might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$description might not be defined\\.$#" + message: '#^Variable \$description might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$my_coll_thirdpartyid might not be defined\\.$#" + message: '#^Variable \$my_coll_thirdpartyid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$year_current might not be defined\\.$#" + message: '#^Variable \$year_current might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/tva/clients.php - - message: "#^Variable \\$date_end might not be defined\\.$#" + message: '#^Strict comparison using \=\=\= between true and true will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/compta/tva/index.php + + - + message: '#^Variable \$date_end might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/tva/index.php - - message: "#^Variable \\$date_start might not be defined\\.$#" + message: '#^Variable \$date_start might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/tva/index.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/compta/tva/list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/compta/tva/payments.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Strict comparison using \!\=\= between mixed and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/compta/tva/payments.php + + - + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/compta/tva/payments.php - - message: "#^Comparison operation \"\\<\" between 0 and 4 is always true\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Comparison operation \"\\>\" between 0 and 1 is always false\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" + message: '#^Comparison operation "\<" between 0 and 4 is always true\.$#' + identifier: smaller.alwaysTrue count: 1 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_end might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/compta/tva/quadri_detail.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/compta/tva/quadri_detail.php + + - + message: '#^Variable \$date_end might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_end_day might not be defined\\.$#" + message: '#^Variable \$date_end_day might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_end_month might not be defined\\.$#" + message: '#^Variable \$date_end_month might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_end_year might not be defined\\.$#" + message: '#^Variable \$date_end_year might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_start might not be defined\\.$#" + message: '#^Variable \$date_start might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_start_day might not be defined\\.$#" + message: '#^Variable \$date_start_day might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_start_month might not be defined\\.$#" + message: '#^Variable \$date_start_month might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$date_start_year might not be defined\\.$#" + message: '#^Variable \$date_start_year might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Variable \\$year_current might not be defined\\.$#" + message: '#^Variable \$year_current might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/compta/tva/quadri_detail.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/contact/ajax/contact.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contact/ajax/contact.php - - message: "#^Variable \\$canvas might not be defined\\.$#" - count: 1 - path: ../../htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php - - - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject count: 24 path: ../../htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php + + - + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined + count: 24 + path: ../../htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php + + - + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject + count: 31 + path: ../../htdocs/contact/canvas/default/tpl/contactcard_edit.tpl.php + + - + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contact/canvas/default/tpl/contactcard_edit.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 29 path: ../../htdocs/contact/canvas/default/tpl/contactcard_edit.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject + count: 34 + path: ../../htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php + + - + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 32 path: ../../htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/contact/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/contact/card.php - - message: "#^Property Societe\\:\\:\\$typent_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$typent_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 6 path: ../../htdocs/contact/card.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 4 path: ../../htdocs/contact/card.php - - message: "#^Variable \\$objsoc in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$objsoc in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contact/card.php - - message: "#^Variable \\$triggermodname in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$triggermodname in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contact/card.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Contact\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Contact\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Contact\) and ''photo'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Contact\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Contact is not subtype of native type \$this\(Contact\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^PHPDoc tag @var with type Societe is not subtype of native type \$this\(Contact\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^PHPDoc tag @var with type User is not subtype of native type \$this\(Contact\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/contact/class/contact.class.php + + - + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Property Contact\\:\\:\\$email \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contact\:\:\$email \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Property Contact\\:\\:\\$roles \\(array\\\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contact\:\:\$roles \(array\\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Property Contact\\:\\:\\$stcomm_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contact\:\:\$stcomm_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/contact/class/contact.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/contact/class/contact.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/contact/consumption.php - - message: "#^Variable \\$documentstaticline might not be defined\\.$#" + message: '#^Variable \$documentstaticline might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contact/consumption.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contact/consumption.php - - message: "#^If condition is always false\\.$#" - count: 6 - path: ../../htdocs/contact/list.php - - - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/contact/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 3 path: ../../htdocs/contact/list.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 3 + path: ../../htdocs/contact/list.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 3 + path: ../../htdocs/contact/list.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/contact/list.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/contact/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contact/list.php - - message: "#^Variable \\$ref in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$ref in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contact/list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/contact/perso.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/contrat/agenda.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contrat/agenda.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/contrat/card.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/contrat/card.php - - message: "#^Variable \\$canchangeproduct in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$canchangeproduct in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contrat/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/contrat/card.php - - message: "#^Variable \\$senderissupplier in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$senderissupplier in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contrat/card.php - - message: "#^Variable \\$tmpcode might not be defined\\.$#" + message: '#^Variable \$tmpcode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/card.php - - message: "#^Method Contracts\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:close\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:close\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:putLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:putLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Method Contracts\\:\\:validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Contracts\:\:validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Property Contracts\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Contracts\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/contrat/class/api_contracts.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Contrat\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contrat/class/contrat.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Contrat\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contrat/class/contrat.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Contrat\) and ''date_contrat'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/contrat/class/contrat.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 6 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Parameter \\#1 \\$qty of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#1 \$qty of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$fk_commercial_signature \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$fk_commercial_signature \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$fk_commercial_suivi \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$fk_commercial_suivi \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$ref_customer \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$ref_customer \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$ref_supplier \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$ref_supplier \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Property Contrat\\:\\:\\$statut \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contrat\:\:\$statut \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/class/contrat.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/contrat/class/contratligne.class.php - - message: "#^Offset 'label' on array\\{label\\: non\\-falsy\\-string\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''label'' on array\{label\: non\-falsy\-string\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/contrat/class/contratligne.class.php - - message: "#^Parameter \\#4 \\$txtva of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#4 \$txtva of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/contrat/class/contratligne.class.php - - message: "#^Variable \\$label in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$label in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contrat/class/contratligne.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/contrat/contact.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/contrat/document.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/index.php - - message: "#^If condition is always false\\.$#" - count: 2 - path: ../../htdocs/contrat/list.php - - - - message: "#^Parameter \\#2 \\$array of static method Form\\:\\:multiselectarray\\(\\) expects array\\, non\\-empty\\-array\\\\|non\\-empty\\-string given\\.$#" + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/contrat/list.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/contrat/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Parameter \#2 \$array of static method Form\:\:multiselectarray\(\) expects array\, non\-empty\-array\\|non\-empty\-string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/contrat/list.php - - message: "#^Variable \\$searchCategoryProductList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/contrat/list.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/contrat/list.php + + - + message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/contrat/list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/contrat/messaging.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/contrat/messaging.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/contrat/note.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/contrat/services_list.php - - message: "#^Result of && is always false\\.$#" - count: 5 - path: ../../htdocs/contrat/services_list.php - - - - message: "#^Right side of && is always false\\.$#" + message: '#^Loose comparison using \=\= between '''' and \-1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/contrat/services_list.php - - message: "#^Variable \\$filter_opcloture in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 6 + path: ../../htdocs/contrat/services_list.php + + - + message: '#^Variable \$filter_opcloture in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/contrat/services_list.php - - message: "#^Property Ticket\\:\\:\\$progress \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$progress \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/contrat/ticket.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/contrat/tpl/linkedobjectblock.tpl.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/actions_addupdatedelete.inc.php - - message: "#^Result of && is always false\\.$#" + message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/core/actions_addupdatedelete.inc.php - - message: "#^Variable \\$confirm might not be defined\\.$#" - count: 6 - path: ../../htdocs/core/actions_addupdatedelete.inc.php - - - - message: "#^Variable \\$id might not be defined\\.$#" - count: 4 - path: ../../htdocs/core/actions_addupdatedelete.inc.php - - - - message: "#^Variable \\$lineid might not be defined\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/core/actions_addupdatedelete.inc.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$confirm might not be defined\.$#' + identifier: variable.undefined + count: 6 + path: ../../htdocs/core/actions_addupdatedelete.inc.php + + - + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/actions_addupdatedelete.inc.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$lineid might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/core/actions_addupdatedelete.inc.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 4 + path: ../../htdocs/core/actions_addupdatedelete.inc.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/actions_builddoc.inc.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_comments.inc.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/actions_comments.inc.php - - message: "#^Variable \\$idcomment might not be defined\\.$#" + message: '#^Variable \$idcomment might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_comments.inc.php - - message: "#^Variable \\$withproject might not be defined\\.$#" + message: '#^Variable \$withproject might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/actions_comments.inc.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_dellink.inc.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_fetchobject.inc.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/actions_fetchobject.inc.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../htdocs/core/actions_fetchobject.inc.php - - message: "#^Variable \\$hidedesc might not be defined\\.$#" + message: '#^Variable \$hidedesc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_lineupdown.inc.php - - message: "#^Variable \\$hidedetails might not be defined\\.$#" + message: '#^Variable \$hidedetails might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_lineupdown.inc.php - - message: "#^Variable \\$hideref might not be defined\\.$#" + message: '#^Variable \$hideref might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_lineupdown.inc.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/actions_lineupdown.inc.php - - message: "#^Variable \\$permissiontoedit might not be defined\\.$#" + message: '#^Variable \$permissiontoedit might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_lineupdown.inc.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/actions_linkedfiles.inc.php + + - + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/actions_linkedfiles.inc.php - - message: "#^Comparison operation \"\\>\" between 0 and 1 is always false\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/actions_massactions.inc.php + + - + message: '#^Call to function is_object\(\) with Adherent\|ConferenceOrBoothAttendee\|Contact\|Societe\|User will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/actions_massactions.inc.php + + - + message: '#^Comparison operation "\>" between 0 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 2 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Elseif condition is always false\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 2 + path: ../../htdocs/core/actions_massactions.inc.php + + - + message: '#^Expression "\<\<\<''EOPHAN''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/core/actions_massactions.inc.php + + - + message: '#^Parameter \#1 \$array of function sort contains unresolvable type\.$#' + identifier: argument.unresolvableType + count: 1 + path: ../../htdocs/core/actions_massactions.inc.php + + - + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 14 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$from might not be defined\\.$#" + message: '#^Variable \$from might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$holiday might not be defined\\.$#" + message: '#^Variable \$holiday might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$listofobjectthirdparties in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$listofobjectthirdparties in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$month might not be defined\\.$#" + message: '#^Variable \$month might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$obj might not be defined\\.$#" + message: '#^Variable \$obj might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$pagecount might not be defined\\.$#" + message: '#^Variable \$pagecount might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$permissiontoadd might not be defined\\.$#" + message: '#^Variable \$permissiontoadd might not be defined\.$#' + identifier: variable.undefined count: 10 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$search_status might not be defined\\.$#" + message: '#^Variable \$search_status might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$triggername in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$triggername in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$year might not be defined\\.$#" + message: '#^Variable \$year might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/actions_massactions.inc.php - - message: "#^Variable \\$classfile might not be defined\\.$#" + message: '#^Variable \$classfile might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_printing.inc.php - - message: "#^Parameter \\#1 \\$filenb of function dol_remove_file_process expects int, array\\|string given\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$contact might not be defined\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/actions_sendmails.inc.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/actions_sendmails.inc.php + + - + message: '#^Parameter \#1 \$filenb of function dol_remove_file_process expects int, array\\|string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/actions_sendmails.inc.php + + - + message: '#^Variable \$contact might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$from might not be defined\\.$#" + message: '#^Variable \$from might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$paramname2 might not be defined\\.$#" + message: '#^Variable \$paramname2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$sendtosocid might not be defined\\.$#" + message: '#^Variable \$sendtosocid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$thirdparty might not be defined\\.$#" + message: '#^Variable \$thirdparty might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/actions_sendmails.inc.php - - message: "#^Variable \\$conf might not be defined\\.$#" - count: 2 - path: ../../htdocs/core/actions_setmoduleoptions.inc.php - - - - message: "#^Variable \\$db might not be defined\\.$#" - count: 8 - path: ../../htdocs/core/actions_setmoduleoptions.inc.php - - - - message: "#^Variable \\$langs might not be defined\\.$#" - count: 7 - path: ../../htdocs/core/actions_setmoduleoptions.inc.php - - - - message: "#^Variable \\$modulepart might not be defined\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/actions_setmoduleoptions.inc.php - - message: "#^Variable \\$action might not be defined\\.$#" - count: 2 - path: ../../htdocs/core/actions_setnotes.inc.php + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/actions_setmoduleoptions.inc.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$modulepart might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/actions_setmoduleoptions.inc.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/actions_setnotes.inc.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/actions_setnotes.inc.php - - message: "#^Variable \\$id might not be defined\\.$#" - count: 2 - path: ../../htdocs/core/actions_setnotes.inc.php - - - - message: "#^Variable \\$langs might not be defined\\.$#" - count: 1 - path: ../../htdocs/core/actions_setnotes.inc.php - - - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" - count: 1 - path: ../../htdocs/core/actions_setnotes.inc.php - - - - message: "#^Variable \\$object might not be defined\\.$#" - count: 20 - path: ../../htdocs/core/actions_setnotes.inc.php - - - - message: "#^Variable \\$result might not be defined\\.$#" - count: 1 - path: ../../htdocs/core/actions_setnotes.inc.php - - - - message: "#^If condition is always true\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$action might not be defined\\.$#" - count: 2 - path: ../../htdocs/core/ajax/ajaxdirpreview.php - - - - message: "#^Variable \\$dolibarr_main_data_root might not be defined\\.$#" + message: '#^Loose comparison using \=\= between ''directory'' and ''directory'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$module might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/core/ajax/ajaxdirpreview.php + + - + message: '#^Variable \$dolibarr_main_data_root might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/ajax/ajaxdirpreview.php + + - + message: '#^Variable \$module might not be defined\.$#' + identifier: variable.undefined count: 34 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$section might not be defined\\.$#" + message: '#^Variable \$section might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$showonrightsize might not be defined\\.$#" + message: '#^Variable \$showonrightsize might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$sortfield might not be defined\\.$#" + message: '#^Variable \$sortfield might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$sortorder might not be defined\\.$#" + message: '#^Variable \$sortorder might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/ajax/ajaxdirpreview.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Property User\:\:\$lastname \(string\) does not accept int\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/ajax/ajaxdirtree.php - - message: "#^Variable \\$dolibarr_main_data_root might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/ajax/ajaxdirtree.php + + - + message: '#^Variable \$dolibarr_main_data_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/ajax/ajaxdirtree.php - - message: "#^Variable \\$fullpathpreopened might not be defined\\.$#" + message: '#^Variable \$fullpathpreopened might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/ajax/ajaxdirtree.php - - message: "#^Variable \\$module might not be defined\\.$#" + message: '#^Variable \$module might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/ajax/ajaxdirtree.php - - message: "#^Variable \\$original_file might not be defined\\.$#" + message: '#^Variable \$original_file might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/ajax/ajaxdirtree.php - - message: "#^Variable \\$section might not be defined\\.$#" + message: '#^Variable \$section might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/ajax/ajaxdirtree.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/ajax/ajaxtooltip.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/core/ajax/editinline.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/ajax/locationincoterms.php - - message: "#^Variable \\$tva_tx in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/ajax/mailtemplate.php + + - + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/ajax/onlineSign.php + + - + message: '#^Variable \$tva_tx in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/core/ajax/price.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/ajax/selectobject.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Parameter \#2 \$replace of function str_replace expects array\\|string, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/ajax/selectobject.php - - message: "#^Variable \\$objecttmp might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/ajax/selectobject.php + + - + message: '#^Variable \$objecttmp might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/ajax/selectobject.php - - message: "#^Constructor of class box_accountancy_last_manual_entries has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_accountancy_last_manual_entries has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_accountancy_last_manual_entries.php - - message: "#^Constructor of class box_accountancy_suspense_account has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_accountancy_suspense_account has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_accountancy_suspense_account.php - - message: "#^Constructor of class box_actions has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_actions has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_actions.php - - message: "#^Variable \\$nblines might not be defined\\.$#" + message: '#^Variable \$nblines might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/boxes/box_actions.php - - message: "#^Constructor of class box_actions_future has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_actions_future has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_actions_future.php - - message: "#^Variable \\$nblines might not be defined\\.$#" + message: '#^Variable \$nblines might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/boxes/box_actions_future.php - - message: "#^Constructor of class box_activity has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_activity has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_activity.php - - message: "#^Constructor of class box_birthdays has an unused parameter \\$param\\.$#" + message: '#^Call to function is_array\(\) with array\, mixed\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/boxes/box_birthdays.php - - message: "#^Constructor of class box_birthdays_members has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_birthdays has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter + count: 1 + path: ../../htdocs/core/boxes/box_birthdays.php + + - + message: '#^Call to function is_array\(\) with array\, mixed\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/boxes/box_birthdays_members.php - - message: "#^Constructor of class box_boms has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_birthdays_members has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter + count: 1 + path: ../../htdocs/core/boxes/box_birthdays_members.php + + - + message: '#^Constructor of class box_boms has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_boms.php - - message: "#^Constructor of class box_bookmarks has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_bookmarks has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_bookmarks.php - - message: "#^Constructor of class box_clients has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_clients has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_clients.php - - message: "#^Comparison operation \"\\<\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\<" between 0 and 0 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: ../../htdocs/core/boxes/box_commandes.php - - message: "#^Constructor of class box_commandes has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_commandes has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_commandes.php - - message: "#^Constructor of class box_comptes has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_comptes has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_comptes.php - - message: "#^Constructor of class box_contacts has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_contacts has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_contacts.php - - message: "#^Constructor of class box_contracts has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_contracts has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_contracts.php - - message: "#^Constructor of class box_customers_outstanding_bill_reached has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_customers_outstanding_bill_reached has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_customers_outstanding_bill_reached.php - - message: "#^Constructor of class box_dolibarr_state_board has an unused parameter \\$param\\.$#" + message: '#^Call to function is_array\(\) with array\<''contacts''\|''contracts''\|''customers''\|''dolresource''\|''donations''\|''expensereports''\|''holidays''\|''interventions''\|''invoices''\|''members''\|''orders''\|''products''\|''projects''\|''proposals''\|''prospects''\|''services''\|''supplier_invoices''\|''supplier_orders''\|''supplier_proposals''\|''suppliers''\|''ticket''\|''users'', non\-falsy\-string\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/boxes/box_dolibarr_state_board.php - - message: "#^Property box_external_rss\\:\\:\\$paramdef has no type specified\\.$#" + message: '#^Call to function method_exists\(\) with Adherent\|Client\|Commande\|CommandeFournisseur\|Contact\|Contrat\|Dolresource\|Don\|ExpenseReport\|Facture\|FactureFournisseur\|Fichinter\|Fournisseur\|Holiday\|Product\|Project\|Propal\|SupplierProposal\|Ticket\|User and ''loadStateBoard'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/boxes/box_dolibarr_state_board.php + + - + message: '#^Constructor of class box_dolibarr_state_board has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter + count: 1 + path: ../../htdocs/core/boxes/box_dolibarr_state_board.php + + - + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="nohover"'', td\: ''class\=…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/boxes/box_dolibarr_state_board.php + + - + message: '#^Property box_external_rss\:\:\$paramdef has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/boxes/box_external_rss.php - - message: "#^Constructor of class box_factures has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_factures has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_factures.php - - message: "#^Constructor of class box_factures_fourn has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_factures_fourn has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_factures_fourn.php - - message: "#^Constructor of class box_factures_fourn_imp has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_factures_fourn_imp has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_factures_fourn_imp.php - - message: "#^Constructor of class box_factures_imp has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_factures_imp has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_factures_imp.php - - message: "#^Constructor of class box_ficheinter has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_ficheinter has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_ficheinter.php - - message: "#^Constructor of class box_fournisseurs has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_fournisseurs has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_fournisseurs.php - - message: "#^Constructor of class box_funnel_of_prospection has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_funnel_of_prospection has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_funnel_of_prospection.php - - message: "#^Constructor of class box_goodcustomers has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_goodcustomers has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_goodcustomers.php - - message: "#^Constructor of class box_graph_invoices_permonth has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_graph_invoices_permonth has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_invoices_permonth.php - - message: "#^Constructor of class box_graph_invoices_peryear has an unused parameter \\$param\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/boxes/box_graph_invoices_permonth.php + + - + message: '#^Constructor of class box_graph_invoices_peryear has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_invoices_peryear.php - - message: "#^If condition is always false\\.$#" + message: '#^Left side of \|\| is always true\.$#' + identifier: booleanOr.leftAlwaysTrue count: 1 path: ../../htdocs/core/boxes/box_graph_invoices_peryear.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Loose comparison using \=\= between ''customer'' and ''supplier'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/core/boxes/box_graph_invoices_peryear.php - - message: "#^Constructor of class box_graph_invoices_supplier_permonth has an unused parameter \\$param\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/boxes/box_graph_invoices_peryear.php + + - + message: '#^Constructor of class box_graph_invoices_supplier_permonth has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_invoices_supplier_permonth.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/boxes/box_graph_invoices_supplier_permonth.php - - message: "#^Constructor of class box_graph_nb_ticket_last_x_days has an unused parameter \\$param\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/boxes/box_graph_invoices_supplier_permonth.php + + - + message: '#^Constructor of class box_graph_nb_ticket_last_x_days has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_nb_ticket_last_x_days.php - - message: "#^Constructor of class box_graph_nb_tickets_type has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_graph_nb_tickets_type has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_nb_tickets_type.php - - message: "#^Constructor of class box_graph_new_vs_close_ticket has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_graph_new_vs_close_ticket has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_new_vs_close_ticket.php - - message: "#^Constructor of class box_graph_orders_permonth has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_graph_orders_permonth has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_orders_permonth.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \=\= between ''customer'' and ''supplier'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/core/boxes/box_graph_orders_permonth.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/boxes/box_graph_orders_permonth.php - - message: "#^Constructor of class box_graph_orders_supplier_permonth has an unused parameter \\$param\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/boxes/box_graph_orders_permonth.php + + - + message: '#^Constructor of class box_graph_orders_supplier_permonth has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_orders_supplier_permonth.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''supplier'' and ''supplier'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/core/boxes/box_graph_orders_supplier_permonth.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/boxes/box_graph_orders_supplier_permonth.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/boxes/box_graph_orders_supplier_permonth.php + + - + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 3 path: ../../htdocs/core/boxes/box_graph_product_distribution.php - - message: "#^Constructor of class box_graph_product_distribution has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_graph_product_distribution has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_product_distribution.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/boxes/box_graph_product_distribution.php - - message: "#^Variable \\$px1 might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/boxes/box_graph_product_distribution.php + + - + message: '#^Variable \$px1 might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/boxes/box_graph_product_distribution.php - - message: "#^Variable \\$px2 might not be defined\\.$#" + message: '#^Variable \$px2 might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/boxes/box_graph_product_distribution.php - - message: "#^Variable \\$px3 might not be defined\\.$#" + message: '#^Variable \$px3 might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/boxes/box_graph_product_distribution.php - - message: "#^Constructor of class box_graph_propales_permonth has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_graph_propales_permonth has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_propales_permonth.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Property ModeleBoxes\:\:\$info_box_contents \(array\, maxlength\?\: int\}\|int\|string\>\>\) does not accept non\-empty\-array\, maxlength\?\: int\}\|array\{tr\: ''class\="oddeven…'', td\: ''class\="nohover…'', textnoformat\: non\-falsy\-string\}\|int\|string\>\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/boxes/box_graph_propales_permonth.php - - message: "#^Constructor of class box_graph_ticket_by_severity has an unused parameter \\$param\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/boxes/box_graph_propales_permonth.php + + - + message: '#^Constructor of class box_graph_ticket_by_severity has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_graph_ticket_by_severity.php - - message: "#^Constructor of class box_last_knowledgerecord has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_last_knowledgerecord has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_last_knowledgerecord.php - - message: "#^Constructor of class box_last_modified_knowledgerecord has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_last_modified_knowledgerecord has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_last_modified_knowledgerecord.php - - message: "#^Constructor of class box_last_modified_ticket has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_last_modified_ticket has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_last_modified_ticket.php - - message: "#^Constructor of class box_last_ticket has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_last_ticket has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_last_ticket.php - - message: "#^Constructor of class box_lastlogin has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_lastlogin has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_lastlogin.php - - message: "#^Constructor of class box_members_by_tags has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_members_by_tags has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_members_by_tags.php - - message: "#^Constructor of class box_members_by_type has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_members_by_type has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_members_by_type.php - - message: "#^Constructor of class box_members_last_modified has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_members_last_modified has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_members_last_modified.php - - message: "#^Constructor of class box_members_last_subscriptions has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_members_last_subscriptions has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_members_last_subscriptions.php - - message: "#^Comparison operation \"\\>\\=\" between 0 and 8 is always false\\.$#" + message: '#^Comparison operation "\>\=" between 0 and 8 is always false\.$#' + identifier: greaterOrEqual.alwaysFalse count: 1 path: ../../htdocs/core/boxes/box_members_subscriptions_by_year.php - - message: "#^Constructor of class box_members_subscriptions_by_year has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_members_subscriptions_by_year has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_members_subscriptions_by_year.php - - message: "#^Constructor of class box_mos has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_mos has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_mos.php - - message: "#^Constructor of class box_produits has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_produits has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_produits.php - - message: "#^Constructor of class box_produits_alerte_stock has an unused parameter \\$param\\.$#" + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''product\|service''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/boxes/box_produits.php + + - + message: '#^Constructor of class box_produits_alerte_stock has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_produits_alerte_stock.php - - message: "#^Constructor of class box_project has an unused parameter \\$param\\.$#" + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: mixed, module\: ''product\|service…''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/boxes/box_produits_alerte_stock.php + + - + message: '#^Constructor of class box_project has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_project.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/boxes/box_project.php - - message: "#^Constructor of class box_project_opportunities has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_project_opportunities has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_project_opportunities.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/boxes/box_project_opportunities.php - - message: "#^Constructor of class box_propales has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_propales has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_propales.php - - message: "#^Constructor of class box_prospect has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_prospect has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_prospect.php - - message: "#^Constructor of class box_scheduled_jobs has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_scheduled_jobs has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_scheduled_jobs.php - - message: "#^Constructor of class box_services_contracts has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_services_contracts has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_services_contracts.php - - message: "#^Constructor of class box_services_expired has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_services_expired has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_services_expired.php - - message: "#^Constructor of class box_shipments has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_shipments has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_shipments.php - - message: "#^Constructor of class box_supplier_orders has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_supplier_orders has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_supplier_orders.php - - message: "#^Constructor of class box_supplier_orders_awaiting_reception has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_supplier_orders_awaiting_reception has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_supplier_orders_awaiting_reception.php - - message: "#^Constructor of class box_task has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_task has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_task.php - - message: "#^Constructor of class box_validated_projects has an unused parameter \\$param\\.$#" + message: '#^Constructor of class box_validated_projects has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/box_validated_projects.php - - message: "#^Comparison operation \"\\>\" between 0 and 1 is always false\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/boxes/modules_boxes.php - - message: "#^Constructor of class ModeleBoxes has an unused parameter \\$param\\.$#" + message: '#^Comparison operation "\>" between 0 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/core/boxes/modules_boxes.php - - message: "#^If condition is always false\\.$#" + message: '#^Constructor of class ModeleBoxes has an unused parameter \$param\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/boxes/modules_boxes.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 2 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/core/boxes/modules_boxes.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse + count: 1 + path: ../../htdocs/core/boxes/modules_boxes.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$addr_bcc \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Method CMailFile\:\:getValidAddress\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$addr_cc \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Method CMailFile\:\:getValidAddress\(\) has parameter \$encode with no type specified\.$#' + identifier: missingType.parameter count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$deliveryreceipt \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Method CMailFile\:\:getValidAddress\(\) has parameter \$maxnumberofemail with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: ../../htdocs/core/class/CMailFile.class.php + + - + message: '#^Property CMailFile\:\:\$addr_bcc \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/CMailFile.class.php + + - + message: '#^Property CMailFile\:\:\$addr_cc \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/CMailFile.class.php + + - + message: '#^Property CMailFile\:\:\$deliveryreceipt \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$eol has no type specified\\.$#" + message: '#^Property CMailFile\:\:\$eol has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$eol2 has no type specified\\.$#" + message: '#^Property CMailFile\:\:\$eol2 has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$errors_to \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CMailFile\:\:\$errors_to \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$image_types has no type specified\\.$#" + message: '#^Property CMailFile\:\:\$image_types has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property CMailFile\\:\\:\\$reply_to \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CMailFile\:\:\$reply_to \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/class/CMailFile.class.php - - message: "#^Property Ccountry\\:\\:\\$code_iso \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ccountry\:\:\$code_iso \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ccountry.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ccountry.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ccountry.class.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ccountry.class.php - - message: "#^Method CGenericDic\\:\\:fetchAll\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#" + message: '#^Method CGenericDic\:\:fetchAll\(\) has parameter \$filter with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/class/cgenericdic.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/class/cgenericdic.class.php - - message: "#^Property CGenericDic\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CGenericDic\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cgenericdic.class.php - - message: "#^Property CGenericDic\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CGenericDic\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cgenericdic.class.php - - message: "#^Property CGenericDic\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CGenericDic\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cgenericdic.class.php - - message: "#^Method CLeadStatus\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method CLeadStatus\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property CLeadStatus\\:\\:\\$percent \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CLeadStatus\:\:\$percent \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property CLeadStatus\\:\\:\\$position \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CLeadStatus\:\:\$position \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property CommonDict\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/class/cleadstatus.class.php - - message: "#^Property Comment\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Comment\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/comment.class.php - - message: "#^Property Comment\\:\\:\\$fk_element \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Comment\:\:\$fk_element \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/class/comment.class.php - - message: "#^Property Comment\\:\\:\\$fk_user_author \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Comment\:\:\$fk_user_author \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/comment.class.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, CommonObject\\|stdClass given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, CommonObject\|stdClass given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/commondocgenerator.class.php - - message: "#^Property CommonObject\\:\\:\\$element \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, CommonObject given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/commondocgenerator.class.php - - message: "#^Property CommonObjectLine\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#2 \$array_to_fill of method CommonDocGenerator\:\:fill_substitutionarray_with_extrafields\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/commondocgenerator.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Property CommonObject\:\:\$element \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/commondocgenerator.class.php + + - + message: '#^Property CommonObjectLine\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/commondocgenerator.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 3 path: ../../htdocs/core/class/commoninvoice.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/class/commoninvoice.class.php - - message: "#^Variable \\$charge in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$charge in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/core/class/commoninvoice.class.php - - message: "#^Variable \\$field4 in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$field4 in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/commoninvoice.class.php - - message: "#^Variable \\$stripearrayofkeys might not be defined\\.$#" + message: '#^Variable \$stripearrayofkeys might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/class/commoninvoice.class.php - - message: "#^Expression in empty\\(\\) is always falsy\\.$#" - count: 1 + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 4 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^If condition is always false\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^If condition is always true\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Left side of && is always true\\.$#" - count: 5 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Method CommonObject\\:\\:getAllItemsLinkedByObjectID\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Method CommonObject\\:\\:getCountOfItemsLinkedByObjectID\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Negated boolean expression is always true\\.$#" - count: 7 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Parameter \\#1 \\$line of method CommonObject\\:\\:printOriginLine\\(\\) expects CommonObjectLine, CommonObject\\|stdClass given\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Parameter \\#17 \\$pa_ht of method Commande\\:\\:updateline\\(\\) expects int, float given\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Parameter \\#2 \\$line of method CommonObject\\:\\:printObjectLine\\(\\) expects CommonObjectLine, CommonObject\\|stdClass given\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Parameter \\#20 \\$fk_unit of method SupplierProposal\\:\\:updateline\\(\\) expects int, float given\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Parameter \\#21 \\$situation_percent of method Facture\\:\\:updateline\\(\\) expects int, float given\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Property CommonObject\\:\\:\\$childtables \\(array\\\\|string\\>\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Property CommonObject\\:\\:\\$fields \\(array\\\\|int\\|string\\>\\>\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Property CommonObject\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 9 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Property CommonObject\\:\\:\\$lines \\(array\\\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(CommonObject\) and ''fields'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(CommonObject\) and ''statut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Expression in empty\(\) is always falsy\.$#' + identifier: empty.expr + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 5 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Method CommonObject\:\:getAllItemsLinkedByObjectID\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Method CommonObject\:\:getCountOfItemsLinkedByObjectID\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 7 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^PHPDoc tag @var with type Commande is not subtype of native type \$this\(CommonObject\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^PHPDoc tag @var with type CommandeFournisseur is not subtype of native type \$this\(CommonObject\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^PHPDoc tag @var with type Facture is not subtype of native type \$this\(CommonObject\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^PHPDoc tag @var with type FactureFournisseur is not subtype of native type \$this\(CommonObject\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^PHPDoc tag @var with type Propal is not subtype of native type \$this\(CommonObject\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^PHPDoc tag @var with type SupplierProposal is not subtype of native type \$this\(CommonObject\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Parameter \#1 \$line of method CommonObject\:\:printOriginLine\(\) expects CommonObjectLine, CommonObject\|stdClass given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Parameter \#17 \$pa_ht of method Commande\:\:updateline\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Parameter \#2 \$line of method CommonObject\:\:printObjectLine\(\) expects CommonObjectLine, CommonObject\|stdClass given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Parameter \#20 \$fk_unit of method SupplierProposal\:\:updateline\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Parameter \#21 \$situation_percent of method Facture\:\:updateline\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Property CommonObject\:\:\$childtables \(array\\|string\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Property CommonObject\:\:\$cond_reglement \(int\|string\) is never assigned string so it can be removed from the property type\.$#' + identifier: property.unusedType + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Property CommonObject\:\:\$fields \(array\\|int\|string\>\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Property CommonObject\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 9 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Property CommonObject\:\:\$lines \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/commonobject.class.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Variable \$minSize in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Variable \\$minSize in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newProperty in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Variable \\$newProperty in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$validationClass in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/commonobject.class.php - - message: "#^Variable \\$validationClass in empty\\(\\) always exists and is not falsy\\.$#" - count: 1 - path: ../../htdocs/core/class/commonobject.class.php - - - - message: "#^Property CommonOrderLine\\:\\:\\$localtax1_type has no type specified\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(CommonOrder\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/commonorder.class.php - - message: "#^Property CommonOrderLine\\:\\:\\$localtax2_type has no type specified\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(CommonOrder\) and ''total_ht'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/commonorder.class.php - - message: "#^Property CommonOrderLine\\:\\:\\$price has no type specified\\.$#" + message: '#^Property CommonOrderLine\:\:\$localtax1_type has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonorder.class.php - - message: "#^Parameter \\#2 \\$pt of method CommonStickerGenerator\\:\\:Set_Char_Size\\(\\) expects int, float given\\.$#" + message: '#^Property CommonOrderLine\:\:\$localtax2_type has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/commonorder.class.php + + - + message: '#^Property CommonOrderLine\:\:\$price has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/commonorder.class.php + + - + message: '#^Parameter \#2 \$pt of method CommonStickerGenerator\:\:Set_Char_Size\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Avery_Code has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Avery_Code has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Avery_Name has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Avery_Name has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_COUNTX has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_COUNTX has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_COUNTY has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_COUNTY has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Char_Size has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Char_Size has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_First has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_First has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Height has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Height has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Line_Height has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Line_Height has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Margin_Left has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Margin_Left has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Margin_Top has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Margin_Top has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Metric has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Metric has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Metric_Doc has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Metric_Doc has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Width has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Width has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_X_Number has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_X_Number has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_X_Space has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_X_Space has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Y_Number has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Y_Number has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property CommonStickerGenerator\\:\\:\\$_Y_Space has no type specified\\.$#" + message: '#^Property CommonStickerGenerator\:\:\$_Y_Space has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/commonstickergenerator.class.php - - message: "#^Property Conf\\:\\:\\$adherent \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$agenda \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$adherent \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/conf.class.php + + - + message: '#^Property Conf\:\:\$agenda \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$commande \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$commande \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$contrat \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$contrat \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$delivery_note has no type specified\\.$#" + message: '#^Property Conf\:\:\$delivery_note has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$expedition_bon has no type specified\\.$#" + message: '#^Property Conf\:\:\$expedition_bon has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$expensereport \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$expensereport \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$facture \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$facture \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_hour_sec_short has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_hour_sec_short has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_hour_short has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_hour_short has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_hour_text has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_hour_text has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_hour_text_short has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_hour_text_short has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_short has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_short has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_short_java has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_short_java has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_text has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_text has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_date_text_short has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_date_text_short has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_hour_short has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_hour_short has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$format_hour_short_duration has no type specified\\.$#" + message: '#^Property Conf\:\:\$format_hour_short_duration has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$main_checkbox_left_column \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$main_checkbox_left_column \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$member \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$member \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$modules_parts type has no value type specified in iterable type array\\.$#" + message: '#^Property Conf\:\:\$modules_parts type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$mycompany has no type specified\\.$#" + message: '#^Property Conf\:\:\$mycompany has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$product \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$product \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$project \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$project \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$projet has no type specified\\.$#" + message: '#^Property Conf\:\:\$projet has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property Conf\\:\\:\\$propal \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Conf\:\:\$propal \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/core/class/conf.class.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/class/conf.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cproductnature.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cproductnature.class.php - - message: "#^Property CommonDict\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/cproductnature.class.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cproductnature.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cregion.class.php - - message: "#^Property CommonDict\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/cregion.class.php - - message: "#^Property Cregion\\:\\:\\$cheflieu \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cregion\:\:\$cheflieu \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cregion.class.php - - message: "#^Property Cregion\\:\\:\\$code_region \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cregion\:\:\$code_region \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cregion.class.php - - message: "#^Property Cregion\\:\\:\\$fk_pays \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cregion\:\:\$fk_pays \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cregion.class.php - - message: "#^Property Cregion\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cregion\:\:\$name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cregion.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cstate.class.php - - message: "#^Property Cstate\\:\\:\\$code_departement \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cstate\:\:\$code_departement \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cstate.class.php - - message: "#^Property Cstate\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cstate\:\:\$name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cstate.class.php - - message: "#^Property Cstate\\:\\:\\$nom \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cstate\:\:\$nom \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cstate.class.php - - message: "#^Property Cstate\\:\\:\\$rowid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cstate\:\:\$rowid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/cstate.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctypent.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctypent.class.php - - message: "#^Property CommonDict\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/ctypent.class.php - - message: "#^Property Ctypent\\:\\:\\$libelle \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ctypent\:\:\$libelle \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctypent.class.php - - message: "#^Property Ctypent\\:\\:\\$module \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ctypent\:\:\$module \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctypent.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/class/ctyperesource.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctyperesource.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctyperesource.class.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/ctyperesource.class.php - - message: "#^Property CUnits\\:\\:\\$scale \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CUnits\:\:\$scale \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CUnits\\:\\:\\$short_label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CUnits\:\:\$short_label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CUnits\\:\\:\\$sortorder \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CUnits\:\:\$sortorder \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CUnits\\:\\:\\$unit_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CUnits\:\:\$unit_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CommonDict\\:\\:\\$active \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$active \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CommonDict\\:\\:\\$code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CommonDict\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/core/class/cunits.class.php - - message: "#^Constructor of class DolEditor has an unused parameter \\$toolbarlocation\\.$#" + message: '#^Constructor of class DolEditor has an unused parameter \$toolbarlocation\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/class/doleditor.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/class/doleditor.class.php - - message: "#^Variable \\$type in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$type in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/dolgeoip.class.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Call to function is_array\(\) with array\{stacknum\: int, legend\: mixed, legendwithgroup\: non\-falsy\-string\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 3 path: ../../htdocs/core/class/dolgraph.class.php - - message: "#^If condition is always false\\.$#" - count: 3 - path: ../../htdocs/core/class/dolgraph.class.php - - - - message: "#^If condition is always true\\.$#" - count: 1 - path: ../../htdocs/core/class/dolgraph.class.php - - - - message: "#^Left side of && is always true\\.$#" - count: 1 - path: ../../htdocs/core/class/dolgraph.class.php - - - - message: "#^Offset 0 on array\\{array\\{stacknum\\: int, legend\\: mixed, legendwithgroup\\: non\\-falsy\\-string\\}\\} in empty\\(\\) always exists and is not falsy\\.$#" - count: 1 - path: ../../htdocs/core/class/dolgraph.class.php - - - - message: "#^Right side of \\|\\| is always false\\.$#" - count: 1 - path: ../../htdocs/core/class/dolgraph.class.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/core/class/dolgraph.class.php - - message: "#^Variable \\$legendMaxLines in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Loose comparison using \=\= between ''line'' and ''horizontalBar'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/core/class/dolgraph.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between 1 and 3 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Offset 0 on array\{array\{stacknum\: int, legend\: mixed, legendwithgroup\: non\-falsy\-string\}\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset + count: 1 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Variable \$legendMaxLines in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/core/class/dolgraph.class.php + + - + message: '#^Property EmailSenderProfile\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', visible\: \-1, enabled\: 1, position\: 1, notnull\: 1, index\: 1, comment\: ''Id''\}, entity\: array\{type\: ''integer'', label\: ''Entity'', visible\: \-1, enabled\: 1, position\: 20, notnull\: 1, index\: 1\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', visible\: 1, enabled\: 1, position\: 30, notnull\: 1\}, email\: array\{type\: ''varchar\(255\)'', label\: ''Email'', visible\: 1, enabled\: 1, position\: 40, notnull\: \-1\}, private\: array\{type\: ''integer\:User\:user…'', label\: ''User'', visible\: 1, enabled\: 1, position\: 50, default\: ''0'', notnull\: 1\}, signature\: array\{type\: ''html'', label\: ''Signature'', visible\: 3, enabled\: 1, position\: 400, notnull\: \-1, index\: 1\}, position\: array\{type\: ''integer'', label\: ''Position'', visible\: 1, enabled\: 1, position\: 405, notnull\: \-1, index\: 1\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', visible\: \-1, enabled\: 1, position\: 500, notnull\: 1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/core/class/emailsenderprofile.class.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/core/class/extrafields.class.php + + - + message: '#^Call to function is_array\(\) with array\{\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/extrafields.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with list\<\(int\|string\)\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/extrafields.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 11 + path: ../../htdocs/core/class/extrafields.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/class/extrafields.class.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/core/class/extrafields.class.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/core/class/extrafields.class.php + + - + message: '#^Call to function is_numeric\(\) with int\<0, max\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/fileupload.class.php - - message: "#^Property Fiscalyear\\:\\:\\$date_start \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Strict comparison using \!\=\= between array\|string and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/core/class/fileupload.class.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/class/fileupload.class.php + + - + message: '#^Property Fiscalyear\:\:\$date_start \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/class/fiscalyear.class.php - - message: "#^Property Fiscalyear\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Fiscalyear\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/fiscalyear.class.php - - message: "#^Property HookManager\\:\\:\\$hooks has no type specified\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/hookmanager.class.php - - message: "#^Property HookManager\\:\\:\\$hooksSorted has no type specified\\.$#" + message: '#^Property HookManager\:\:\$hooks has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/hookmanager.class.php - - message: "#^If condition is always true\\.$#" - count: 4 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Left side of && is always true\\.$#" + message: '#^Property HookManager\:\:\$hooksSorted has no type specified\.$#' + identifier: missingType.property count: 1 - path: ../../htdocs/core/class/html.form.class.php + path: ../../htdocs/core/class/hookmanager.class.php - - message: "#^Parameter \\#1 \\$selected of method Form\\:\\:getSelectConditionsPaiements\\(\\) expects int, string given\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Parameter \\#15 \\$excludeids of method Form\\:\\:select_company\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Parameter \\#2 \\$array of method Form\\:\\:multiselectarray\\(\\) expects array\\, array\\\\|string given\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Parameter \\#3 \\$selected of method Form\\:\\:multiselectarray\\(\\) expects array\\, array\\, int\\> given\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property CommonObject\\:\\:\\$next_prev_filter \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_availability has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_conditions_paiements has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_demand_reason has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_invoice_subtype has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_transport_mode has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_types_fees has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_types_paiements has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Property Form\\:\\:\\$cache_vatrates has no type specified\\.$#" - count: 1 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" - count: 4 - path: ../../htdocs/core/class/html.form.class.php - - - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/core/class/html.form.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 2 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Loose comparison using \=\= between ''GET'' and ''GET'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 2 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType + count: 4 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#1 \$selected of method Form\:\:getSelectConditionsPaiements\(\) expects int, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#15 \$excludeids of method Form\:\:select_company\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#2 \$array of method Form\:\:multiselectarray\(\) expects array\, array\\|string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#3 \$optJson of method Form\:\:constructProjectListOption\(\) expects array\{key\: string, value\: string, type\: string\}, array\{\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#3 \$selected of method Form\:\:multiselectarray\(\) expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Parameter \#7 \$ajaxoptions of function ajax_autocompleter expects array\\|string\>, array\\|string\>\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property CommonObject\:\:\$next_prev_filter \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_availability has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_conditions_paiements has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_demand_reason has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_invoice_subtype has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_transport_mode has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_types_fees has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_types_paiements has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Property Form\:\:\$cache_vatrates has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType + count: 4 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 2 + path: ../../htdocs/core/class/html.form.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 8 path: ../../htdocs/core/class/html.form.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 2 path: ../../htdocs/core/class/html.form.class.php - - message: "#^Variable \\$more in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$more in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/html.form.class.php - - message: "#^Variable \\$pageyes in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$pageyes in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/html.form.class.php - - message: "#^Variable \\$select_encoder might not be defined\\.$#" + message: '#^Variable \$select_encoder might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/class/html.formbarcode.class.php - - message: "#^Parameter \\#2 \\$array of static method Form\\:\\:multiselectarray\\(\\) expects array\\, array\\\\|string given\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/html.formcategory.class.php - - message: "#^Parameter \\#1 \\$selected of method FormCompany\\:\\:select_state\\(\\) expects int, string given\\.$#" + message: '#^Parameter \#2 \$array of static method Form\:\:multiselectarray\(\) expects array\, array\\|string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.formcategory.class.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/html.formcompany.class.php - - message: "#^Parameter \\#3 \\$selected of method Form\\:\\:multiselectarray\\(\\) expects array\\, array\\\\|int\\> given\\.$#" + message: '#^Call to function is_numeric\(\) with float\|int\\|int\<1, max\>\|\(non\-falsy\-string&numeric\-string\) will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/html.formcompany.class.php - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType count: 1 path: ../../htdocs/core/class/html.formcompany.class.php - - message: "#^Variable \\$idprof might not be defined\\.$#" + message: '#^Parameter \#1 \$selected of method FormCompany\:\:select_state\(\) expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/html.formcompany.class.php - - message: "#^Comparison operation \"\\>\" between 1 and 0 is always true\\.$#" + message: '#^Parameter \#3 \$selected of method Form\:\:multiselectarray\(\) expects array\, array\\|int\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/html.formcompany.class.php + + - + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType + count: 1 + path: ../../htdocs/core/class/html.formcompany.class.php + + - + message: '#^Variable \$idprof might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/class/html.formcompany.class.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/html.formfile.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/class/html.formfile.class.php + + - + message: '#^Comparison operation "\>" between 1 and 0 is always true\.$#' + identifier: greater.alwaysTrue + count: 1 + path: ../../htdocs/core/class/html.formfile.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/core/class/html.formfile.class.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/class/html.formfile.class.php - - message: "#^Property CommonObject\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/html.formfile.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 3 path: ../../htdocs/core/class/html.formfile.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" - count: 3 - path: ../../htdocs/core/class/html.formfile.class.php - - - - message: "#^Variable \\$fileinfo might not be defined\\.$#" + message: '#^Variable \$fileinfo might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/class/html.formfile.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/core/class/html.formintervention.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/class/html.formmail.class.php - - message: "#^Parameter \\#2 \\$array of static method Form\\:\\:multiselectarray\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$array of static method Form\:\:multiselectarray\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/html.formmail.class.php - - message: "#^Property FormMail\\:\\:\\$ckeditortoolbar \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FormMail\:\:\$ckeditortoolbar \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/html.formmail.class.php - - message: "#^Parameter \\#2 \\$array of static method Form\\:\\:multiselectarray\\(\\) expects array\\, non\\-empty\\-array\\<\\-1\\|0\\|1\\|2\\|3, string\\> given\\.$#" + message: '#^Parameter \#2 \$array of static method Form\:\:multiselectarray\(\) expects array\, non\-empty\-array\<\-1\|0\|1\|2\|3, string\> given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/html.formorder.class.php - - message: "#^Parameter \\#3 \\$zone of static method InfoBox\\:\\:listBoxes\\(\\) expects int, string given\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/class/html.formother.class.php - - message: "#^Property CommonObjectLine\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#3 \$zone of static method InfoBox\:\:listBoxes\(\) expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/html.formother.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property CommonObjectLine\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/html.formother.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/class/html.formother.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/class/html.formprojet.class.php - - message: "#^Parameter \\#2 \\$array of static method Form\\:\\:multiselectarray\\(\\) expects array\\, non\\-empty\\-array\\<0\\|1\\|2, string\\> given\\.$#" + message: '#^Parameter \#2 \$array of static method Form\:\:multiselectarray\(\) expects array\, non\-empty\-array\<0\|1\|2, string\> given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/html.formprojet.class.php - - message: "#^Variable \\$labeltoshow might not be defined\\.$#" + message: '#^Variable \$labeltoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/class/html.formprojet.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/core/class/html.formsetup.class.php - - message: "#^Property FormSetupItem\\:\\:\\$rank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FormSetupItem\:\:\$rank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/html.formsetup.class.php - - message: "#^Property FormSetupItem\\:\\:\\$saveCallBack \\(callable\\) in empty\\(\\) is not falsy\\.$#" + message: '#^Property FormSetupItem\:\:\$saveCallBack \(callable\) in empty\(\) is not falsy\.$#' + identifier: empty.property count: 1 path: ../../htdocs/core/class/html.formsetup.class.php - - message: "#^Property FormSetupItem\\:\\:\\$setValueFromPostCallBack \\(callable\\) in empty\\(\\) is not falsy\\.$#" + message: '#^Property FormSetupItem\:\:\$setValueFromPostCallBack \(callable\) in empty\(\) is not falsy\.$#' + identifier: empty.property count: 1 path: ../../htdocs/core/class/html.formsetup.class.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Loose comparison using \!\= between 1 and ''1'' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse count: 1 path: ../../htdocs/core/class/html.formsms.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/core/class/html.formsms.class.php + + - + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/html.formticket.class.php - - message: "#^Property FormTicket\\:\\:\\$withreadid \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/core/class/html.formticket.class.php + + - + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/class/html.formticket.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/core/class/html.formticket.class.php + + - + message: '#^Property FormTicket\:\:\$withreadid \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/class/html.formticket.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/class/html.formticket.class.php - - message: "#^Call to function is_object\\(\\) with mixed will always evaluate to false\\.$#" + message: '#^Call to function is_object\(\) with mixed will always evaluate to false\.$#' + identifier: function.impossibleType count: 2 path: ../../htdocs/core/class/interfaces.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 4 + path: ../../htdocs/core/class/interfaces.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/class/interfaces.class.php - - message: "#^Variable \\$modName in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$modName in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/class/interfaces.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_add expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_add expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_bind expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_bind expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_delete expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_delete expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_errno expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_errno expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 9 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_errno expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_errno expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_error expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_error expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 9 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_error expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_error expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 8 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_first_entry expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_first_entry expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_first_entry expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_first_entry expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_get_attributes expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_get_attributes expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_get_entries expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_get_entries expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_get_option expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_get_option expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_get_values_len expects LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_get_values_len expects LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_mod_add expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_mod_add expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_mod_del expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_mod_del expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_mod_replace expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_mod_replace expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_rename expects LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_rename expects LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_search expects array\\|LDAP\\\\Connection, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_search expects array\|LDAP\\Connection, bool\|resource given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_search expects array\\|LDAP\\\\Connection, resource\\|true given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_search expects array\|LDAP\\Connection, resource\|true given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_set_option expects LDAP\\\\Connection\\|null, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_set_option expects LDAP\\Connection\|null, bool\|resource given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_unbind expects LDAP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_unbind expects LDAP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/ldap.class.php - - message: "#^Parameter \\#2 \\$pere of method Menubase\\:\\:recur\\(\\) expects int, string given\\.$#" + message: '#^Parameter \#2 \$pere of method Menubase\:\:recur\(\) expects int, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/class/menubase.class.php - - message: "#^Property Menubase\\:\\:\\$enabled \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Menubase\:\:\$enabled \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/menubase.class.php - - message: "#^Property Menubase\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Menubase\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/class/menubase.class.php - - message: "#^Variable \\$menutopid in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$menutopid in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/class/menubase.class.php - - message: "#^Method Notify\\:\\:getNotificationsArray\\(\\) has parameter \\$scope with no value type specified in iterable type array\\.$#" + message: '#^Method Notify\:\:getNotificationsArray\(\) has parameter \$scope with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/class/notify.class.php - - message: "#^Method Notify\\:\\:getNotificationsArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Notify\:\:getNotificationsArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/class/notify.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/core/class/notify.class.php - - message: "#^Property Notify\\:\\:\\$arrayofnotifsupported has no type specified\\.$#" + message: '#^Property Notify\:\:\$arrayofnotifsupported has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/class/notify.class.php - - message: "#^Parameter \\#1 \\$content of method SimpleOpenID\\:\\:HTML2OpenIDServer\\(\\) expects string, array\\ given\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/openid.class.php - - message: "#^Property RssParser\\:\\:\\$items has no type specified\\.$#" + message: '#^Parameter \#1 \$content of method SimpleOpenID\:\:HTML2OpenIDServer\(\) expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/class/openid.class.php + + - + message: '#^Call to function is_object\(\) with XMLParser will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/rssparser.class.php - - message: "#^Comparison operation \"\\>\\=\" between int\\<2, 4\\> and 1 is always true\\.$#" + message: '#^Parameter \#1 \$str1 of method RssParser\:\:concat\(\) expects string, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/class/rssparser.class.php + + - + message: '#^Property RssParser\:\:\$items has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/class/rssparser.class.php + + - + message: '#^Comparison operation "\>\=" between int\<2, 4\> and 1 is always true\.$#' + identifier: greaterOrEqual.alwaysTrue count: 1 path: ../../htdocs/core/class/smtps.class.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Property SMTPs\:\:\$_arySensitivity \(array\\) does not accept default value of type array\\.$#' + identifier: property.defaultValue count: 1 path: ../../htdocs/core/class/smtps.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 1 + path: ../../htdocs/core/class/smtps.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(TimeSpent\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/timespent.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(TimeSpent\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/timespent.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with TimeSpent and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/timespent.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with TimeSpent and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/timespent.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function property_exists\(\) with TimeSpent and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/class/timespent.class.php + + - + message: '#^Call to function property_exists\(\) with TimeSpent and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/class/timespent.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/core/class/timespent.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/core/class/timespent.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/core/class/timespent.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/class/timespent.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/class/timespent.class.php - - message: "#^Comparison operation \"\\<\" between 0\\|1 and 0 is always false\\.$#" + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote count: 2 - path: ../../htdocs/core/class/utils.class.php + path: ../../htdocs/core/class/translate.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/class/utils.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote count: 2 path: ../../htdocs/core/class/utils.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Comparison operation "\<" between 0\|1 and 0 is always false\.$#' + identifier: smaller.alwaysFalse + count: 2 + path: ../../htdocs/core/class/utils.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/core/class/utils.class.php + + - + message: '#^PHPDoc tag @var with type DoliDB is not subtype of native type mixed\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/core/class/utils.class.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 + path: ../../htdocs/core/class/utils.class.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 3 path: ../../htdocs/core/class/utils.class.php - - message: "#^Variable \\$moduleobj might not be defined\\.$#" + message: '#^Variable \$moduleobj might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/class/utils.class.php - - message: "#^Parameter \\#1 \\$table of static method Diff\\:\\:generatePartialDiff\\(\\) expects array\\\\}\\>, array\\\\> given\\.$#" + message: '#^Parameter \#1 \$table of static method Diff\:\:generatePartialDiff\(\) expects array\\}\>, array\\> given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/class/utils_diff.class.php - - message: "#^Variable \\$r might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/commonfieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_TypeFields_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_entities_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_fields_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_help_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinexport.inc.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/commonfieldsinexport.inc.php + + - + message: '#^Variable \$r might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/commonfieldsinexport.inc.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/commonfieldsinexport.inc.php - - message: "#^Variable \\$r might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/commonfieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_TypeFields_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_entities_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_fields_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_help_array on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/core/commonfieldsinimport.inc.php + + - + message: '#^Variable \$r might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/commonfieldsinimport.inc.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/commonfieldsinimport.inc.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Comparison operation \"\\>\" between 1 and 1 is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse + count: 1 + path: ../../htdocs/core/customreports.php + + - + message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 2 path: ../../htdocs/core/customreports.php - - message: "#^If condition is always true\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$gval might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$page might not be defined\\.$#" + message: '#^Variable \$gval might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$search_graph might not be defined\\.$#" + message: '#^Variable \$page might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/customreports.php + + - + message: '#^Variable \$search_graph might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$search_groupby might not be defined\\.$#" + message: '#^Variable \$search_groupby might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$search_xaxis might not be defined\\.$#" + message: '#^Variable \$search_xaxis might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$search_yaxis might not be defined\\.$#" + message: '#^Variable \$search_yaxis might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$sortfield might not be defined\\.$#" + message: '#^Variable \$sortfield might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$sortorder might not be defined\\.$#" + message: '#^Variable \$sortorder might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/customreports.php - - message: "#^Variable \\$tabfamily might not be defined\\.$#" + message: '#^Variable \$tabfamily might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/customreports.php - - message: "#^Constructor of class DoliDBMysqli has an unused parameter \\$type\\.$#" + message: '#^Constructor of class DoliDBMysqli has an unused parameter \$type\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/db/mysqli.class.php - - message: "#^Parameter \\#2 \\$value of method mysqli\\:\\:options\\(\\) expects int\\|string, false given\\.$#" + message: '#^Parameter \#2 \$value of method mysqli\:\:options\(\) expects int\|string, false given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/mysqli.class.php - - message: "#^Property DoliDBMysqli\\:\\:\\$db \\(mysqli\\) in empty\\(\\) is not falsy\\.$#" + message: '#^Property DoliDBMysqli\:\:\$db \(mysqli\) in empty\(\) is not falsy\.$#' + identifier: empty.property count: 1 path: ../../htdocs/core/db/mysqli.class.php - - message: "#^Variable \\$disableforcecharset in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$disableforcecharset in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/db/mysqli.class.php - - message: "#^Constructor of class DoliDBPgsql has an unused parameter \\$type\\.$#" + message: '#^Constructor of class DoliDBPgsql has an unused parameter \$type\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$result of function pg_affected_rows expects PgSql\\\\Result, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$result of function pg_affected_rows expects PgSql\\Result, bool\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$result of function pg_fetch_array expects PgSql\\\\Result, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$result of function pg_fetch_array expects PgSql\\Result, bool\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$result of function pg_fetch_object expects PgSql\\\\Result, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$result of function pg_fetch_object expects PgSql\\Result, bool\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$result of function pg_fetch_row expects PgSql\\\\Result, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$result of function pg_fetch_row expects PgSql\\Result, bool\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$result of function pg_free_result expects PgSql\\\\Result, resource given\\.$#" + message: '#^Parameter \#1 \$result of function pg_free_result expects PgSql\\Result, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$result of function pg_num_rows expects PgSql\\\\Result, bool\\|resource given\\.$#" + message: '#^Parameter \#1 \$result of function pg_num_rows expects PgSql\\Result, bool\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Parameter \\#1 \\$resultset of method DoliDBPgsql\\:\\:fetch_row\\(\\) expects resource, PgSql\\\\Result given\\.$#" + message: '#^Parameter \#1 \$resultset of method DoliDBPgsql\:\:fetch_row\(\) expects resource, PgSql\\Result given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/db/pgsql.class.php - - message: "#^Constructor of class DoliDBSqlite3 has an unused parameter \\$type\\.$#" + message: '#^Constructor of class DoliDBSqlite3 has an unused parameter \$type\.$#' + identifier: constructor.unusedParameter count: 1 path: ../../htdocs/core/db/sqlite3.class.php - - message: "#^Method DoliDBSqlite3\\:\\:getListOfCollation\\(\\) should return array\\\\|null but returns array\\{array\\{charset\\: 'UTF\\-8', description\\: 'UTF\\-8'\\}\\}\\.$#" + message: '#^Method DoliDBSqlite3\:\:getListOfCollation\(\) should return array\\|null but returns array\{array\{charset\: ''UTF\-8'', description\: ''UTF\-8''\}\}\.$#' + identifier: return.type count: 1 path: ../../htdocs/core/db/sqlite3.class.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject + count: 3 + path: ../../htdocs/core/extrafieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_TypeFields_array on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/extrafieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_entities_array on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/extrafieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_fields_array on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/extrafieldsinexport.inc.php + + - + message: '#^Cannot access property \$export_special_array on mixed\.$#' + identifier: property.nonObject count: 1 path: ../../htdocs/core/extrafieldsinexport.inc.php - - message: "#^Variable \\$r might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/extrafieldsinexport.inc.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/extrafieldsinexport.inc.php + + - + message: '#^Variable \$r might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/extrafieldsinexport.inc.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 10 path: ../../htdocs/core/extrafieldsinexport.inc.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject + count: 3 + path: ../../htdocs/core/extrafieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_TypeFields_array on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/extrafieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_entities_array on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/extrafieldsinimport.inc.php + + - + message: '#^Cannot access property \$import_fields_array on mixed\.$#' + identifier: property.nonObject + count: 2 + path: ../../htdocs/core/extrafieldsinimport.inc.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/extrafieldsinimport.inc.php - - message: "#^Variable \\$r might not be defined\\.$#" + message: '#^Variable \$r might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/extrafieldsinimport.inc.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../htdocs/core/extrafieldsinimport.inc.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/browser.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/browser.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/frmactualfolder.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/frmfolders.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/frmresourceslist.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/frmupload.php - - message: "#^Variable \\$_FILES in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$_FILES in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/core/filemanagerdol/connectors/php/connector.lib.php - - message: "#^Variable \\$_SERVER in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$_SERVER in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/core/filemanagerdol/connectors/php/connector.lib.php - - message: "#^Variable \\$isImageValid in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$isImageValid in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/core/filemanagerdol/connectors/php/connector.lib.php - - message: "#^Variable \\$Config might not be defined\\.$#" + message: '#^Variable \$Config might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/filemanagerdol/connectors/php/connector.php - - message: "#^Variable \\$var in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote + count: 1 + path: ../../htdocs/core/get_info.php + + - + message: '#^Variable \$var in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/core/lib/accounting.lib.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/admin.lib.php - - message: "#^Offset 1 on array\\{string, non\\-falsy\\-string, string\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote count: 1 path: ../../htdocs/core/lib/admin.lib.php - - message: "#^Variable \\$resarray might not be defined\\.$#" + message: '#^Loose comparison using \!\= between ''llx_'' and ''llx_'' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse + count: 1 + path: ../../htdocs/core/lib/admin.lib.php + + - + message: '#^Offset 1 on array\{string, non\-falsy\-string, string\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset + count: 1 + path: ../../htdocs/core/lib/admin.lib.php + + - + message: '#^Variable \$resarray might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/lib/admin.lib.php - - message: "#^Variable \\$strictw3c in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$strictw3c in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 13 path: ../../htdocs/core/lib/admin.lib.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/core/lib/agenda.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^Function ajax_constantonoff\(\) has parameter \$entity with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: ../../htdocs/core/lib/ajax.lib.php + + - + message: '#^Function ajax_constantonoff\(\) has parameter \$revertonoff with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: ../../htdocs/core/lib/ajax.lib.php + + - + message: '#^Function ajax_constantonoff\(\) has parameter \$strict with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: ../../htdocs/core/lib/ajax.lib.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/lib/company.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/core/lib/company.lib.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \!\= between ''view'' and ''kanban'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/company.lib.php + + - + message: '#^Property Contact\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 0\|1, visible\: 0\|1, position\: 1\}, name\: array\{type\: ''varchar\(128\)'', label\: ''Name'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 1, index\: 1, position\: 10, \.\.\.\}, poste\: array\{type\: ''varchar\(128\)'', label\: ''PostOrFunction'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 2, index\: 1, position\: 20\}, address\: array\{type\: ''varchar\(128\)'', label\: ''Address'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 3, index\: 1, position\: 30\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 0\|1, visible\: 3, position\: 35\}, role\: array\{type\: ''checkbox'', label\: ''Role'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 4, index\: 1, position\: 40\}, birthday\: array\{type\: ''date'', label\: ''Birthday'', enabled\: 1, visible\: \-1, notnull\: 0, position\: 45\}, statut\: array\{type\: ''integer'', label\: ''Status'', enabled\: 1, visible\: 1, notnull\: 1, default\: ''0'', index\: 1, position\: 50, \.\.\.\}\}\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/lib/company.lib.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 4 path: ../../htdocs/core/lib/company.lib.php - - message: "#^Ternary operator condition is always true\\.$#" - count: 2 + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 path: ../../htdocs/core/lib/company.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Variable \$sql in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/core/lib/company.lib.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/core/lib/contact.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with ''DateTimeZone'' and ''getOffset'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/lib/date.lib.php + + - + message: '#^Function get_tz_array\(\) should return array\, string\> but returns array\{\-11\: ''Pacific/Pago_Pago'', \-10\: ''Pacific/Honolulu'', \-9\: ''America/Anchorage'', \-8\: ''America/Los_Angeles'', \-7\: ''America/Dawson_Creek'', \-6\: ''America/Chicago'', \-5\: ''America/Bogota'', \-4\: ''America/Asuncion'', \.\.\.\}\.$#' + identifier: return.type + count: 1 + path: ../../htdocs/core/lib/date.lib.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/lib/emailing.lib.php - - message: "#^Elseif condition is always true\\.$#" + message: '#^Parameter \#4 \$head of function complete_head_from_modules expects array\, array\{0\: array\{''//admin/confexped…'', mixed\}, 1\: array\{''//admin/expedition…'', mixed\}, 2\?\: array\{''//admin/delivery\.php'', mixed\}\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/lib/expedition.lib.php + + - + message: '#^Call to function is_array\(\) with array\{file\: string, timestamp\: int\|false\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/files.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/files.lib.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/core/lib/files.lib.php + + - + message: '#^Loose comparison using \=\= between ''zst'' and ''zst'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/files.lib.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/core/lib/files.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_cdup expects FTP\\\\Connection, resource given\\.$#" + message: '#^PHPDoc tag @var with type array\ is not subtype of native type RecursiveIteratorIterator\\.$#' + identifier: varTag.nativeType + count: 2 + path: ../../htdocs/core/lib/files.lib.php + + - + message: '#^Strict comparison using \!\=\= between array\{file\: string, timestamp\: int\|false\} and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/files.lib.php + + - + message: '#^Parameter \#1 \$ftp of function ftp_cdup expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_chdir expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_chdir expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_close expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_close expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_delete expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_delete expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_get expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_get expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_mkdir expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_mkdir expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_put expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_put expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_rmdir expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_rmdir expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/ftp.lib.php - - message: "#^Comparison operation \"\\>\" between int\\<1, max\\> and 0 is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with float will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Call to function is_object\(\) with User will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 24 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Comparison operation "\>" between int\<1, max\> and 0 is always true\.$#' + identifier: greater.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Function dol_escape_js\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Function dol_escape_js\(\) has parameter \$noescapebackslashn with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Instanceof between DOMDocument and DOMDocument will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Instanceof between User and User will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/core/lib/functions.lib.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Offset 'list' on array\\{list\\: array\\{\\}\\}\\|array\\{list\\: non\\-empty\\-array\\\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''list'' on array\{list\: array\{\}\}\|array\{list\: non\-empty\-array\\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Offset 1 on array\\{string, non\\-falsy\\-string\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset 1 on array\{string, non\-falsy\-string\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Offset 1 on array\\{string, non\\-falsy\\-string\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset 1 on array\{string, non\-falsy\-string\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$country \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$country \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$firstname \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$firstname \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$lastname \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$lastname \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_code \\(array\\\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_code \(array\\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_total_ttc \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_total_ttc \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Property CommonObject\\:\\:\\$state \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$state \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 8 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Variable \\$TCompiledAttr in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$TCompiledAttr in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^Variable \\$paramname in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$paramname in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/functions.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/lib/functions2.lib.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/core/lib/functions2.lib.php - - message: "#^Function getURLContent\\(\\) should return array\\{http_code\\: int, content\\: string, curl_error_no\\: int, curl_error_msg\\: string\\} but returns array\\{content\\: bool\\|string, curl_error_no\\: int\\\\|int\\<1, max\\>, curl_error_msg\\: string\\}\\|array\\{http_code\\?\\: 400, content\\?\\: non\\-falsy\\-string\\|true, curl_error_no\\: '', curl_error_msg\\: ''\\}\\|array\\{url\\: string, content_type\\: string\\|null, http_code\\: int, header_size\\: int, request_size\\: int, filetime\\: int, ssl_verify_result\\: int, redirect_count\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Function getURLContent\(\) should return array\{http_code\: int, content\: string, curl_error_no\: int, curl_error_msg\: string\} but returns array\{content\: bool\|string, curl_error_no\: int\\|int\<1, max\>, curl_error_msg\: string\}\|array\{http_code\?\: 400, content\?\: non\-falsy\-string\|true, curl_error_no\: '''', curl_error_msg\: ''''\}\|array\{url\: string, content_type\: string\|null, http_code\: int, header_size\: int, request_size\: int, filetime\: int, ssl_verify_result\: int, redirect_count\: int, \.\.\.\}\.$#' + identifier: return.type count: 1 path: ../../htdocs/core/lib/geturl.lib.php - - message: "#^Variable \\$extImg might not be defined\\.$#" + message: '#^Parameter \#3 \$value of function curl_setopt expects 0\|2, bool given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/lib/geturl.lib.php + + - + message: '#^Parameter \#3 \$value of function curl_setopt expects bool, int given\.$#' + identifier: argument.type + count: 4 + path: ../../htdocs/core/lib/geturl.lib.php + + - + message: '#^Call to function function_exists\(\) with ''imagecreatefromgif''\|''imagecreatefromjpeg''\|''imagecreatefrompng''\|''imagecreatefromwbmp''\|''imagecreatefromwebp'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 3 + path: ../../htdocs/core/lib/images.lib.php + + - + message: '#^Variable \$extImg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/lib/images.lib.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Loose comparison using \=\= between ''suppliers'' and ''fourn'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 3 path: ../../htdocs/core/lib/invoice.lib.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^Loose comparison using \=\= between ''suppliers'' and ''suppliers'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 3 path: ../../htdocs/core/lib/invoice.lib.php - - message: "#^Variable \\$sqlwhere in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Parameter \#1 \$array \(array\{mixed, mixed, mixed, mixed, mixed, non\-falsy\-string\}\) of array_values is already a list, call has no effect\.$#' + identifier: arrayValues.list + count: 1 + path: ../../htdocs/core/lib/invoice.lib.php + + - + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 3 + path: ../../htdocs/core/lib/invoice.lib.php + + - + message: '#^Variable \$sqlwhere in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/invoice2.lib.php - - message: "#^Variable \\$array in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$array in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/json.lib.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Call to function array_key_exists\(\) with ''code'' and array\{rowid\: array\{type\: ''integer'', value\: 11, extra\: ''AUTO_INCREMENT''\}, code\: array\{type\: ''varchar'', value\: 255, null\: ''NOT NULL''\}, label\: array\{type\: ''varchar'', value\: 255, null\: ''NOT NULL''\}, position\: array\{type\: ''integer'', value\: 11, null\: ''NULL''\}, use_default\: array\{type\: ''varchar'', value\: 11, default\: ''1''\}, active\: array\{type\: ''integer'', value\: 3\}\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 4 + path: ../../htdocs/core/lib/modulebuilder.lib.php + + - + message: '#^Call to function array_key_exists\(\) with ''label'' and array\{rowid\: array\{type\: ''integer'', value\: 11, extra\: ''AUTO_INCREMENT''\}, code\: array\{type\: ''varchar'', value\: 255, null\: ''NOT NULL''\}, label\: array\{type\: ''varchar'', value\: 255, null\: ''NOT NULL''\}, position\: array\{type\: ''integer'', value\: 11, null\: ''NULL''\}, use_default\: array\{type\: ''varchar'', value\: 11, default\: ''1''\}, active\: array\{type\: ''integer'', value\: 3\}\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 4 + path: ../../htdocs/core/lib/modulebuilder.lib.php + + - + message: '#^Call to function array_key_exists\(\) with ''rowid'' and array\{rowid\: array\{type\: ''integer'', value\: 11, extra\: ''AUTO_INCREMENT''\}, code\: array\{type\: ''varchar'', value\: 255, null\: ''NOT NULL''\}, label\: array\{type\: ''varchar'', value\: 255, null\: ''NOT NULL''\}, position\: array\{type\: ''integer'', value\: 11, null\: ''NULL''\}, use_default\: array\{type\: ''varchar'', value\: 11, default\: ''1''\}, active\: array\{type\: ''integer'', value\: 3\}\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/modulebuilder.lib.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Call to function is_array\(\) with array\{\}\|array\{name\: string, key\: string, type\: string, label\: string, picot\?\: string, enabled\: int\<0, 1\>, notnull\: int\<0, 1\>, position\: int, \.\.\.\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/lib/modulebuilder.lib.php + + - + message: '#^Strict comparison using \!\=\= between string and false will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 2 + path: ../../htdocs/core/lib/modulebuilder.lib.php + + - + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType + count: 1 + path: ../../htdocs/core/lib/modulebuilder.lib.php + + - + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 4 path: ../../htdocs/core/lib/order.lib.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/lib/order.lib.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/lib/pdf.lib.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 4 path: ../../htdocs/core/lib/pdf.lib.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 18 path: ../../htdocs/core/lib/pdf.lib.php - - message: "#^Variable \\$refListsTxt in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$refListsTxt in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/pdf.lib.php - - message: "#^Property Task\\:\\:\\$progress \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with list\<\(int\|string\)\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/project.lib.php - - message: "#^Variable \\$progressCalculated in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 5 + path: ../../htdocs/core/lib/project.lib.php + + - + message: '#^Parameter \#1 \$inc of function projectLinesPerDay expects string, \(float\|int\) given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/lib/project.lib.php - - message: "#^Variable \\$login in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Parameter \#1 \$inc of function projectLinesPerMonth expects string, \(float\|int\) given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/lib/project.lib.php + + - + message: '#^Parameter \#1 \$inc of function projectLinesPerWeek expects string, \(float\|int\) given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/lib/project.lib.php + + - + message: '#^Property Task\:\:\$progress \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/lib/project.lib.php + + - + message: '#^Variable \$progressCalculated in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable + count: 1 + path: ../../htdocs/core/lib/project.lib.php + + - + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/lib/security.lib.php + + - + message: '#^Variable \$login in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/security2.lib.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/sendings.lib.php - - message: "#^Variable \\$out in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$out in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/signature.lib.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 6 path: ../../htdocs/core/lib/tax.lib.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/core/lib/ticket.lib.php - - message: "#^Variable \\$butactionbg in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$butactionbg in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbackhmenu1 in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbackhmenu1 in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbacklineimpair1 in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbacklineimpair1 in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbacklinepair1 in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbacklinepair1 in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbacklinepairchecked in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbacklinepairchecked in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbacklinepairhover in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbacklinepairhover in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbacktitle1 in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbacktitle1 in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colorbackvmenu1 in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colorbackvmenu1 in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colortextlink in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colortextlink in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colortexttitle in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colortexttitle in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colortexttitlelink in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colortexttitlelink in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$colortexttitlenotab in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$colortexttitlenotab in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Variable \\$textbutaction in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$textbutaction in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/lib/usergroups.lib.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/website.lib.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/core/lib/website.lib.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/lib/website.lib.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/lib/website.lib.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/website.lib.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/lib/website2.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/core/lib/website2.lib.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/lib/xcal.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''auto'' and ''auto'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/core/login/functions_dolibarr.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/login/functions_ldap.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_errno expects LDAP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_errno expects LDAP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/login/functions_ldap.php - - message: "#^Parameter \\#1 \\$ldap of function ldap_error expects LDAP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ldap of function ldap_error expects LDAP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/login/functions_ldap.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^Offset 'level' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" + message: '#^Offset ''level'' on array\{url\: mixed\} in empty\(\) does not exist\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^Offset 'mainmenu' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" + message: '#^Offset ''mainmenu'' on array\{url\: mixed\} in empty\(\) does not exist\.$#' + identifier: empty.offset count: 2 path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^Offset 'prefix' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" + message: '#^Offset ''prefix'' on array\{url\: mixed\} in empty\(\) does not exist\.$#' + identifier: empty.offset count: 2 path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^Result of && is always false\\.$#" + message: '#^Parameter \#8 \$menuval of function print_text_menu_entry_auguria expects array\{\}\|array\{rowid\: string, fk_menu\: string, langs\: string, enabled\: int\<0, 2\>, type\: string, fk_mainmenu\: string, fk_leftmenu\: string, url\: string, \.\.\.\}, array\{url\: string, titre\: string, enabled\: int\<0, 2\>, target\: string, mainmenu\: string, leftmenu\: string, position\: int, level\?\: int, \.\.\.\} given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^Offset 'prefix' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" - count: 2 - path: ../../htdocs/core/menus/standard/auguria_menu.php + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/auguria.lib.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 4 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 6 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Left side of \|\| is always true\.$#' + identifier: booleanOr.leftAlwaysTrue count: 4 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Offset 'level' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" + message: '#^Loose comparison using \=\= between ''accountancy'' and ''accountancy'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 4 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Offset ''level'' on array\{url\: mixed\} in empty\(\) does not exist\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Offset 'mainmenu' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" + message: '#^Offset ''mainmenu'' on array\{url\: mixed\} in empty\(\) does not exist\.$#' + identifier: empty.offset count: 2 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Offset 'prefix' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" + message: '#^Offset ''prefix'' on array\{url\: mixed\} in empty\(\) does not exist\.$#' + identifier: empty.offset count: 2 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Result of && is always false\\.$#" + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: 0\|1, perms\: 0\|1, module\: ''projet''\} given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Right side of && is always true\\.$#" - count: 5 + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: 0\|1, perms\: bool, module\: ''facture\|supplier…''\} given\.$#' + identifier: argument.type + count: 1 path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^Offset 'prefix' on array\\{url\\: mixed\\} in empty\\(\\) does not exist\\.$#" - count: 2 - path: ../../htdocs/core/menus/standard/eldy_menu.php + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: 0\|1, perms\: bool, module\: ''propal\|commande…''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php - - message: "#^If condition is always false\\.$#" + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: 1, perms\: 1, module\: ''''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''banque\|prelevement…''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''bom\|mrp''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''comptabilite…''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''hrm\|holiday…''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''product\|service''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''societe\|fournisseur''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: bool, module\: ''ticket…''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: bool, perms\: mixed, module\: ''adherent''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#2 \$menuentry of function isVisibleToUserType expects array\{enabled\: int\<0, 1\>, module\: string, perms\: string\}, array\{enabled\: true, perms\: mixed, module\: ''projet''\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Parameter \#8 \$menuval of function print_text_menu_entry expects array\{\}\|array\{rowid\: string, fk_menu\: string, langs\: string, enabled\: int\<0, 2\>, type\: string, fk_mainmenu\: string, fk_leftmenu\: string, url\: string, \.\.\.\}, array\{url\: string, titre\: string, enabled\: int\<0, 2\>, target\: string, mainmenu\: string, leftmenu\: string, position\: int, level\?\: int, \.\.\.\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/eldy.lib.php + + - + message: '#^Call to function is_array\(\) with array\{\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/core/menus/standard/empty.php - - message: "#^If condition is always true\\.$#" - count: 2 - path: ../../htdocs/core/menus/standard/empty.php - - - - message: "#^Left side of && is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/menus/standard/empty.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Loose comparison using \!\= between ''top'' and ''jmobile'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Loose comparison using \!\= between ''top'' and ''topnb'' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Loose comparison using \=\= between ''left'' and ''jmobile'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Loose comparison using \=\= between ''top'' and ''jmobile'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/core/menus/standard/empty.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/core/menus/standard/empty.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/core/menus/standard/empty.php - - message: "#^Ternary operator condition is always true\\.$#" - count: 2 - path: ../../htdocs/core/menus/standard/empty.php - - - - message: "#^Variable \\$noout in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$noout in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 8 path: ../../htdocs/core/menus/standard/empty.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/core/modules/DolibarrModules.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Offset ''entity'' on array\{data\: string, entity\: int\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset + count: 1 + path: ../../htdocs/core/modules/DolibarrModules.class.php + + - + message: '#^Property DolibarrModules\:\:\$dirs \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/DolibarrModules.class.php + + - + message: '#^Property Menubase\:\:\$fk_mainmenu \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/DolibarrModules.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/core/modules/DolibarrModules.class.php - - message: "#^Offset 'entity' on array\\{data\\: string, entity\\: int\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$fulldir in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/modules/DolibarrModules.class.php - - message: "#^Property DolibarrModules\\:\\:\\$dirs \\(array\\\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/core/modules/DolibarrModules.class.php - - - - message: "#^Property Menubase\\:\\:\\$fk_mainmenu \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/core/modules/DolibarrModules.class.php - - - - message: "#^Ternary operator condition is always false\\.$#" - count: 2 - path: ../../htdocs/core/modules/DolibarrModules.class.php - - - - message: "#^Variable \\$fulldir in empty\\(\\) always exists and is not falsy\\.$#" - count: 1 - path: ../../htdocs/core/modules/DolibarrModules.class.php - - - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/action/doc/pdf_standard_actions.class.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/core/modules/action/doc/pdf_standard_actions.class.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Asset given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php + + - + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Asset given\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php - - message: "#^Variable \\$carac_client_name might not be defined\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Asset given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php - - message: "#^Variable \\$outputlangsbis might not be defined\\.$#" + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Variable \$carac_client_name might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php + + - + message: '#^Variable \$outputlangsbis might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php - - message: "#^Property mod_asset_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_asset_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/asset/mod_asset_standard.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/bank/doc/pdf_ban.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_ban\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Loose comparison using \=\= between 1 and 1 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/core/modules/bank/doc/pdf_ban.modules.php + + - + message: '#^Parameter \#3 \$tab_height of method pdf_ban\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/bank/doc/pdf_ban.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_sepamandate\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Loose comparison using \=\= between 1 and 1 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_sepamandate\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_sepamandate\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php + + - + message: '#^Parameter \#3 \$tab_height of method pdf_sepamandate\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/barcode/doc/phpbarcode.modules.php - - message: "#^Property modTcpdfbarcode\\:\\:\\$is2d has no type specified\\.$#" + message: '#^Property modTcpdfbarcode\:\:\$is2d has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php - - message: "#^Parameter \\#2 \\$type of method mod_barcode_product_standard\\:\\:literalBarcodeType\\(\\) expects int, string given\\.$#" + message: '#^Parameter \#2 \$type of method mod_barcode_product_standard\:\:literalBarcodeType\(\) expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/barcode/mod_barcode_product_standard.php - - message: "#^Property mod_barcode_product_standard\\:\\:\\$numbitcounter has no type specified\\.$#" + message: '#^Property mod_barcode_product_standard\:\:\$numbitcounter has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/barcode/mod_barcode_product_standard.php - - message: "#^Property mod_barcode_product_standard\\:\\:\\$searchcode has no type specified\\.$#" + message: '#^Property mod_barcode_product_standard\:\:\$searchcode has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/barcode/mod_barcode_product_standard.php - - message: "#^Parameter \\#2 \\$type of method mod_barcode_thirdparty_standard\\:\\:literalBarcodeType\\(\\) expects int, string given\\.$#" + message: '#^Parameter \#2 \$type of method mod_barcode_thirdparty_standard\:\:literalBarcodeType\(\) expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/barcode/mod_barcode_thirdparty_standard.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, BOM given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php - - message: "#^Property mod_bom_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php + + - + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php + + - + message: '#^Property mod_bom_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/bom/mod_bom_standard.php - - message: "#^Property mod_chequereceipt_mint\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/modules/cheque/doc/pdf_blochet.class.php + + - + message: '#^Property mod_chequereceipt_mint\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/cheque/mod_chequereceipt_mint.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Commande given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Commande given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php + + - + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Commande given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_einstein\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_einstein\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_einstein\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_einstein\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Property Commande\\:\\:\\$availability \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$availability \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Commande given\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_eratosthene\\:\\:drawInfoTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Commande given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_eratosthene\\:\\:drawTotalTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_eratosthene\:\:drawInfoTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Property Commande\\:\\:\\$availability \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_eratosthene\:\:drawTotalTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Commande\:\:\$availability \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Variable \\$carac_client_name might not be defined\\.$#" + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\|int\<1, max\>, status\: false, title\: array\{textkey\: ''Photo'', label\: '' ''\}, content\: array\{padding\: array\{0, 0, 0, 0\}\}, border\-left\: false\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Variable \\$realpath might not be defined\\.$#" + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\|int\<1, max\>, status\: true, title\: array\{textkey\: ''Photo'', label\: '' ''\}, content\: array\{padding\: array\{0, 0, 0, 0\}\}, border\-left\: false\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: "#^Property mod_commande_marbre\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\, status\: true, title\: array\{textkey\: ''PriceUHT''\}, border\-left\: true\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property pdf_eratosthene\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Variable \$carac_client_name might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Variable \$realpath might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php + + - + message: '#^Property mod_commande_marbre\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/commande/mod_commande_marbre.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Contrat given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_strato\\:\\:tabSignature\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php + + - + message: '#^Parameter \#3 \$tab_height of method pdf_strato\:\:tabSignature\(\) expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/contract/doc/pdf_strato.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/contract/doc/pdf_strato.modules.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Delivery given\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_storm\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Delivery given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: "#^Parameter \\#4 \\$columnText of method CommonDocGenerator\\:\\:printStdColumnContent\\(\\) expects string, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_storm\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: "#^Variable \\$realpath might not be defined\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_typhon\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Variable \$realpath might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_typhon\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php + + - + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php - - message: "#^Property pdf_typhon\\:\\:\\$posxcomm has no type specified\\.$#" + message: '#^Property pdf_typhon\:\:\$posxcomm has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php - - message: "#^Property pdf_typhon\\:\\:\\$posxremainingqty has no type specified\\.$#" + message: '#^Property pdf_typhon\:\:\$posxremainingqty has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php - - message: "#^Property pdf_typhon\\:\\:\\$posxweightvol has no type specified\\.$#" + message: '#^Property pdf_typhon\:\:\$posxweightvol has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php - - message: "#^Property mod_delivery_jade\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_delivery_jade\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/delivery/mod_delivery_jade.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/modules/dons/html_cerfafr.modules.php + + - + message: '#^Loose comparison using \!\= between 0 and '''' will always evaluate to true\.$#' + identifier: notEqual.alwaysTrue + count: 2 + path: ../../htdocs/core/modules/dons/html_cerfafr.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/modules/dons/html_generic.modules.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Expedition given\\.$#" + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Expedition given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php - - message: "#^Parameter \\#4 \\$columnText of method CommonDocGenerator\\:\\:printStdColumnContent\\(\\) expects string, float given\\.$#" + message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php - - message: "#^Parameter \\#4 \\$columnText of method CommonDocGenerator\\:\\:printStdColumnContent\\(\\) expects string, float\\|int\\\\|int\\<1, max\\> given\\.$#" + message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float\|int\\|int\<1, max\> given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_espadon\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_espadon\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php - - message: "#^Property pdf_merou\\:\\:\\$destinataire has no type specified\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php - - message: "#^Property pdf_merou\\:\\:\\$expediteur has no type specified\\.$#" + message: '#^Property pdf_merou\:\:\$destinataire has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php - - message: "#^Property pdf_merou\\:\\:\\$livreur has no type specified\\.$#" + message: '#^Property pdf_merou\:\:\$expediteur has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_rouget\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Property pdf_merou\:\:\$livreur has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php + + - + message: '#^Parameter \#4 \$posy of method pdf_rouget\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_rouget.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/expedition/doc/pdf_rouget.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/expedition/doc/pdf_rouget.modules.php - - message: "#^Property mod_expedition_safor\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_expedition_safor\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expedition/mod_expedition_safor.php - - message: "#^Parameter \\#3 \\$posy of method pdf_standard_expensereport\\:\\:tablePayments\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_standard_expensereport\:\:tablePayments\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_standard_expensereport\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$tab_height of method pdf_standard_expensereport\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Property pdf_standard_expensereport\\:\\:\\$postotalttc has no type specified\\.$#" + message: '#^Property pdf_standard_expensereport\:\:\$postotalttc has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Property pdf_standard_expensereport\\:\\:\\$posxcomment has no type specified\\.$#" + message: '#^Property pdf_standard_expensereport\:\:\$posxcomment has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Property pdf_standard_expensereport\\:\\:\\$posxpiece has no type specified\\.$#" + message: '#^Property pdf_standard_expensereport\:\:\$posxpiece has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Property pdf_standard_expensereport\\:\\:\\$posxprojet has no type specified\\.$#" + message: '#^Property pdf_standard_expensereport\:\:\$posxprojet has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Property pdf_standard_expensereport\\:\\:\\$posxtype has no type specified\\.$#" + message: '#^Property pdf_standard_expensereport\:\:\$posxtype has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 6 path: ../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php - - message: "#^Property mod_expensereport_jade\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_expensereport_jade\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/expensereport/mod_expensereport_jade.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Facture given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php - - message: "#^Variable \\$array_propal_object in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php + + - + message: '#^Variable \$array_propal_object in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable + count: 1 + path: ../../htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 6 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Facture given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_crabe\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_crabe\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_crabe\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_crabe\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Parameter \\#5 \\$heightforfooter of method pdf_crabe\\:\\:_tableau_versements\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#5 \$heightforfooter of method pdf_crabe\:\:_tableau_versements\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Property CommonInvoice\\:\\:\\$type \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 13 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Facture given\\.$#" + message: '#^Parameter \#1 \$a of method pdf_octopus\:\:sumSituation\(\) expects array\\|float\|int\>, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 7 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_octopus\\:\\:drawInfoTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#2 \$current_line of method pdf_octopus\:\:getInfosLineLastSituation\(\) expects FactureLigne, CommonInvoiceLine given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_octopus\\:\\:_tableFirstPage\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_octopus\:\:drawInfoTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_octopus\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$tab_height of method pdf_octopus\:\:_tableFirstPage\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Parameter \#3 \$tab_height of method pdf_octopus\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_octopus\\:\\:drawTotalTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_octopus\:\:drawTotalTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Variable \\$hidetop in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\, status\: true, title\: array\{textkey\: ''PriceUHT''\}, border\-left\: true\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Property pdf_octopus\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php + + - + message: '#^Variable \$hidetop in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Variable \\$realpath might not be defined\\.$#" + message: '#^Variable \$realpath might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: "#^Comparison operation \"\\>\" between int\\<2, max\\> and 1 is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 14 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Comparison operation "\>" between int\<2, max\> and 1 is always true\.$#' + identifier: greater.alwaysTrue count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Facture given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_sponge\\:\\:drawInfoTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_sponge\:\:drawInfoTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_sponge\\:\\:drawTotalTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_sponge\:\:drawTotalTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Property CommonInvoice\\:\\:\\$type \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Variable \\$realpath might not be defined\\.$#" + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: "#^Property mod_facture_mars\\:\\:\\$prefixcreditnote has no type specified\\.$#" + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\, status\: true, title\: array\{textkey\: ''PriceUHT''\}, border\-left\: true\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property pdf_sponge\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Variable \$realpath might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php + + - + message: '#^Property mod_facture_mars\:\:\$prefixcreditnote has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/facture/mod_facture_mars.php - - message: "#^Property mod_facture_mars\\:\\:\\$prefixdeposit has no type specified\\.$#" + message: '#^Property mod_facture_mars\:\:\$prefixdeposit has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/facture/mod_facture_mars.php - - message: "#^Property mod_facture_mars\\:\\:\\$prefixinvoice has no type specified\\.$#" + message: '#^Property mod_facture_mars\:\:\$prefixinvoice has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/facture/mod_facture_mars.php - - message: "#^Property mod_facture_mars\\:\\:\\$prefixreplacement has no type specified\\.$#" + message: '#^Property mod_facture_mars\:\:\$prefixreplacement has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/facture/mod_facture_mars.php - - message: "#^Access to constant TYPE_NON on an unknown class Sprain\\\\SwissQrBill\\\\DataGroup\\\\Element\\\\PaymentReference\\.$#" + message: '#^Access to constant TYPE_NON on an unknown class Sprain\\SwissQrBill\\DataGroup\\Element\\PaymentReference\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Call to static method create\\(\\) on an unknown class Sprain\\\\SwissQrBill\\\\DataGroup\\\\Element\\\\AdditionalInformation\\.$#" + message: '#^Call to static method create\(\) on an unknown class Sprain\\SwissQrBill\\DataGroup\\Element\\AdditionalInformation\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Call to static method create\\(\\) on an unknown class Sprain\\\\SwissQrBill\\\\DataGroup\\\\Element\\\\CombinedAddress\\.$#" + message: '#^Call to static method create\(\) on an unknown class Sprain\\SwissQrBill\\DataGroup\\Element\\CombinedAddress\.$#' + identifier: class.notFound count: 2 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Call to static method create\\(\\) on an unknown class Sprain\\\\SwissQrBill\\\\DataGroup\\\\Element\\\\CreditorInformation\\.$#" + message: '#^Call to static method create\(\) on an unknown class Sprain\\SwissQrBill\\DataGroup\\Element\\CreditorInformation\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Call to static method create\\(\\) on an unknown class Sprain\\\\SwissQrBill\\\\DataGroup\\\\Element\\\\PaymentAmountInformation\\.$#" + message: '#^Call to static method create\(\) on an unknown class Sprain\\SwissQrBill\\DataGroup\\Element\\PaymentAmountInformation\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Call to static method create\\(\\) on an unknown class Sprain\\\\SwissQrBill\\\\DataGroup\\\\Element\\\\PaymentReference\\.$#" + message: '#^Call to static method create\(\) on an unknown class Sprain\\SwissQrBill\\DataGroup\\Element\\PaymentReference\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Call to static method create\\(\\) on an unknown class Sprain\\\\SwissQrBill\\\\QrBill\\.$#" + message: '#^Call to static method create\(\) on an unknown class Sprain\\SwissQrBill\\QrBill\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Instantiated class Sprain\\\\SwissQrBill\\\\PaymentPart\\\\Output\\\\TcPdfOutput\\\\TcPdfOutput not found\\.$#" + message: '#^Instantiated class Sprain\\SwissQrBill\\PaymentPart\\Output\\TcPdfOutput\\TcPdfOutput not found\.$#' + identifier: class.notFound count: 1 path: ../../htdocs/core/modules/facture/modules_facture.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php - - message: "#^Property mod_pacific\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_pacific\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/fichinter/mod_pacific.php - - message: "#^Variable \\$max might not be defined\\.$#" + message: '#^Variable \$max might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/fichinter/mod_pacific.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_standard_evaluation\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$tab_height of method pdf_standard_evaluation\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property pdf_standard_evaluation\\:\\:\\$posxnotes has no type specified\\.$#" + message: '#^Property pdf_standard_evaluation\:\:\$posxnotes has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property pdf_standard_evaluation\\:\\:\\$posxpiece has no type specified\\.$#" + message: '#^Property pdf_standard_evaluation\:\:\$posxpiece has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property pdf_standard_evaluation\\:\\:\\$posxrankemp has no type specified\\.$#" + message: '#^Property pdf_standard_evaluation\:\:\$posxrankemp has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property pdf_standard_evaluation\\:\\:\\$posxrequiredrank has no type specified\\.$#" + message: '#^Property pdf_standard_evaluation\:\:\$posxrequiredrank has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property pdf_standard_evaluation\\:\\:\\$posxresult has no type specified\\.$#" + message: '#^Property pdf_standard_evaluation\:\:\$posxresult has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property pdf_standard_evaluation\\:\\:\\$posxskill has no type specified\\.$#" + message: '#^Property pdf_standard_evaluation\:\:\$posxskill has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/core/modules/hrm/doc/pdf_standard_evaluation.modules.php - - message: "#^Property mod_evaluation_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_evaluation_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/hrm/mod_evaluation_standard.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Method ImportCsv\\:\\:import_read_record\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Property ImportCsv\\:\\:\\$cacheconvert has no type specified\\.$#" + message: '#^Method ImportCsv\:\:import_read_record\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Property ImportCsv\\:\\:\\$cachefieldtable has no type specified\\.$#" + message: '#^Property ImportCsv\:\:\$cacheconvert has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Property ImportCsv\\:\\:\\$nbinsert has no type specified\\.$#" + message: '#^Property ImportCsv\:\:\$cachefieldtable has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Property ImportCsv\\:\\:\\$nbupdate has no type specified\\.$#" + message: '#^Property ImportCsv\:\:\$nbinsert has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Variable \\$key might not be defined\\.$#" + message: '#^Property ImportCsv\:\:\$nbupdate has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^Variable \\$where might not be defined\\.$#" + message: '#^Property ModeleImports\:\:\$errors \(array\\) does not accept array\\|string\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/import/import_csv.modules.php + + - + message: '#^Property ModeleImports\:\:\$errors \(array\\) does not accept array\\|string\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/import/import_csv.modules.php + + - + message: '#^Property ModeleImports\:\:\$warnings \(array\\) does not accept array\\|string\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/import/import_csv.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^Variable \$key might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/import/import_csv.modules.php + + - + message: '#^Variable \$where might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/import/import_csv.modules.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Method ImportXlsx\\:\\:import_read_record\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ImportXlsx\:\:import_read_record\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Property ImportXlsx\\:\\:\\$cacheconvert has no type specified\\.$#" + message: '#^Property ImportXlsx\:\:\$cacheconvert has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Property ImportXlsx\\:\\:\\$cachefieldtable has no type specified\\.$#" + message: '#^Property ImportXlsx\:\:\$cachefieldtable has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Property ImportXlsx\\:\\:\\$nbinsert has no type specified\\.$#" + message: '#^Property ImportXlsx\:\:\$nbinsert has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Property ImportXlsx\\:\\:\\$nbupdate has no type specified\\.$#" + message: '#^Property ImportXlsx\:\:\$nbupdate has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Variable \\$where might not be defined\\.$#" + message: '#^Property ModeleImports\:\:\$errors \(array\\) does not accept array\\|string\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/import/import_xlsx.modules.php + + - + message: '#^Property ModeleImports\:\:\$errors \(array\\) does not accept array\\|string\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/import/import_xlsx.modules.php + + - + message: '#^Property ModeleImports\:\:\$warnings \(array\\) does not accept array\\|string\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - message: "#^Property mailing_advthirdparties\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Variable \$where might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/import/import_xlsx.modules.php + + - + message: '#^Property mailing_advthirdparties\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/advthirdparties.modules.php - - message: "#^Property mailing_advthirdparties\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_advthirdparties\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/advthirdparties.modules.php - - message: "#^Property mailing_contacts1\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_contacts1\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/contacts1.modules.php - - message: "#^Property mailing_contacts1\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_contacts1\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/contacts1.modules.php - - message: "#^Property mailing_eventorganization\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_eventorganization\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/eventorganization.modules.php - - message: "#^Property mailing_eventorganization\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_eventorganization\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/eventorganization.modules.php - - message: "#^Property mailing_fraise\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_fraise\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/fraise.modules.php - - message: "#^Property mailing_fraise\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_fraise\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/fraise.modules.php - - message: "#^Comparison operation \"\\>\" between 0 and 1 is always false\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/mailings/modules_mailings.php - - message: "#^If condition is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/core/modules/mailings/modules_mailings.php - - message: "#^Variable \\$modName in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between 0 and 2 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/core/modules/mailings/modules_mailings.php - - message: "#^Property mailing_partnership\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Variable \$modName in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/core/modules/mailings/modules_mailings.php + + - + message: '#^Property mailing_partnership\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/partnership.modules.php - - message: "#^Property mailing_partnership\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_partnership\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/partnership.modules.php - - message: "#^Property mailing_pomme\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_pomme\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/pomme.modules.php - - message: "#^Property mailing_pomme\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_pomme\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/pomme.modules.php - - message: "#^Property mailing_thirdparties\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_thirdparties\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/thirdparties.modules.php - - message: "#^Property mailing_thirdparties\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_thirdparties\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/thirdparties.modules.php - - message: "#^Property mailing_thirdparties_services_expired\\:\\:\\$arrayofproducts has no type specified\\.$#" + message: '#^Property mailing_thirdparties_services_expired\:\:\$arrayofproducts has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/thirdparties_services_expired.modules.php - - message: "#^Property mailing_thirdparties_services_expired\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_thirdparties_services_expired\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/thirdparties_services_expired.modules.php - - message: "#^Property mailing_thirdparties_services_expired\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_thirdparties_services_expired\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/thirdparties_services_expired.modules.php - - message: "#^Property mailing_xinputfile\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_xinputfile\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/xinputfile.modules.php - - message: "#^Property mailing_xinputfile\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_xinputfile\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/xinputfile.modules.php - - message: "#^Property mailing_xinputuser\\:\\:\\$require_admin has no type specified\\.$#" + message: '#^Property mailing_xinputuser\:\:\$require_admin has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/xinputuser.modules.php - - message: "#^Property mailing_xinputuser\\:\\:\\$require_module has no type specified\\.$#" + message: '#^Property mailing_xinputuser\:\:\$require_module has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mailings/xinputuser.modules.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/member/doc/doc_generic_member_odt.class.php - - message: "#^Comparison operation \"\\>\" between 1 and 0 is always true\\.$#" + message: '#^Comparison operation "\>" between 1 and 0 is always true\.$#' + identifier: greater.alwaysTrue count: 2 path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" + message: '#^Method pdf_standard_member\:\:write_file\(\) has parameter \$object with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + + - + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + + - + message: '#^Parameter \#6 \$epaisseur of method CommonStickerGenerator\:\:_Croix\(\) expects int, float given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + + - + message: '#^Property Adherent\:\:\$photo \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAccounting.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAccounting.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAccounting.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 2 - path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + path: ../../htdocs/core/modules/modAdherent.class.php - - message: "#^Method pdf_standard_member\\:\\:write_file\\(\\) has parameter \\$object with no value type specified in iterable type array\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 - path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + path: ../../htdocs/core/modules/modAdherent.class.php - - message: "#^Parameter \\#6 \\$epaisseur of method CommonStickerGenerator\\:\\:_Croix\\(\\) expects int, float given\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 4 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 - path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + path: ../../htdocs/core/modules/modAdherent.class.php - - message: "#^Property Adherent\\:\\:\\$photo \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 - path: ../../htdocs/core/modules/member/doc/pdf_standard_member.class.php + path: ../../htdocs/core/modules/modAdherent.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 15 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modAdherent.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/modules/modAgenda.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/modCategorie.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modCategorie.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modCategorie.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modCategorie.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/modules/modCategorie.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/modCommande.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modCommande.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modCommande.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modCommande.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/core/modules/modCommande.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modContrat.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modContrat.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modContrat.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modContrat.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/modules/modDeplacement.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 6 + path: ../../htdocs/core/modules/modDon.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/modules/modEventOrganization.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/modExpedition.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 7 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/core/modules/modExpedition.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modExpenseReport.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modExpenseReport.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modExpenseReport.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 4 + path: ../../htdocs/core/modules/modExpenseReport.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFacture.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFacture.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFacture.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modFacture.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/core/modules/modFacture.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFicheinter.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFicheinter.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modFicheinter.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modFournisseur.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFournisseur.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFournisseur.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modFournisseur.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 5 + path: ../../htdocs/core/modules/modFournisseur.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modHoliday.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modHoliday.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modHoliday.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modHoliday.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/modules/modKnowledgeManagement.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modLoan.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modMailing.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modMailing.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/modules/modPartnership.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modPrelevement.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modPrelevement.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProduct.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProductBatch.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProductBatch.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modProductBatch.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 7 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modProjet.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/modPropale.class.php - - message: "#^Variable \\$user in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modPropale.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modPropale.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modPropale.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modPropale.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 5 + path: ../../htdocs/core/modules/modPropale.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/core/modules/modPropale.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/modReception.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modReception.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modReception.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modReception.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 4 + path: ../../htdocs/core/modules/modReception.class.php + + - + message: '#^Variable \$user in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/core/modules/modReception.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/modRecruitment.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modResource.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/core/modules/modSalaries.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modService.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modService.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modService.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modService.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 5 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modSociete.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 4 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$export_special_array \(array\\}\|string\>\>\) does not accept non\-empty\-array\\}\|string\>\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modStock.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modSupplierProposal.class.php + + - + message: '#^Property DolibarrModules\:\:\$const \(array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\) does not accept non\-empty\-array\, 5\?\: string, 6\?\: int\<0, 1\>\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/core/modules/modSupplierProposal.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modTax.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modTax.class.php + + - + message: '#^Property DolibarrModules\:\:\$export_permission \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modUser.class.php + + - + message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/modUser.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/core/modules/modWebsite.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/modules/modWorkstation.class.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Entrepot\\|MouvementStock given\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Entrepot\|MouvementStock given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php + + - + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Property pdf_standard_movementstock\\:\\:\\$posxdatemouv has no type specified\\.$#" + message: '#^Property pdf_standard_movementstock\:\:\$posxdatemouv has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Property pdf_standard_movementstock\\:\\:\\$posxidref has no type specified\\.$#" + message: '#^Property pdf_standard_movementstock\:\:\$posxidref has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Property pdf_standard_movementstock\\:\\:\\$wref has no type specified\\.$#" + message: '#^Property pdf_standard_movementstock\:\:\$wref has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Variable \\$lastmovementdate might not be defined\\.$#" + message: '#^Variable \$lastmovementdate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Mo given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php - - message: "#^Property Mo\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php + + - + message: '#^Property Mo\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php + + - + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Mo given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Mo given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_vinci\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_vinci\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Parameter \\#4 \\$columnText of method CommonDocGenerator\\:\\:printStdColumnContent\\(\\) expects string, float given\\.$#" + message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Property Mo\\:\\:\\$lines \\(array\\\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php + + - + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php + + - + message: '#^Property Mo\:\:\$lines \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: "#^Property mod_mo_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_mo_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/mrp/mod_mo_standard.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/modules/oauth/generic_oauthcallback.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/oauth/github_oauthcallback.php - - message: "#^Variable \\$state might not be defined\\.$#" + message: '#^Variable \$state might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/oauth/github_oauthcallback.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/oauth/microsoft2_oauthcallback.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/oauth/microsoft_oauthcallback.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" + message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#' + identifier: identical.alwaysTrue count: 2 path: ../../htdocs/core/modules/oauth/stripelive_oauthcallback.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/oauth/stripelive_oauthcallback.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/oauth/stripetest_oauthcallback.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/openid_connect/callback.php - - message: "#^Property mod_payment_cicada\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_payment_cicada\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/payment/mod_payment_cicada.php - - message: "#^Variable \\$response might not be defined\\.$#" + message: '#^Variable \$response might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/modules/printing/printgcp.modules.php - - message: "#^Variable \\$token might not be defined\\.$#" + message: '#^Variable \$token might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/modules/printing/printgcp.modules.php - - message: "#^Comparison operation \"\\>\" between 1 and 0 is always true\\.$#" + message: '#^Comparison operation "\>" between 1 and 0 is always true\.$#' + identifier: greater.alwaysTrue count: 2 path: ../../htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" - count: 2 - path: ../../htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php - - - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php - - message: "#^Parameter \\#6 \\$epaisseur of method CommonStickerGenerator\\:\\:_Croix\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#6 \$epaisseur of method CommonStickerGenerator\:\:_Croix\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php - - message: "#^Comparison operation \"\\>\" between 1 and 0 is always true\\.$#" + message: '#^Comparison operation "\>" between 1 and 0 is always true\.$#' + identifier: greater.alwaysTrue count: 2 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Else branch is unreachable because previous condition is always true\\.$#" - count: 2 - path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - - - message: "#^Parameter \\#5 \\$x of method pdf_tcpdflabel\\:\\:writeBarcode\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#5 \$x of method pdf_tcpdflabel\:\:writeBarcode\(\) expects int, float given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Parameter \\#7 \\$w of method pdf_tcpdflabel\\:\\:writeBarcode\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#7 \$w of method pdf_tcpdflabel\:\:writeBarcode\(\) expects int, float given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Parameter \\#8 \\$h of method pdf_tcpdflabel\\:\\:writeBarcode\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#8 \$h of method pdf_tcpdflabel\:\:writeBarcode\(\) expects int, float given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Property pdf_tcpdflabel\\:\\:\\$_align2d has no type specified\\.$#" + message: '#^Property pdf_tcpdflabel\:\:\$_align2d has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Property pdf_tcpdflabel\\:\\:\\$_style1d has no type specified\\.$#" + message: '#^Property pdf_tcpdflabel\:\:\$_style1d has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Property pdf_tcpdflabel\\:\\:\\$_style2d has no type specified\\.$#" + message: '#^Property pdf_tcpdflabel\:\:\$_style2d has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Property pdf_tcpdflabel\\:\\:\\$_xres has no type specified\\.$#" + message: '#^Property pdf_tcpdflabel\:\:\$_xres has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Product given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php - - message: "#^Property Product\\:\\:\\$weight_units \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php + + - + message: '#^Property Product\:\:\$weight_units \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/product/doc/pdf_standard.modules.php - - message: "#^Method ModeleProductCode\\:\\:liste_modeles\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ModeleProductCode\:\:liste_modeles\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/core/modules/product/modules_product.class.php - - message: "#^Property mod_lot_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_lot_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/product_batch/mod_lot_standard.php - - message: "#^Property mod_sn_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_sn_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/product_batch/mod_sn_standard.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Project given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php - - message: "#^Variable \\$objectdetail might not be defined\\.$#" + message: '#^Parameter \#1 \$object of method doc_generic_project_odt\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^Parameter \#2 \$array_to_fill of method CommonDocGenerator\:\:fill_substitutionarray_with_extrafields\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php + + - + message: '#^Variable \$objectdetail might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/project/doc/pdf_baleine.modules.php - - message: "#^Comparison operation \"\\>\\=\" between int\\<0, max\\> and 0 is always true\\.$#" + message: '#^Comparison operation "\>\=" between int\<0, max\> and 0 is always true\.$#' + identifier: greaterOrEqual.alwaysTrue count: 1 path: ../../htdocs/core/modules/project/doc/pdf_beluga.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/project/doc/pdf_beluga.modules.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Loose comparison using \=\= between ''L'' and ''L'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/core/modules/project/doc/pdf_beluga.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 2 + path: ../../htdocs/core/modules/project/doc/pdf_beluga.modules.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/core/modules/project/doc/pdf_timespent.modules.php - - message: "#^Property mod_project_simple\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_project_simple\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/project/mod_project_simple.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" - count: 1 - path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php - - - - message: "#^Variable \\$listlines might not be defined\\.$#" - count: 3 - path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php - - - - message: "#^Variable \\$objectdetail might not be defined\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php - - message: "#^Property mod_task_simple\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Project\|Task given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Parameter \#1 \$task of method doc_generic_task_odt\:\:get_substitutionarray_tasks\(\) expects Task, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Parameter \#2 \$array_to_fill of method CommonDocGenerator\:\:fill_substitutionarray_with_extrafields\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Variable \$listlines might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Variable \$objectdetail might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php + + - + message: '#^Property mod_task_simple\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/project/task/mod_task_simple.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Propal given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Propal given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php + + - + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Propal given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php + + - + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_azur\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_azur\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_azur\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_azur\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Variable \\$filetomerge_dir might not be defined\\.$#" + message: '#^Variable \$filetomerge_dir might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, Propal given\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Propal given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 5 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_cyan\\:\\:drawInfoTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_cyan\:\:drawInfoTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_cyan\\:\\:drawTotalTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_cyan\:\:drawTotalTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Variable \\$filetomerge_dir might not be defined\\.$#" + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\, status\: true, title\: array\{textkey\: ''PriceUHT''\}, border\-left\: true\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Property pdf_cyan\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php + + - + message: '#^Variable \$filetomerge_dir might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: "#^Property mod_propale_marbre\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_propale_marbre\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/propale/mod_propale_marbre.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/modules/rapport/pdf_paiement.class.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Reception given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_squille\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php + + - + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php + + - + message: '#^Parameter \#4 \$posy of method pdf_squille\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/reception/doc/pdf_squille.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/reception/doc/pdf_squille.modules.php - - message: "#^Property Reception\\:\\:\\$trueWeight \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$trueWeight \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/reception/doc/pdf_squille.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/reception/doc/pdf_squille.modules.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Call to function is_array\(\) with array\, mixed\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/modules/societe/doc/doc_generic_odt.modules.php - - message: "#^Variable \\$contactstatic might not be defined\\.$#" + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/societe/doc/doc_generic_odt.modules.php + + - + message: '#^Variable \$contactstatic might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/modules/societe/doc/doc_generic_odt.modules.php - - message: "#^Property mod_codeclient_monkey\\:\\:\\$prefixcustomer has no type specified\\.$#" + message: '#^Property mod_codeclient_monkey\:\:\$prefixcustomer has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codeclient_monkey.php - - message: "#^Property mod_codeclient_monkey\\:\\:\\$prefixsupplier has no type specified\\.$#" + message: '#^Property mod_codeclient_monkey\:\:\$prefixsupplier has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codeclient_monkey.php - - message: "#^Property mod_codecompta_aquarium\\:\\:\\$position has no type specified\\.$#" + message: '#^Property mod_codecompta_aquarium\:\:\$position has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_aquarium.php - - message: "#^Property mod_codecompta_aquarium\\:\\:\\$prefixcustomeraccountancycode has no type specified\\.$#" + message: '#^Property mod_codecompta_aquarium\:\:\$prefixcustomeraccountancycode has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_aquarium.php - - message: "#^Property mod_codecompta_aquarium\\:\\:\\$prefixsupplieraccountancycode has no type specified\\.$#" + message: '#^Property mod_codecompta_aquarium\:\:\$prefixsupplieraccountancycode has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_aquarium.php - - message: "#^Comparison operation \"\\<\\=\" between int\\<100, 999\\> and 999 is always true\\.$#" + message: '#^Comparison operation "\<\=" between int\<100, 999\> and 999 is always true\.$#' + identifier: smallerOrEqual.alwaysTrue count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_digitaria.php - - message: "#^Property mod_codecompta_digitaria\\:\\:\\$customeraccountancycodecharacternumber has no type specified\\.$#" + message: '#^Property mod_codecompta_digitaria\:\:\$customeraccountancycodecharacternumber has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_digitaria.php - - message: "#^Property mod_codecompta_digitaria\\:\\:\\$position has no type specified\\.$#" + message: '#^Property mod_codecompta_digitaria\:\:\$position has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_digitaria.php - - message: "#^Property mod_codecompta_digitaria\\:\\:\\$supplieraccountancycodecharacternumber has no type specified\\.$#" + message: '#^Property mod_codecompta_digitaria\:\:\$supplieraccountancycodecharacternumber has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_digitaria.php - - message: "#^Variable \\$a might not be defined\\.$#" + message: '#^Variable \$a might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/modules/societe/mod_codecompta_digitaria.php - - message: "#^Variable \\$thirdpartylabelexample might not be defined\\.$#" + message: '#^Variable \$thirdpartylabelexample might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/modules/societe/mod_codecompta_digitaria.php - - message: "#^Property mod_codecompta_panicum\\:\\:\\$position has no type specified\\.$#" + message: '#^Property mod_codecompta_panicum\:\:\$position has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/societe/mod_codecompta_panicum.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, Entrepot given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php - - message: "#^Property pdf_standard_stock\\:\\:\\$wref has no type specified\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php + + - + message: '#^Property pdf_standard_stock\:\:\$wref has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/stock/doc/pdf_standard_stock.modules.php - - message: "#^Variable \\$lastmovementdate might not be defined\\.$#" + message: '#^Variable \$lastmovementdate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/stock/doc/pdf_standard_stock.modules.php - - message: "#^Variable \\$pricemin might not be defined\\.$#" + message: '#^Variable \$pricemin might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/stock/doc/pdf_standard_stock.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_eagle\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_eagle\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php - - message: "#^Variable \\$carac_emetteur_name might not be defined\\.$#" + message: '#^Variable \$carac_emetteur_name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, StockTransfer given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, StockTransfer given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_eagle_proforma\\:\\:drawTotalTable\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_eagle_proforma\:\:drawTotalTable\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: "#^Variable \\$carac_emetteur_name might not be defined\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: "#^Variable \\$pmp might not be defined\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: "#^Variable \\$realpath might not be defined\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: "#^Property mod_stocktransfer_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\, status\: true, title\: array\{textkey\: ''PMPValueShort''\}, border\-left\: true\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Variable \$carac_emetteur_name might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Variable \$pmp might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Variable \$realpath might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php + + - + message: '#^Property mod_stocktransfer_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/stocktransfer/mod_stocktransfer_standard.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, FactureFournisseur given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php - - message: "#^Variable \\$objectref might not be defined\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, FactureFournisseur given\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php + + - + message: '#^Variable \$objectref might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, FactureFournisseur given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_canelle\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_canelle\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Parameter \\#5 \\$heightforfooter of method pdf_canelle\\:\\:_tableau_versements\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#5 \$heightforfooter of method pdf_canelle\:\:_tableau_versements\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Property CommonObject\\:\\:\\$multicurrency_tx \\(array\\\\|float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: "#^Property mod_facture_fournisseur_cactus\\:\\:\\$prefixcreditnote has no type specified\\.$#" + message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixcreditnote has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php - - message: "#^Property mod_facture_fournisseur_cactus\\:\\:\\$prefixdeposit has no type specified\\.$#" + message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixdeposit has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php - - message: "#^Property mod_facture_fournisseur_cactus\\:\\:\\$prefixinvoice has no type specified\\.$#" + message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixinvoice has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, CommandeFournisseur given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php - - message: "#^Variable \\$objectref might not be defined\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php + + - + message: '#^Variable \$objectref might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php + + - + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, CommandeFournisseur given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, CommandeFournisseur given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_cornas\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_cornas\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_cornas\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_cornas\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Property CommandeFournisseur\\:\\:\\$multicurrency_tx \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommandeFournisseur\:\:\$multicurrency_tx \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Parameter \\#3 \\$posy of method pdf_muscadet\\:\\:_tableau_info\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_muscadet\:\:_tableau_info\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_muscadet\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_muscadet\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Property CommandeFournisseur\\:\\:\\$multicurrency_tx \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommandeFournisseur\:\:\$multicurrency_tx \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php - - message: "#^Property mod_commande_fournisseur_muguet\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_commande_fournisseur_muguet\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php - - message: "#^Variable \\$max might not be defined\\.$#" + message: '#^Variable \$max might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php - - message: "#^Parameter \\#3 \\$posy of method pdf_standard_supplierpayment\\:\\:_tableau_cheque\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$posy of method pdf_standard_supplierpayment\:\:_tableau_cheque\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_standard_supplierpayment\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#3 \$tab_height of method pdf_standard_supplierpayment\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Property pdf_standard_supplierpayment\\:\\:\\$posxdate has no type specified\\.$#" + message: '#^Property pdf_standard_supplierpayment\:\:\$posxdate has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Property pdf_standard_supplierpayment\\:\\:\\$posxreffacture has no type specified\\.$#" + message: '#^Property pdf_standard_supplierpayment\:\:\$posxreffacture has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Property pdf_standard_supplierpayment\\:\\:\\$posxreffacturefourn has no type specified\\.$#" + message: '#^Property pdf_standard_supplierpayment\:\:\$posxreffacturefourn has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Property pdf_standard_supplierpayment\\:\\:\\$posxtotalttc has no type specified\\.$#" + message: '#^Property pdf_standard_supplierpayment\:\:\$posxtotalttc has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Property pdf_standard_supplierpayment\\:\\:\\$posxtype has no type specified\\.$#" + message: '#^Property pdf_standard_supplierpayment\:\:\$posxtype has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_payment/doc/pdf_standard_supplierpayment.modules.php - - message: "#^Property mod_supplier_payment_bronan\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_supplier_payment_bronan\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php - - message: "#^Parameter \\#1 \\$line of method CommonDocGenerator\\:\\:get_substitutionarray_lines\\(\\) expects CommonObjectLine, CommonObject\\|stdClass given\\.$#" + message: '#^Parameter \#1 \$line of method CommonDocGenerator\:\:get_substitutionarray_lines\(\) expects CommonObjectLine, CommonObject\|stdClass given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, SupplierProposal given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, SupplierProposal given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 5 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: "#^Parameter \\#5 \\$w of function pdf_writelinedesc expects int, float given\\.$#" + message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: "#^Property SupplierProposal\\:\\:\\$multicurrency_tx \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property SupplierProposal\:\:\$multicurrency_tx \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, SupplierProposal given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, SupplierProposal given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Parameter \\#4 \\$posy of method pdf_zenith\\:\\:_tableau_tot\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$posy of method pdf_zenith\:\:_tableau_tot\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Property SupplierProposal\\:\\:\\$multicurrency_tx \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property CommonDocGenerator\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Property SupplierProposal\:\:\$multicurrency_tx \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: "#^Property mod_supplier_proposal_marbre\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_supplier_proposal_marbre\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/supplier_proposal/mod_supplier_proposal_marbre.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php - - message: "#^Variable \\$contactobject might not be defined\\.$#" + message: '#^Variable \$contactobject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php - - message: "#^Property mod_ticket_simple\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Property mod_ticket_simple\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/ticket/mod_ticket_simple.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php - - message: "#^Variable \\$contactobject might not be defined\\.$#" + message: '#^Variable \$contactobject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Call to function is_array\(\) with string will always evaluate to false\.$#' + identifier: function.impossibleType count: 1 path: ../../htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php - - message: "#^Variable \\$contactobject might not be defined\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, UserGroup given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php - - message: "#^Property mod_workstation_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php + + - + message: '#^Variable \$contactobject might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php + + - + message: '#^Property mod_workstation_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/core/modules/workstation/mod_workstation_standard.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/core/multicompany_page.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/core/multicompany_page.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/multicompany_page.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/core/photos_resize.php - - message: "#^Variable \\$dolibarr_main_data_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_data_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/photos_resize.php - - message: "#^Variable \\$modulepart in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$modulepart in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/photos_resize.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/photos_resize.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/core/search_page.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Loose comparison using \=\= between 1 and 2 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/core/search_page.php - - message: "#^Variable \\$type2label might not be defined\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/core/search_page.php + + - + message: '#^Variable \$type2label might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/admin_extrafields_edit.tpl.php - - message: "#^Variable \\$type2label might not be defined\\.$#" + message: '#^Variable \$type2label might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/admin_extrafields_view.tpl.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/advtarget.tpl.php - - message: "#^Property CommonObject\\:\\:\\$lines \\(array\\\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/advtarget.tpl.php + + - + message: '#^Property CommonObject\:\:\$lines \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/tpl/ajaxrow.tpl.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/bloc_comment.tpl.php - - message: "#^Variable \\$idcomment might not be defined\\.$#" + message: '#^Variable \$idcomment might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/bloc_comment.tpl.php - - message: "#^Variable \\$title might not be defined\\.$#" + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/bloc_showhide.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/card_presend.tpl.php + + - + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$defaulttopic might not be defined\\.$#" + message: '#^Variable \$defaulttopic might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$diroutput might not be defined\\.$#" + message: '#^Variable \$diroutput might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$file might not be defined\\.$#" + message: '#^Variable \$file might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$hidedesc might not be defined\\.$#" + message: '#^Variable \$hidedesc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$hidedetails might not be defined\\.$#" + message: '#^Variable \$hidedetails might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$hideref might not be defined\\.$#" + message: '#^Variable \$hideref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$modelmail might not be defined\\.$#" + message: '#^Variable \$modelmail might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 36 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/card_presend.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/commonfields_edit.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/commonfields_view.tpl.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/core/tpl/contacts.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/contacts.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/tpl/contacts.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/contacts.tpl.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/contacts.tpl.php + + - + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/contacts.tpl.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/contacts.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$filearray might not be defined\\.$#" + message: '#^Variable \$filearray might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$modulepart might not be defined\\.$#" + message: '#^Variable \$modulepart might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$permissiontoadd might not be defined\\.$#" + message: '#^Variable \$permissiontoadd might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$sortfield might not be defined\\.$#" + message: '#^Variable \$sortfield might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$sortorder might not be defined\\.$#" + message: '#^Variable \$sortorder might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/tpl/extrafields_add.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 2 + path: ../../htdocs/core/tpl/extrafields_edit.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/extrafields_list_array_fields.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/extrafields_list_array_fields.tpl.php + + - + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_print_fields.tpl.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_print_fields.tpl.php - - message: "#^Variable \\$obj might not be defined\\.$#" + message: '#^Variable \$obj might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/extrafields_list_print_fields.tpl.php - - message: "#^Variable \\$totalarray might not be defined\\.$#" + message: '#^Variable \$totalarray might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/extrafields_list_print_fields.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_input.tpl.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - message: "#^Variable \\$extrafieldsobjectkey might not be defined\\.$#" + message: '#^Variable \$extrafieldsobjectkey might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_title.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_title.tpl.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_title.tpl.php - - message: "#^Variable \\$sortfield might not be defined\\.$#" + message: '#^Variable \$sortfield might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_title.tpl.php - - message: "#^Variable \\$sortorder might not be defined\\.$#" + message: '#^Variable \$sortorder might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/extrafields_list_search_title.tpl.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/core/tpl/extrafields_view.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/extrafields_view.tpl.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/extrafields_view.tpl.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$ecmdir might not be defined\\.$#" + message: '#^Variable \$ecmdir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$filepathnoext might not be defined\\.$#" + message: '#^Variable \$filepathnoext might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$module in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$module in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$pageid might not be defined\\.$#" + message: '#^Variable \$pageid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$websitekey might not be defined\\.$#" + message: '#^Variable \$websitekey might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/filemanager.tpl.php - - message: "#^Variable \\$showlinktoai might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/formlayoutai.tpl.php - - message: "#^Variable \\$showlinktoailabel might not be defined\\.$#" + message: '#^Variable \$showlinktoai might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/formlayoutai.tpl.php + + - + message: '#^Variable \$showlinktoailabel might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/formlayoutai.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/list_print_subtotal.tpl.php - - message: "#^Variable \\$limit might not be defined\\.$#" + message: '#^Variable \$limit might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/list_print_total.tpl.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/list_print_total.tpl.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/list_print_total.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/tpl/login.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/tpl/massactions_pre.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/tpl/object_currency_amount.tpl.php + + - + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/tpl/object_currency_amount.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/object_currency_amount.tpl.php - - message: "#^Variable \\$usercancreate might not be defined\\.$#" + message: '#^Variable \$usercancreate might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/object_currency_amount.tpl.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$backtopage might not be defined\\.$#" + message: '#^Variable \$backtopage might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$filterabsolutediscount might not be defined\\.$#" + message: '#^Variable \$filterabsolutediscount might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$filtercreditnote might not be defined\\.$#" + message: '#^Variable \$filtercreditnote might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$resteapayer might not be defined\\.$#" + message: '#^Variable \$resteapayer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Variable \\$thirdparty might not be defined\\.$#" + message: '#^Variable \$thirdparty might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/tpl/object_discounts.tpl.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Left side of \|\| is always true\.$#' + identifier: booleanOr.leftAlwaysTrue count: 1 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$buyer might not be defined\\.$#" + message: '#^Variable \$buyer might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$date_end_prefill might not be defined\\.$#" + message: '#^Variable \$date_end_prefill might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$date_start_prefill might not be defined\\.$#" + message: '#^Variable \$date_start_prefill might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$seller might not be defined\\.$#" + message: '#^Variable \$seller might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$type_tva might not be defined\\.$#" + message: '#^Variable \$type_tva might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$usehm might not be defined\\.$#" + message: '#^Variable \$usehm might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/objectline_create.tpl.php - - message: "#^Variable \\$buyer might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/core/tpl/objectline_edit.tpl.php + + - + message: '#^Variable \$buyer might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$seller might not be defined\\.$#" + message: '#^Variable \$seller might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$var might not be defined\\.$#" + message: '#^Variable \$var might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_edit.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_title.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/objectline_title.tpl.php - - message: "#^Variable \\$outputalsopricetotalwithtax might not be defined\\.$#" + message: '#^Variable \$outputalsopricetotalwithtax might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_title.tpl.php - - message: "#^Variable \\$usemargins might not be defined\\.$#" + message: '#^Variable \$usemargins might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/objectline_title.tpl.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/core/tpl/objectline_view.tpl.php + + - + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$objp might not be defined\\.$#" + message: '#^Variable \$objp might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/objectlinked_lineimport.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/objectlinked_lineimport.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 29 path: ../../htdocs/core/tpl/onlinepaymentlinks.tpl.php - - message: "#^Variable \\$servicename might not be defined\\.$#" + message: '#^Variable \$servicename might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/core/tpl/onlinepaymentlinks.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/originproductline.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$disabled might not be defined\\.$#" + message: '#^Variable \$disabled might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$dol_url_root might not be defined\\.$#" + message: '#^Variable \$dol_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$focus_element might not be defined\\.$#" + message: '#^Variable \$focus_element might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 10 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$mode might not be defined\\.$#" + message: '#^Variable \$mode might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$urllogo might not be defined\\.$#" + message: '#^Variable \$urllogo might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$username might not be defined\\.$#" + message: '#^Variable \$username might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordforgotten.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$disabled might not be defined\\.$#" + message: '#^Variable \$disabled might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$dol_url_root might not be defined\\.$#" + message: '#^Variable \$dol_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$focus_element might not be defined\\.$#" + message: '#^Variable \$focus_element might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 18 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$mode might not be defined\\.$#" + message: '#^Variable \$mode might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$newpass1 might not be defined\\.$#" + message: '#^Variable \$newpass1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$newpass2 might not be defined\\.$#" + message: '#^Variable \$newpass2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$passworduidhash might not be defined\\.$#" + message: '#^Variable \$passworduidhash might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$setnewpassword might not be defined\\.$#" + message: '#^Variable \$setnewpassword might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$urllogo might not be defined\\.$#" + message: '#^Variable \$urllogo might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$username might not be defined\\.$#" + message: '#^Variable \$username might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/passwordreset.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/tpl/resource_add.tpl.php - - message: "#^Variable \\$element might not be defined\\.$#" + message: '#^Variable \$element might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/resource_add.tpl.php - - message: "#^Variable \\$element_id might not be defined\\.$#" + message: '#^Variable \$element_id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/resource_add.tpl.php - - message: "#^Variable \\$element_ref might not be defined\\.$#" + message: '#^Variable \$element_ref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/resource_add.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/resource_add.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$element might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/core/tpl/resource_view.tpl.php + + - + message: '#^Variable \$element might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$element_id might not be defined\\.$#" + message: '#^Variable \$element_id might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$linked_resources might not be defined\\.$#" + message: '#^Variable \$linked_resources might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$mode might not be defined\\.$#" + message: '#^Variable \$mode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$resource_type might not be defined\\.$#" + message: '#^Variable \$resource_type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/tpl/resource_view.tpl.php - - message: "#^Variable \\$shippingline might not be defined\\.$#" + message: '#^Variable \$shippingline might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php - - message: "#^Property CommonObject\\:\\:\\$sendtoid \\(array\\\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$sendtoid \(array\\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php - - message: "#^Property Conf\\:\\:\\$notification \\(stdClass\\) in empty\\(\\) is not falsy\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/triggers/interface_50_modEventOrganization_EventOrganization.class.php + + - + message: '#^Property Conf\:\:\$notification \(stdClass\) in empty\(\) is not falsy\.$#' + identifier: empty.property count: 1 path: ../../htdocs/core/triggers/interface_50_modNotification_Notification.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php - - message: "#^Variable \\$old_MAIN_MAIL_AUTOCOPY_TO might not be defined\\.$#" + message: '#^Variable \$old_MAIN_MAIL_AUTOCOPY_TO might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Call to function method_exists\(\) with Contact and ''getContactRoles'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php + + - + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/triggers/interface_95_modWebhook_WebhookTriggers.class.php + + - + message: '#^Call to function is_null\(\) with null will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 4 + path: ../../htdocs/core/website.inc.php + + - + message: '#^Call to function is_object\(\) with WebsitePage will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/core/website.inc.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/core/website.inc.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/core/website.inc.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/core/website.inc.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/website.inc.php - - message: "#^Variable \\$websitekey might not be defined\\.$#" + message: '#^Variable \$websitekey might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/core/website.inc.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/cron/card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/cron/card.php - - message: "#^Result of && is always false\\.$#" - count: 1 + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 path: ../../htdocs/cron/card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 5 path: ../../htdocs/cron/card.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/cron/card.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/cron/class/cronjob.class.php + + - + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/cron/class/cronjob.class.php + + - + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$command \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$command \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$dateend \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$dateend \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$datenextrun \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$datenextrun \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$datestart \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$datestart \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$email_alert \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$email_alert \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$frequency \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$frequency \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$jobtype \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$jobtype \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$lastoutput \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$lastoutput \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$lastresult \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$lastresult \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$libname \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$libname \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$maxrun \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$maxrun \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$nbrun \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$nbrun \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$processing \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$processing \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$test \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$test \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Property Cronjob\\:\\:\\$unitfrequency \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Cronjob\:\:\$unitfrequency \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Variable \\$ExecTimeLimit in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$ExecTimeLimit in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Variable \\$MemoryLimit in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$MemoryLimit in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 10 path: ../../htdocs/cron/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/cron/list.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/cron/list.php - - message: "#^Variable \\$head might not be defined\\.$#" + message: '#^Variable \$head might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/cron/list.php - - message: "#^Variable \\$texttoshow might not be defined\\.$#" + message: '#^Variable \$texttoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/cron/list.php - - message: "#^Offset 'css' on array\\{css\\: 'minwidth200', picto\\: mixed\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''css'' on array\{css\: ''minwidth200'', picto\: mixed\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/datapolicy/admin/setup.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/datapolicy/class/datapolicy.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \=\= between ''anonymize'' and ''anonymize'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/datapolicy/class/datapolicycron.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''anonymize'' and ''delete'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/datapolicy/class/datapolicycron.class.php - - message: "#^Variable \\$baseUri in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Method CdavLib\:\:getFullCalendarObjects\(\) should return array\\> but returns list\\>\.$#' + identifier: return.type + count: 1 + path: ../../htdocs/dav/dav.class.php + + - + message: '#^Variable \$baseUri in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/dav/fileserver.php - - message: "#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, array\\{\\$this\\(PhpCollector\\), 'errorHandler'\\} given\\.$#" + message: '#^Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int\)\: bool\)\|null, array\{\$this\(PhpCollector\), ''errorHandler''\} given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/debugbar/class/DataCollector/DolPhpCollector.php - - message: "#^Parameter \\#2 \\$resql of method TraceableDB\\:\\:endTracing\\(\\) expects string, bool\\|mysqli_result\\|resource given\\.$#" + message: '#^Parameter \#2 \$resql of method TraceableDB\:\:endTracing\(\) expects string, bool\|mysqli_result\|resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/debugbar/class/TraceableDB.php - - message: "#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, Closure\\(mixed\\)\\: bool given\\.$#" + message: '#^Parameter \#1 \$callback of function spl_autoload_register expects \(callable\(string\)\: void\)\|null, Closure\(mixed\)\: bool given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/debugbar/class/autoloader.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/delivery/card.php - - message: "#^Variable \\$arrayoptions might not be defined\\.$#" + message: '#^Variable \$arrayoptions might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/delivery/card.php - - message: "#^Variable \\$hidedesc might not be defined\\.$#" + message: '#^Variable \$hidedesc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/delivery/card.php - - message: "#^Variable \\$hidedetails might not be defined\\.$#" + message: '#^Variable \$hidedetails might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/delivery/card.php - - message: "#^Variable \\$hideref might not be defined\\.$#" + message: '#^Variable \$hideref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/delivery/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/delivery/card.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/delivery/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/delivery/class/delivery.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/delivery/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/delivery/tpl/linkedobjectblock.tpl.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/document.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/document.php - - message: "#^Variable \\$hidedesc might not be defined\\.$#" + message: '#^Variable \$hidedesc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/card.php - - message: "#^Variable \\$hidedetails might not be defined\\.$#" + message: '#^Variable \$hidedetails might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/card.php - - message: "#^Variable \\$hideref might not be defined\\.$#" + message: '#^Variable \$hideref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/don/card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/don/card.php - - message: "#^Variable \\$totalpaid might not be defined\\.$#" + message: '#^Variable \$totalpaid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/don/card.php - - message: "#^Method Donations\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Donations\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Method Donations\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Donations\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Method Donations\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Donations\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Method Donations\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Donations\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Method Donations\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Donations\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Method Donations\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Donations\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Property Donations\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Donations\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/don/class/api_donations.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/don/class/don.class.php - - message: "#^Property Don\\:\\:\\$email \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Don\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/don/class/don.class.php - - message: "#^Property Don\\:\\:\\$societe \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Don\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/don/class/don.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Don\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/don/class/don.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Don\) and ''date'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Don\) and ''societe'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^PHPDoc tag @var with type Contact is not subtype of native type \$this\(Don\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^PHPDoc tag @var with type Societe is not subtype of native type \$this\(Don\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^PHPDoc tag @var with type User is not subtype of native type \$this\(Don\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^Property Don\:\:\$email \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^Property Don\:\:\$societe \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/don/class/don.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 5 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$amount \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$amount \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$fk_donation \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$fk_donation \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$fk_typepayment \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$fk_typepayment \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Property PaymentDonation\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentDonation\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 2 path: ../../htdocs/don/class/paymentdonation.class.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/document.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/index.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/info.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/don/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/don/list.php - - message: "#^Variable \\$projectstatic might not be defined\\.$#" + message: '#^Variable \$projectstatic might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/don/list.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/note.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Variable \\$arrayofselected might not be defined\\.$#" + message: '#^Variable \$arrayofselected might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Variable \\$morecss might not be defined\\.$#" + message: '#^Variable \$morecss might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Variable \\$morejs might not be defined\\.$#" + message: '#^Variable \$morejs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/paiement/list.php - - message: "#^Variable \\$outputlangs might not be defined\\.$#" + message: '#^Variable \$outputlangs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/payment/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/don/payment/payment.php - - message: "#^Variable \\$sumpaid might not be defined\\.$#" + message: '#^Variable \$sumpaid might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/don/payment/payment.php - - message: "#^Variable \\$objectlink might not be defined\\.$#" + message: '#^Variable \$objectlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/don/tpl/linkedobjectblock.tpl.php - - message: "#^Property EcmFiles\\:\\:\\$acl \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$acl \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$cover \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$cover \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$date_c \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$date_c \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$date_m \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$date_m \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$extraparams \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$extraparams \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$filename \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$filename \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$filepath \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$filepath \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$fk_user_c \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$fk_user_c \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$fk_user_m \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$fk_user_m \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$fullpath_orig \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$fullpath_orig \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$gen_or_uploaded \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$gen_or_uploaded \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$keywords \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$keywords \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$position \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$position \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$share \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$share \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$src_object_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$src_object_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Property EcmFiles\\:\\:\\$src_object_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property EcmFiles\:\:\$src_object_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ecm/class/ecmfiles.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/ecm/dir_add_card.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/dir_add_card.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/dir_card.php - - message: "#^Variable \\$oldlabel might not be defined\\.$#" + message: '#^Variable \$oldlabel might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/dir_card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/ecm/file_card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/ecm/file_card.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Parameter \#1 \$object of function ecm_file_prepare_head expects EcmFiles, CommonObject given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/ecm/file_card.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/ecm/file_card.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/ecm/file_card.php - - message: "#^Variable \\$module might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/ecm/file_card.php + + - + message: '#^Variable \$module might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ecm/file_card.php - - message: "#^Variable \\$relativepath might not be defined\\.$#" + message: '#^Variable \$relativepath might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/index.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/ecm/index_medias.php - - message: "#^Variable \\$bc might not be defined\\.$#" + message: '#^Variable \$bc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/search.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/tpl/enablefiletreeajax.tpl.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ecm/tpl/enablefiletreeajax.tpl.php - - message: "#^Comparison operation \"\\>\" between 0 and 1000 is always false\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Parameter \\#2 \\$message_num of function imap_body expects int, string given\\.$#" + message: '#^Call to function is_null\(\) with null will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Parameter \\#2 \\$message_num of function imap_fetchbody expects int, string given\\.$#" + message: '#^Comparison operation "\>" between 0 and 1000 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Parameter \\#2 \\$message_num of function imap_fetchstructure expects int, string given\\.$#" + message: '#^Parameter \#2 \$message_num of function imap_body expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Parameter \\#4 \\$partno of method EmailCollector\\:\\:getpart\\(\\) expects string, \\(float\\|int\\) given\\.$#" + message: '#^Parameter \#2 \$message_num of function imap_fetchbody expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Parameter \#2 \$message_num of function imap_fetchstructure expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Parameter \#4 \$partno of method EmailCollector\:\:getpart\(\) expects string, \(float\|int\) given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/emailcollector/class/emailcollector.class.php + + - + message: '#^Property EmailCollector\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', visible\: 2, enabled\: 1, position\: 1, notnull\: 1, index\: 1\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, default\: 1, notnull\: 1, index\: 1, position\: 20\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 1, index\: 1, position\: 10, \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', visible\: 1, enabled\: 1, position\: 30, notnull\: \-1, searchall\: 1, help\: ''Example\: My Email…'', \.\.\.\}, description\: array\{type\: ''text'', label\: ''Description'', visible\: \-1, enabled\: 1, position\: 60, notnull\: \-1, cssview\: ''small'', csslist\: ''small…''\}, host\: array\{type\: ''varchar\(255\)'', label\: ''EMailHost'', visible\: 1, enabled\: 1, position\: 90, notnull\: 1, searchall\: 1, comment\: ''IMAP server'', \.\.\.\}, port\: array\{type\: ''varchar\(10\)'', label\: ''EMailHostPort'', visible\: 1, enabled\: 1, position\: 91, notnull\: 1, searchall\: 0, comment\: ''IMAP server port'', \.\.\.\}, imap_encryption\: array\{type\: ''varchar\(16\)'', label\: ''ImapEncryption'', visible\: \-1, enabled\: 1, position\: 92, searchall\: 0, comment\: ''IMAP encryption'', help\: ''ImapEncryptionHelp'', \.\.\.\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/emailcollector/class/emailcollector.class.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/emailcollector/class/emailcollector.class.php + + - + message: '#^Strict comparison using \!\=\= between IMAP\\Connection\|true and false will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/emailcollector/class/emailcollector.class.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 16 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/emailcollector/class/emailcollector.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Property EmailCollectorAction\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, visible\: \-1, position\: 1, notnull\: 1, index\: 1, comment\: ''Id''\}, fk_emailcollector\: array\{type\: ''integer'', label\: ''Id of emailcollector'', foreignkey\: ''emailcollector\.rowid''\}, type\: array\{type\: ''varchar\(128\)'', label\: ''Type'', enabled\: 1, visible\: 1, position\: 10, notnull\: 1, index\: 1\}, actionparam\: array\{type\: ''text'', label\: ''ParamForAction'', enabled\: 1, visible\: 1, position\: 40, notnull\: \-1\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, visible\: \-2, position\: 500, notnull\: 1\}, tms\: array\{type\: ''timestamp'', label\: ''DateModification'', enabled\: 1, visible\: \-2, position\: 501, notnull\: 1\}, fk_user_creat\: array\{type\: ''integer'', label\: ''UserAuthor'', enabled\: 1, visible\: \-2, position\: 510, notnull\: 1, foreignkey\: ''llx_user\.rowid''\}, fk_user_modif\: array\{type\: ''integer'', label\: ''UserModif'', enabled\: 1, visible\: \-2, position\: 511, notnull\: \-1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/emailcollector/class/emailcollectoraction.class.php + + - + message: '#^Property EmailCollectorFilter\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, visible\: \-1, position\: 1, notnull\: 1, index\: 1, comment\: ''Id''\}, fk_emailcollector\: array\{type\: ''integer'', label\: ''Id of emailcollector'', foreignkey\: ''emailcollector\.rowid''\}, type\: array\{type\: ''varchar\(128\)'', label\: ''Type'', enabled\: 1, visible\: 1, position\: 10, notnull\: 1\}, rulevalue\: array\{type\: ''varchar\(255\)'', label\: ''ValueOfRule'', enabled\: 1, visible\: 1, position\: 30, notnull\: \-1, help\: ''Value of Rule''\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, visible\: \-2, position\: 500, notnull\: 1\}, tms\: array\{type\: ''timestamp'', label\: ''DateModification'', enabled\: 1, visible\: \-2, position\: 501, notnull\: 1\}, fk_user_creat\: array\{type\: ''integer'', label\: ''UserAuthor'', enabled\: 1, visible\: \-2, position\: 510, notnull\: 1, foreignkey\: ''llx_user\.rowid''\}, fk_user_modif\: array\{type\: ''integer'', label\: ''UserModif'', enabled\: 1, visible\: \-2, position\: 511, notnull\: \-1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/emailcollector/class/emailcollectorfilter.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(ConferenceOrBooth\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php - - message: "#^Method ConferenceOrBooth\\:\\:fetchAll\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(ConferenceOrBooth\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php - - message: "#^Method ConferenceOrBooth\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(ConferenceOrBooth\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(ConferenceOrBooth\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php - - message: "#^Property ConferenceOrBooth\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Method ConferenceOrBooth\:\:fetchAll\(\) has parameter \$filter with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php + + - + message: '#^Method ConferenceOrBooth\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php + + - + message: '#^Property ConferenceOrBooth\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{id\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''integer'', label\: ''Ref'', enabled\: 1, position\: 1, notnull\: 1, visible\: 2, noteditable\: 1, index\: 1, \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 30, notnull\: 1, visible\: 1, searchall\: 1, css\: ''minwidth300'', \.\.\.\}, fk_project\: array\{type\: ''integer\:Project…'', label\: ''Project'', enabled\: ''isModEnabled\(…'', position\: 52, notnull\: \-1, visible\: 1, index\: 1, picto\: ''project'', \.\.\.\}, fk_soc\: array\{type\: ''integer\:Societe…'', label\: ''ThirdParty'', enabled\: ''\$conf\-\>societe\-…'', position\: 50, notnull\: \-1, visible\: 1, index\: 1, help\: ''OrganizationEventLi…'', \.\.\.\}, note\: array\{type\: ''html'', label\: ''Description'', enabled\: 1, position\: 60, notnull\: 0, visible\: 3\}, fk_action\: array\{type\: ''sellist\:c…'', label\: ''ConferenceOrBoothFo…'', enabled\: 1, position\: 60, notnull\: 1, visible\: 1, css\: ''width200'', csslist\: ''tdoverflowmax100''\}, datep\: array\{type\: ''datetime'', label\: ''DateStart'', enabled\: 1, position\: 70, notnull\: 0, visible\: 1, showoncombobox\: ''2''\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php + + - + message: '#^Property ConferenceOrBooth\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorbooth.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ConferenceOrBoothAttendee\) and ''fk_soc'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with ConferenceOrBoothAttendee and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with ConferenceOrBoothAttendee and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php - - message: "#^Property CommonObject\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with ConferenceOrBoothAttendee and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php - - message: "#^Property ConferenceOrBoothAttendee\\:\\:\\$lastname \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with ConferenceOrBoothAttendee and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php - - message: "#^Property ConferenceOrBoothAttendee\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php + + - + message: '#^Property CommonObject\:\:\$name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php + + - + message: '#^Property ConferenceOrBoothAttendee\:\:\$lastname \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php + + - + message: '#^Property ConferenceOrBoothAttendee\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/class/conferenceorboothattendee.class.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_card.php - - message: "#^Property ConferenceOrBooth\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Property ConferenceOrBooth\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/eventorganization/conferenceorbooth_card.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_contact.php - - message: "#^Property ConferenceOrBooth\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_contact.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Property ConferenceOrBooth\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/conferenceorbooth_contact.php + + - + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/eventorganization/conferenceorbooth_contact.php - - message: "#^Variable \\$mode might not be defined\\.$#" + message: '#^Variable \$mode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_contact.php - - message: "#^Variable \\$permission might not be defined\\.$#" + message: '#^Variable \$permission might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/eventorganization/conferenceorbooth_contact.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_document.php - - message: "#^Property ConferenceOrBooth\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_document.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Property ConferenceOrBooth\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/conferenceorbooth_document.php + + - + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/eventorganization/conferenceorbooth_document.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_list.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^Right side of \|\| is always true\.$#' + identifier: booleanOr.rightAlwaysTrue count: 1 path: ../../htdocs/eventorganization/conferenceorbooth_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^Property ConferenceOrBoothAttendee\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^Variable \\$confOrBooth might not be defined\\.$#" + message: '#^Property ConferenceOrBoothAttendee\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php + + - + message: '#^Variable \$confOrBooth might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^Variable \\$withproject in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$withproject in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/eventorganization/conferenceorboothattendee_card.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_list.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/eventorganization/conferenceorboothattendee_list.php - - message: "#^Variable \\$projectref might not be defined\\.$#" + message: '#^Right side of \|\| is always true\.$#' + identifier: booleanOr.rightAlwaysTrue + count: 1 + path: ../../htdocs/eventorganization/conferenceorboothattendee_list.php + + - + message: '#^Variable \$projectref might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/eventorganization/conferenceorboothattendee_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$deliveryreceipt might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$deliveryreceipt might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$from might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php + + - + message: '#^Variable \$from might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$listofobjectref in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$listofobjectref in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$triggername in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$triggername in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/eventorganization/core/actions_massactions_mail.inc.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/eventorganization/tpl/linkedobjectblock.tpl.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expedition/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/expedition/card.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/expedition/card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/expedition/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/expedition/card.php - - message: "#^Variable \\$extrafields in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$extrafields in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/expedition/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/expedition/card.php - - message: "#^Variable \\$originid might not be defined\\.$#" + message: '#^Variable \$originid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/card.php - - message: "#^Variable \\$rowEnd might not be defined\\.$#" + message: '#^Variable \$rowEnd might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/card.php - - message: "#^Variable \\$rowExtrafieldsView might not be defined\\.$#" + message: '#^Variable \$rowExtrafieldsView might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/card.php - - message: "#^Method Shipments\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Method Shipments\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Method Shipments\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Method Shipments\\:\\:deleteLine\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:deleteLine\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Method Shipments\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Method Shipments\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Method Shipments\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Shipments\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Property Shipments\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Shipments\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expedition/class/api_shipments.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Expedition\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Expedition\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expedition/class/expedition.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Expedition\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expedition/class/expedition.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Expedition\) and ''total_ht'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expedition/class/expedition.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/expedition/class/expedition.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 7 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_delivery_address \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_delivery_address \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property CommonObject\\:\\:\\$shipping_method_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$shipping_method_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$fk_user_author \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$fk_user_author \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$ref_customer \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$ref_customer \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$size_units \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$size_units \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$tracking_number \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$tracking_number \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$trueDepth \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$trueDepth \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$trueHeight \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$trueHeight \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$trueWeight \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$trueWeight \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$trueWidth \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$trueWidth \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property Expedition\\:\\:\\$weight_units \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Expedition\:\:\$weight_units \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Property ExpeditionLigne\\:\\:\\$detail_batch \\(array\\\\|stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ExpeditionLigne\:\:\$detail_batch \(array\\|stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Variable \\$line might not be defined\\.$#" + message: '#^Variable \$line might not be defined\.$#' + identifier: variable.undefined count: 77 path: ../../htdocs/expedition/class/expedition.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/expedition/class/expeditionligne.class.php - - message: "#^Property CommonObject\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expeditionligne.class.php - - message: "#^Property CommonObjectLine\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObjectLine\:\:\$id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expeditionligne.class.php - - message: "#^Property ExpeditionLigne\\:\\:\\$entrepot_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ExpeditionLigne\:\:\$entrepot_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expeditionligne.class.php - - message: "#^Result of \\|\\| is always false\\.$#" + message: '#^Result of \|\| is always false\.$#' + identifier: booleanOr.alwaysFalse count: 1 path: ../../htdocs/expedition/class/expeditionligne.class.php - - message: "#^Property ExpeditionLineBatch\\:\\:\\$qty \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ExpeditionLineBatch\:\:\$qty \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expedition/class/expeditionlinebatch.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expedition/contact.php - - message: "#^Variable \\$mesgs might not be defined\\.$#" + message: '#^Variable \$mesgs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/contact.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/expedition/contact.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/expedition/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expedition/dispatch.php - - message: "#^Variable \\$modebatch might not be defined\\.$#" + message: '#^Variable \$modebatch might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/expedition/dispatch.php - - message: "#^Variable \\$nbproduct might not be defined\\.$#" + message: '#^Variable \$nbproduct might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/dispatch.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/expedition/dispatch.php - - message: "#^Variable \\$objsearchdet might not be defined\\.$#" + message: '#^Variable \$objsearchdet might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/dispatch.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/expedition/dispatch.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expedition/document.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/document.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/document.php - - message: "#^If condition is always false\\.$#" - count: 4 - path: ../../htdocs/expedition/list.php - - - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with Expedition and ''fetch_lines'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/expedition/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/expedition/list.php + + - + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/expedition/list.php - - message: "#^Variable \\$searchCategoryCustomerList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/expedition/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/expedition/list.php + + - + message: '#^Variable \$searchCategoryCustomerList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/expedition/list.php - - message: "#^Variable \\$searchCategoryProductList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/expedition/list.php - - message: "#^Variable \\$search_shipping_method_id might not be defined\\.$#" + message: '#^Variable \$search_shipping_method_id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expedition/note.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/note.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/note.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expedition/shipment.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/expedition/shipment.php - - message: "#^Variable \\$bc might not be defined\\.$#" + message: '#^Variable \$bc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/shipment.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/expedition/shipment.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/shipment.php - - message: "#^Variable \\$product might not be defined\\.$#" + message: '#^Variable \$product might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/expedition/shipment.php - - message: "#^Variable \\$toBeShippedTotal might not be defined\\.$#" + message: '#^Variable \$toBeShippedTotal might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/shipment.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expedition/stats/month.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expedition/tpl/linkedobjectblock.tpl.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/expensereport/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 6 path: ../../htdocs/expensereport/card.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/expensereport/card.php - - message: "#^Result of && is always false\\.$#" - count: 1 + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 path: ../../htdocs/expensereport/card.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 3 path: ../../htdocs/expensereport/card.php - - message: "#^Variable \\$date might not be defined\\.$#" + message: '#^Variable \$date might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/card.php - - message: "#^Variable \\$fk_project might not be defined\\.$#" + message: '#^Variable \$fk_project might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 10 path: ../../htdocs/expensereport/card.php - - message: "#^Variable \\$remaintopay might not be defined\\.$#" + message: '#^Variable \$remaintopay might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/card.php - - message: "#^Variable \\$userauthor might not be defined\\.$#" + message: '#^Variable \$userauthor might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expensereport/card.php - - message: "#^Method ExpenseReports\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:_validatepayment\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:_validatepayment\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:_validatepayment\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:_validatepayment\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:addPayment\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:addPayment\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:getAllPayments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:getAllPayments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Method ExpenseReports\\:\\:updatePayment\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method ExpenseReports\:\:updatePayment\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Property ExpenseReports\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property ExpenseReports\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Property ExpenseReports\\:\\:\\$FIELDSPAYMENT has no type specified\\.$#" + message: '#^Property ExpenseReports\:\:\$FIELDSPAYMENT has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/expensereport/class/api_expensereports.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(ExpenseReport\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/expensereport.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(ExpenseReport\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/expensereport.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ExpenseReport\) and ''date_debut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/expensereport.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ExpenseReport\) and ''date_fin'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/expensereport.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/expensereport/class/expensereport.class.php - - message: "#^Parameter \\#1 \\$vatrate of function getLocalTaxesFromRate expects int\\|string, float given\\.$#" + message: '#^Parameter \#1 \$vatrate of function getLocalTaxesFromRate expects int\|string, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/expensereport/class/expensereport.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/expensereport/class/expensereport.class.php - - message: "#^Property ExpenseReport\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ExpenseReport\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/expensereport/class/expensereport.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/expensereport/class/expensereportline.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(PaymentExpenseReport\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(PaymentExpenseReport\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(PaymentExpenseReport\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$amount \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(PaymentExpenseReport\) and ''datep'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentExpenseReport\) and ''fk_bank'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentExpenseReport\) and ''fk_typepayment'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Property PaymentExpenseReport\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$fk_expensereport \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentExpenseReport\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$fk_typepayment \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentExpenseReport\:\:\$fk_expensereport \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentExpenseReport\:\:\$fk_typepayment \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentExpenseReport\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Property PaymentExpenseReport\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentExpenseReport\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property PaymentExpenseReport\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/expensereport/class/paymentexpensereport.class.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/expensereport/list.php - - message: "#^Variable \\$outputlangs might not be defined\\.$#" + message: '#^Variable \$outputlangs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/payment/card.php - - message: "#^Variable \\$title_button might not be defined\\.$#" + message: '#^Variable \$title_button might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/payment/card.php - - message: "#^Variable \\$linkback might not be defined\\.$#" + message: '#^Variable \$linkback might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/payment/info.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/expensereport/payment/list.php - - message: "#^Variable \\$toselect might not be defined\\.$#" + message: '#^Variable \$toselect might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/payment/list.php - - message: "#^Comparison operation \"\\>\" between 1 and 1 is always false\\.$#" + message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/expensereport/payment/payment.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/expensereport/payment/payment.php - - message: "#^Variable \\$sumpaid might not be defined\\.$#" + message: '#^Variable \$sumpaid might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/expensereport/payment/payment.php - - message: "#^Variable \\$fileurl_avg might not be defined\\.$#" + message: '#^Variable \$fileurl_avg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/stats/index.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php - - message: "#^Variable \\$colspan might not be defined\\.$#" + message: '#^Variable \$colspan might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php - - message: "#^Variable \\$formfile might not be defined\\.$#" + message: '#^Variable \$formfile might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$colspan might not be defined\\.$#" + message: '#^Variable \$colspan might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$minifile might not be defined\\.$#" + message: '#^Variable \$minifile might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/expensereport/tpl/linkedobjectblock.tpl.php - - message: "#^Property Export\\:\\:\\$fk_user \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Export\:\:\$fk_user \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/exports/class/export.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 3 path: ../../htdocs/exports/export.php - - message: "#^Variable \\$heightforframes might not be defined\\.$#" + message: '#^Variable \$heightforframes might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/externalsite/frames.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fichinter/agenda.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/fichinter/card-rec.php - - message: "#^Property CommonObjectLine\\:\\:\\$product_type \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObjectLine\:\:\$product_type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fichinter/card-rec.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fichinter/card-rec.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function is_object\(\) with FichinterLigne will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/fichinter/card.php - - message: "#^Result of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/fichinter/card.php - - message: "#^Right side of \\|\\| is always true\\.$#" + message: '#^Loose comparison using \=\= between ''2'' and ''2'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/fichinter/card.php - - message: "#^Variable \\$classname might not be defined\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/fichinter/card.php - - message: "#^Variable \\$extrafields in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 1 + path: ../../htdocs/fichinter/card.php + + - + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/fichinter/card.php + + - + message: '#^Variable \$extrafields in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/fichinter/card.php - - message: "#^Variable \\$line might not be defined\\.$#" + message: '#^Variable \$line might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/fichinter/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 11 path: ../../htdocs/fichinter/card.php - - message: "#^Method Interventions\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:_validateLine\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:_validateLine\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:_validateLine\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:_validateLine\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Method Interventions\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Interventions\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Property Interventions\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Interventions\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Property Interventions\\:\\:\\$FIELDSLINE has no type specified\\.$#" + message: '#^Property Interventions\:\:\$FIELDSLINE has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/fichinter/class/api_interventions.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Fichinter\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fichinter/class/fichinter.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Fichinter\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fichinter/class/fichinter.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Fichinter\) and ''duration'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fichinter/class/fichinter.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 7 path: ../../htdocs/fichinter/class/fichinter.class.php - - message: "#^Property Fichinter\\:\\:\\$ref_client \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Fichinter\:\:\$ref_client \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fichinter/class/fichinter.class.php - - message: "#^Property Fichinter\\:\\:\\$statut \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Fichinter\:\:\$statut \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fichinter/class/fichinter.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/fichinter/class/fichinter.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/fichinter/class/fichinterligne.class.php - - message: "#^Parameter \\#17 \\$fk_unit of method FichinterRec\\:\\:addLineRec\\(\\) expects string\\|null, int\\|null given\\.$#" + message: '#^Parameter \#17 \$fk_unit of method FichinterRec\:\:addLineRec\(\) expects string\|null, int\|null given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fichinter/class/fichinterrec.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fichinter/class/fichinterrec.class.php - - message: "#^Parameter \\#3 \\$remise_percent_ligne of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fichinter/class/fichinterrec.class.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/fichinter/contact.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/fichinter/document.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fichinter/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fichinter/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fichinter/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/fichinter/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/fichinter/list.php - - message: "#^Variable \\$contratstatic might not be defined\\.$#" + message: '#^Variable \$contratstatic might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/fichinter/list.php - - message: "#^Variable \\$projetstatic might not be defined\\.$#" + message: '#^Variable \$projetstatic might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/fichinter/list.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/fichinter/note.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/fichinter/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fichinter/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$dolibarr_main_db_encrypted_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/filefunc.inc.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 10 path: ../../htdocs/fourn/card.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/card.php - - message: "#^Method SupplierInvoices\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:deleteLine\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:deleteLine\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:getLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:getLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:getPayments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:getPayments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:postLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:putLine\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:putLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierInvoices\\:\\:validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierInvoices\:\:validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_invoices.class.php - - message: "#^Method SupplierOrders\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:approve\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:approve\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:deleteContact\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:deleteContact\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:makeOrder\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:makeOrder\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:postContact\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:postContact\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:receiveOrder\\(\\) has parameter \\$lines with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:receiveOrder\(\) has parameter \$lines with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:receiveOrder\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:receiveOrder\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Method SupplierOrders\\:\\:validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierOrders\:\:validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Parameter \\#1 \\$object of method SupplierOrders\\:\\:_cleanObjectDatas\\(\\) expects object, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method SupplierOrders\:\:_cleanObjectDatas\(\) expects object, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Property SupplierOrders\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property SupplierOrders\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^Variable \\$contact might not be defined\\.$#" + message: '#^Variable \$contact might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/class/api_supplier_orders.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(CommandeFournisseur\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(CommandeFournisseur\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(CommandeFournisseur\) and ''billed'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(CommandeFournisseur\) and ''socid'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(CommandeFournisseur\) and ''total_tva'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 2 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Parameter \#1 \$exclspec of method CommonObject\:\:update_price\(\) expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$cond_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$mode_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$ref_supplier \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Parameter \\#1 \\$exclspec of method CommonObject\\:\\:update_price\\(\\) expects int, string given\\.$#" + message: '#^Property CommandeFournisseur\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" + message: '#^Property CommandeFournisseur\:\:\$total_ht \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$total_localtax1 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$total_localtax2 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$total_ttc \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$total_tva \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommandeFournisseur\:\:\$user_author_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/fourn/class/fournisseur.commande.class.php + + - + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Parameter \\#3 \\$remise_percent_ligne of function calcul_price_total expects float, string given\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$cond_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$mode_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Property CommandeFournisseur\\:\\:\\$ref_supplier \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$total_ht \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$total_localtax1 \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$total_localtax2 \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$total_ttc \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$total_tva \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommandeFournisseur\\:\\:\\$user_author_id \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Property CommonObject\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#1 \\$qty of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#1 \$qty of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#1 \\$vatrate of function getLocalTaxesFromRate expects int\\|string, float given\\.$#" + message: '#^Parameter \#1 \$vatrate of function getLocalTaxesFromRate expects int\|string, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#10 \\$txlocaltax1 of method FactureFournisseurRec\\:\\:addline\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#10 \$txlocaltax1 of method FactureFournisseurRec\:\:addline\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#11 \\$txlocaltax2 of method FactureFournisseurRec\\:\\:addline\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#11 \$txlocaltax2 of method FactureFournisseurRec\:\:addline\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#19 \\$fk_unit of method FactureFournisseurRec\\:\\:addline\\(\\) expects string\\|null, int\\|null given\\.$#" + message: '#^Parameter \#19 \$fk_unit of method FactureFournisseurRec\:\:addline\(\) expects string\|null, int\|null given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Parameter \\#8 \\$remise_percent of method FactureFournisseurRec\\:\\:addline\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#8 \$remise_percent of method FactureFournisseurRec\:\:addline\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Property CommonInvoice\\:\\:\\$subtype \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$subtype \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture-rec.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/fourn/class/fournisseur.facture-rec.ligne.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(FactureFournisseur\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.facture.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(FactureFournisseur\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.facture.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(FactureFournisseur\) and ''date'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.facture.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(FactureFournisseur\) and ''total_ht'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/class/fournisseur.facture.class.php + + - + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote + count: 1 + path: ../../htdocs/fourn/class/fournisseur.facture.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 6 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#1 \\$exclspec of method CommonObject\\:\\:update_price\\(\\) expects int, string given\\.$#" + message: '#^Parameter \#1 \$exclspec of method CommonObject\:\:update_price\(\) expects int, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#1 \\$qty of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#1 \$qty of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#15 \\$pu_devise of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#2 \\$alreadypaid of method CommonInvoice\\:\\:getLibStatut\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#15 \$pu_devise of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#2 \\$pu of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$alreadypaid of method CommonInvoice\:\:getLibStatut\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#3 \\$remise_percent_ligne of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#3 \\$txtva of method FactureFournisseur\\:\\:addline\\(\\) expects float, string given\\.$#" + message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#4 \\$vatrate of method FactureFournisseur\\:\\:updateline\\(\\) expects float, string given\\.$#" + message: '#^Parameter \#3 \$txtva of method FactureFournisseur\:\:addline\(\) expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#4 \$vatrate of method FactureFournisseur\:\:updateline\(\) expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$close_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/fourn/class/fournisseur.facture.class.php + + - + message: '#^Property CommonInvoice\:\:\$close_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$close_note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$close_note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$cond_reglement_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$cond_reglement_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$subtype \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$subtype \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoice\\:\\:\\$totalpaid \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoice\:\:\$totalpaid \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonInvoiceLine\\:\\:\\$info_bits \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonInvoiceLine\:\:\$info_bits \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonObject\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property CommonObject\\:\\:\\$ref_ext \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$author \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$author \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$fk_fac_rec_source \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$fk_fac_rec_source \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$fk_facture_source \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$fk_facture_source \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$fk_user_valid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$fk_user_valid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$libelle \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$libelle \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$paid \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$paid \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$paye \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$paye \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$ref_supplier \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$ref_supplier \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$statut \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$statut \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$total_ht \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$total_ht \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$total_localtax1 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$total_localtax1 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$total_localtax2 \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$total_localtax2 \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$total_ttc \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$total_ttc \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$total_tva \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$total_tva \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Property FactureFournisseur\\:\\:\\$type \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property FactureFournisseur\:\:\$type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/fourn/class/fournisseur.facture.ligne.class.php - - message: "#^Property SupplierInvoiceLine\\:\\:\\$situation_percent \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property SupplierInvoiceLine\:\:\$situation_percent \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.facture.ligne.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/fourn/class/fournisseur.orderline.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Property Product\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Property Product\\:\\:\\$status_buy \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$status_buy \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Property ProductFournisseur\\:\\:\\$fourn_unitprice \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ProductFournisseur\:\:\$fourn_unitprice \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 1 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/fourn/class/fournisseur.product.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/fourn/class/paiementfourn.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/fourn/class/paiementfourn.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 - path: ../../htdocs/fourn/commande/card.php + path: ../../htdocs/fourn/class/paiementfourn.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/fourn/commande/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/fourn/commande/card.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/fourn/commande/card.php - - message: "#^Result of && is always false\\.$#" - count: 1 - path: ../../htdocs/fourn/commande/card.php - - - - message: "#^Variable \\$array_option might not be defined\\.$#" - count: 1 - path: ../../htdocs/fourn/commande/card.php - - - - message: "#^Variable \\$classname might not be defined\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/fourn/commande/card.php - - message: "#^Variable \\$fk_account might not be defined\\.$#" + message: '#^Variable \$array_option might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/card.php - - message: "#^Variable \\$line might not be defined\\.$#" + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/fourn/commande/card.php + + - + message: '#^Variable \$fk_account might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/fourn/commande/card.php + + - + message: '#^Variable \$line might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/fourn/commande/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 7 path: ../../htdocs/fourn/commande/card.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/commande/card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/commande/contact.php - - message: "#^Variable \\$caneditproject might not be defined\\.$#" + message: '#^Variable \$caneditproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse count: 1 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Variable \\$comment might not be defined\\.$#" + message: '#^Variable \$comment might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Variable \\$product might not be defined\\.$#" + message: '#^Variable \$product might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^Variable \\$reception might not be defined\\.$#" + message: '#^Variable \$reception might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/dispatch.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/commande/document.php - - message: "#^Variable \\$caneditproject might not be defined\\.$#" + message: '#^Variable \$caneditproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/document.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/commande/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/commande/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/commande/index.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/fourn/commande/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/commande/info.php - - message: "#^Variable \\$caneditproject might not be defined\\.$#" + message: '#^Variable \$caneditproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/info.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with CommandeFournisseur and ''fetch_lines'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/commande/list.php + + - + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/fourn/commande/list.php + + - + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/fourn/commande/list.php + + - + message: '#^Variable \$billed might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/commande/list.php - - message: "#^Variable \\$billed might not be defined\\.$#" - count: 2 - path: ../../htdocs/fourn/commande/list.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/fourn/commande/list.php - - message: "#^Variable \\$searchCategoryProductList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/fourn/commande/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/commande/note.php - - message: "#^Variable \\$caneditproject might not be defined\\.$#" + message: '#^Variable \$caneditproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/note.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$begin might not be defined\\.$#" + message: '#^Variable \$begin might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/fourn/contact.php - - message: "#^Variable \\$contactname might not be defined\\.$#" + message: '#^Variable \$contactname might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/contact.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/fourn/contact.php - - message: "#^Variable \\$stcomm might not be defined\\.$#" + message: '#^Variable \$stcomm might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/agenda.php - - message: "#^Parameter \\#1 \\$hour of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#1 \$hour of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Parameter \\#2 \\$minute of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#2 \$minute of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Parameter \\#3 \\$second of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#3 \$second of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$label might not be defined\\.$#" + message: '#^Variable \$label might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$predef might not be defined\\.$#" + message: '#^Variable \$predef might not be defined\.$#' + identifier: variable.undefined count: 20 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$price_min might not be defined\\.$#" + message: '#^Variable \$price_min might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Variable \\$ref_fournisseur might not be defined\\.$#" + message: '#^Variable \$ref_fournisseur might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/card-rec.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/fourn/facture/card.php - - message: "#^Parameter \\#1 \\$hour of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#1 \$hour of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/fourn/facture/card.php - - message: "#^Parameter \\#2 \\$minute of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#2 \$minute of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/fourn/facture/card.php - - message: "#^Parameter \\#3 \\$second of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#3 \$second of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/fourn/facture/card.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/fourn/facture/card.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/fourn/facture/card.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/fourn/facture/card.php - - message: "#^Variable \\$backtopageforcancel in empty\\(\\) always exists and is always falsy\\.$#" - count: 1 - path: ../../htdocs/fourn/facture/card.php - - - - message: "#^Variable \\$classname might not be defined\\.$#" - count: 3 - path: ../../htdocs/fourn/facture/card.php - - - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" - count: 6 - path: ../../htdocs/fourn/facture/card.php - - - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Property CommonObject\:\:\$cond_reglement_id \(int\) does not accept array\\|string\.$#' + identifier: assign.propertyType count: 2 path: ../../htdocs/fourn/facture/card.php - - message: "#^Variable \\$vat_reverse_charge might not be defined\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) does not accept null\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/fourn/facture/card.php - - message: "#^If condition is always false\\.$#" + message: '#^Property CommonObject\:\:\$mode_reglement_id \(int\) does not accept array\\|string\.$#' + identifier: assign.propertyType + count: 2 + path: ../../htdocs/fourn/facture/card.php + + - + message: '#^Variable \$backtopageforcancel in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/fourn/facture/card.php + + - + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: ../../htdocs/fourn/facture/card.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 6 + path: ../../htdocs/fourn/facture/card.php + + - + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/fourn/facture/card.php + + - + message: '#^Variable \$vat_reverse_charge might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/fourn/facture/card.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/document.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/info.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/facture/info.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/fourn/facture/list-rec.php - - message: "#^If condition is always false\\.$#" - count: 4 - path: ../../htdocs/fourn/facture/list.php - - - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/fourn/facture/list.php - - message: "#^Offset 'totalam' on array\\{f\\.total_ht\\: \\(float\\|int\\), f\\.total_vat\\: \\(float\\|int\\), f\\.total_localtax1\\: \\(float\\|int\\), f\\.total_ttc\\: \\(float\\|int\\), totalam\\: 0, rtp\\: \\(float\\|int\\), f\\.total_localtax2\\?\\: \\(array\\|float\\|int\\)\\} in empty\\(\\) always exists and is always falsy\\.$#" - count: 1 - path: ../../htdocs/fourn/facture/list.php - - - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/fourn/facture/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/fourn/facture/list.php + + - + message: '#^Offset ''totalam'' on array\{f\.total_ht\: \(float\|int\), f\.total_vat\: \(float\|int\), f\.total_localtax1\: \(float\|int\), f\.total_ttc\: \(float\|int\), totalam\: 0, rtp\: \(float\|int\), f\.total_localtax2\?\: \(array\|float\|int\)\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/fourn/facture/list.php - - message: "#^Variable \\$numprlv might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 2 + path: ../../htdocs/fourn/facture/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/fourn/facture/list.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$numprlv might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/list.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/fourn/facture/list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/messaging.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/note-rec.php - - message: "#^Variable \\$title might not be defined\\.$#" + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/facture/note-rec.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/fourn/facture/note.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_numeric\(\) with float will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/fourn/facture/paiement.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$formquestion might not be defined\\.$#" + message: '#^Variable \$formquestion might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$moreforfilter might not be defined\\.$#" + message: '#^Variable \$moreforfilter might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$multicurrency_creditnotes might not be defined\\.$#" + message: '#^Variable \$multicurrency_creditnotes might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$multicurrency_deposits might not be defined\\.$#" + message: '#^Variable \$multicurrency_deposits might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$multicurrency_payment might not be defined\\.$#" + message: '#^Variable \$multicurrency_payment might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$multicurrency_remaintopay might not be defined\\.$#" + message: '#^Variable \$multicurrency_remaintopay might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$objcanvas might not be defined\\.$#" + message: '#^Variable \$objcanvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$ref might not be defined\\.$#" + message: '#^Variable \$ref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$sign might not be defined\\.$#" + message: '#^Variable \$sign might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/fourn/facture/paiement.php - - message: "#^Variable \\$obj might not be defined\\.$#" + message: '#^Variable \$obj might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/facture/rapport.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/fourn/paiement/card.php - - message: "#^Variable \\$title_button might not be defined\\.$#" + message: '#^Variable \$title_button might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/paiement/card.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/fourn/paiement/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/fourn/paiement/document.php - - message: "#^Variable \\$arrayofselected might not be defined\\.$#" + message: '#^Variable \$arrayofselected might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/fourn/paiement/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/fourn/paiement/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/fourn/product/list.php - - message: "#^Variable \\$result2 might not be defined\\.$#" + message: '#^Variable \$result2 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ftp/admin/ftpclient.php - - message: "#^Variable \\$result3 might not be defined\\.$#" + message: '#^Variable \$result3 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ftp/admin/ftpclient.php - - message: "#^Variable \\$result4 might not be defined\\.$#" + message: '#^Variable \$result4 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ftp/admin/ftpclient.php - - message: "#^Variable \\$result5 might not be defined\\.$#" + message: '#^Variable \$result5 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ftp/admin/ftpclient.php - - message: "#^Variable \\$result6 might not be defined\\.$#" + message: '#^Variable \$result6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ftp/admin/ftpclient.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/ftp/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/ftp/index.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_nlist expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_nlist expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/ftp/index.php - - message: "#^Parameter \\#1 \\$ftp of function ftp_rawlist expects FTP\\\\Connection, resource given\\.$#" + message: '#^Parameter \#1 \$ftp of function ftp_rawlist expects FTP\\Connection, resource given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/ftp/index.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 3 path: ../../htdocs/ftp/index.php - - message: "#^Variable \\$newsectioniso might not be defined\\.$#" + message: '#^Variable \$newsectioniso might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ftp/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/holiday/card.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 8 path: ../../htdocs/holiday/card.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 8 path: ../../htdocs/holiday/card.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 8 path: ../../htdocs/holiday/card.php - - message: "#^Variable \\$canread might not be defined\\.$#" + message: '#^Variable \$canread might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/card.php - - message: "#^Variable \\$endhalfdaykey might not be defined\\.$#" + message: '#^Variable \$endhalfdaykey might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/card.php - - message: "#^Variable \\$starthalfdaykey might not be defined\\.$#" + message: '#^Variable \$starthalfdaykey might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/holiday/card_group.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/holiday/card_group.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/holiday/card_group.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/holiday/card_group.php - - message: "#^Variable \\$endhalfdaykey might not be defined\\.$#" + message: '#^Variable \$endhalfdaykey might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/card_group.php - - message: "#^Variable \\$errors might not be defined\\.$#" + message: '#^Variable \$errors might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/card_group.php - - message: "#^Variable \\$starthalfdaykey might not be defined\\.$#" + message: '#^Variable \$starthalfdaykey might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/card_group.php - - message: "#^Comparison operation \"\\<\" between 0 and 0 is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Holiday\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Holiday\) and ''date_debut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/holiday/class/holiday.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Holiday\) and ''date_fin'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/holiday/class/holiday.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Holiday\) and ''fk_type'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/holiday/class/holiday.class.php + + - + message: '#^Comparison operation "\<" between 0 and 0 is always false\.$#' + identifier: smaller.alwaysFalse + count: 1 + path: ../../htdocs/holiday/class/holiday.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^Parameter \\#4 \\$new_solde of method Holiday\\:\\:addLogCP\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#4 \$new_solde of method Holiday\:\:addLogCP\(\) expects int, float given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^Property Holiday\\:\\:\\$events has no type specified\\.$#" + message: '#^Property Holiday\:\:\$events has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^Property Holiday\\:\\:\\$halfday \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Holiday\:\:\$halfday \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^Property Holiday\\:\\:\\$holiday has no type specified\\.$#" + message: '#^Property Holiday\:\:\$holiday has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^Property Holiday\\:\\:\\$logs has no type specified\\.$#" + message: '#^Property Holiday\:\:\$logs has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/holiday/class/holiday.class.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 3 path: ../../htdocs/holiday/define_holiday.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/holiday/define_holiday.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/holiday/define_holiday.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/holiday/define_holiday.php - - message: "#^Variable \\$arraydata might not be defined\\.$#" + message: '#^Variable \$arraydata might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/holiday/list.php - - message: "#^Variable \\$morefilter might not be defined\\.$#" + message: '#^Variable \$morefilter might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/list.php - - message: "#^Variable \\$search_month_update might not be defined\\.$#" + message: '#^Variable \$search_month_update might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/list.php - - message: "#^Variable \\$search_year_update might not be defined\\.$#" + message: '#^Variable \$search_year_update might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/list.php - - message: "#^Variable \\$arraytypeleaves might not be defined\\.$#" + message: '#^Variable \$arraytypeleaves might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/month_report.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/holiday/view_log.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/holiday/view_log.php - - message: "#^Variable \\$search_status might not be defined\\.$#" + message: '#^Variable \$search_status might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/holiday/view_log.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/holiday/view_log.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 2 path: ../../htdocs/hrm/admin/admin_hrm.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/hrm/admin/admin_hrm.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/admin/admin_hrm.php - - message: "#^Property Establishment\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Establishment\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/class/establishment.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Evaluation\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluation.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Evaluation\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluation.class.php - - message: "#^Property Evaluation\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Evaluation and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluation.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with Evaluation and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Call to function property_exists\(\) with Evaluation and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Call to function property_exists\(\) with Evaluation and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Call to function property_exists\(\) with Evaluation and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Property Evaluation\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 20, notnull\: 1, visible\: 4, noteditable\: 1, default\: ''\(PROV\)'', \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 30, notnull\: 0, visible\: 1, searchall\: 1, css\: ''minwidth300'', \.\.\.\}, description\: array\{type\: ''text'', label\: ''Description'', enabled\: 1, position\: 60, notnull\: 0, visible\: 3\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 61, notnull\: 0, visible\: 0\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 62, notnull\: 0, visible\: 0\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, position\: 500, notnull\: 1, visible\: \-2\}, tms\: array\{type\: ''timestamp'', label\: ''DateModification'', enabled\: 1, position\: 501, notnull\: 0, visible\: \-2\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Property Evaluation\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/evaluation.class.php + + - + message: '#^Call to function property_exists\(\) with EvaluationLine and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluationdet.class.php - - message: "#^Method EvaluationLine\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with EvaluationLine and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluationdet.class.php - - message: "#^Method EvaluationLine\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with EvaluationLine and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluationdet.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with EvaluationLine and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/evaluationdet.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/hrm/class/evaluationdet.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Method EvaluationLine\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/evaluationdet.class.php + + - + message: '#^Method EvaluationLine\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/evaluationdet.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/evaluationdet.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/evaluationdet.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Job\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/job.class.php - - message: "#^Method Job\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Job\) and ''description'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/job.class.php - - message: "#^Method Job\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with Job and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/job.class.php - - message: "#^Method Job\\:\\:getSkillRankForJob\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with Job and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/job.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with Job and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/job.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Job and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/job.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with Job and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Method Job\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Method Job\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Method Job\:\:getSkillRankForJob\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/job.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Position\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/position.class.php - - message: "#^Method Position\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Position\) and ''date_end'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/position.class.php - - message: "#^Method Position\\:\\:getForUser\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Position\) and ''date_start'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/position.class.php - - message: "#^Method Position\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with Position and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/position.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with Position and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/position.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Position and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/position.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with Position and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Method Position\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Method Position\:\:getForUser\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Method Position\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/position.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Skill\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skill.class.php - - message: "#^Method Skill\\:\\:fetchLines\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Skill\) and ''description'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skill.class.php - - message: "#^Method Skill\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Skill\) and ''skill_type'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skill.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with Skill and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skill.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Skill and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skill.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with Skill and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Call to function property_exists\(\) with Skill and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Call to function property_exists\(\) with Skill and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Method Skill\:\:fetchLines\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Method Skill\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/skill.class.php + + - + message: '#^Call to function property_exists\(\) with Skilldet and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skilldet.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with Skilldet and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skilldet.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Skilldet and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skilldet.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with Skilldet and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/hrm/class/skilldet.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/hrm/class/skilldet.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/skilldet.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/skilldet.class.php + + - + message: '#^Call to function property_exists\(\) with SkillRank and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skillrank.class.php - - message: "#^Method SkillRank\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with SkillRank and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skillrank.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with SkillRank and ''fk_object'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skillrank.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with SkillRank and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skillrank.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function property_exists\(\) with SkillRank and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/hrm/class/skillrank.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/hrm/class/skillrank.class.php + + - + message: '#^Method SkillRank\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/hrm/class/skillrank.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/hrm/class/skillrank.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/hrm/class/skillrank.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/hrm/class/skillrank.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/hrm/compare.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/compare.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Cannot access property \$db on mixed\.$#' + identifier: property.nonObject count: 1 path: ../../htdocs/hrm/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Cannot access property \$status on mixed\.$#' + identifier: property.nonObject + count: 1 + path: ../../htdocs/hrm/core/tpl/objectline_view.tpl.php + + - + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/hrm/core/tpl/objectline_view.tpl.php + + - + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/hrm/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$line might not be defined\\.$#" + message: '#^Variable \$line might not be defined\.$#' + identifier: variable.undefined count: 13 path: ../../htdocs/hrm/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/hrm/core/tpl/objectline_view.tpl.php - - message: "#^Variable \\$colwidth might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php - - message: "#^Variable \\$moreparam might not be defined\\.$#" + message: '#^Variable \$colwidth might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php + + - + message: '#^Variable \$moreparam might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php - - message: "#^Variable \\$permission might not be defined\\.$#" + message: '#^Variable \$permission might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php - - message: "#^Variable \\$typeofdata might not be defined\\.$#" + message: '#^Variable \$typeofdata might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php - - message: "#^Variable \\$value_private might not be defined\\.$#" + message: '#^Variable \$value_private might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php - - message: "#^Variable \\$value_public might not be defined\\.$#" + message: '#^Variable \$value_public might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php - - message: "#^Property Establishment\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Establishment\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/establishment/card.php - - message: "#^Property Establishment\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Establishment\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/establishment/info.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/evaluation_card.php - - message: "#^Variable \\$k might not be defined\\.$#" + message: '#^Variable \$k might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/evaluation_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/evaluation_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/evaluation_list.php - - message: "#^Variable \\$setupcompanynotcomplete in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$setupcompanynotcomplete in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/index.php - - message: "#^Variable \\$newcardbutton might not be defined\\.$#" + message: '#^Variable \$newcardbutton might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/job_agenda.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/hrm/job_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/job_card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/job_card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/job_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/job_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/job_list.php - - message: "#^Comparison operation \"\\<\" between int\\<0, max\\> and 0 is always false\\.$#" + message: '#^Comparison operation "\<" between int\<0, max\> and 0 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: ../../htdocs/hrm/lib/hrm_evaluation.lib.php - - message: "#^Variable \\$Lines in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$Lines in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/lib/hrm_skillrank.lib.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/position.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/position.php - - message: "#^Variable \\$job might not be defined\\.$#" + message: '#^Variable \$job might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/position.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/position_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/position_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/position_list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/hrm/skill_card.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/skill_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/skill_document.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/hrm/skill_list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/hrm/skill_list.php - - message: "#^PHPDoc tag @var for variable \\$objects has no value type specified in iterable type array\\.$#" + message: '#^Call to function is_array\(\) with list will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/hrm/skill_tab.php + + - + message: '#^PHPDoc tag @var for variable \$objects has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/hrm/skill_tab.php - - message: "#^Variable \\$head might not be defined\\.$#" + message: '#^Variable \$head might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/skill_tab.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/hrm/skill_tab.php - - message: "#^Property Import\\:\\:\\$fk_user \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Import\:\:\$fk_user \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/imports/class/import.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/imports/emptyexample.php - - message: "#^Comparison operation \"\\>\\=\" between int\\<1, max\\> and 1 is always true\\.$#" + message: '#^Comparison operation "\>\=" between int\<1, max\> and 1 is always true\.$#' + identifier: greaterOrEqual.alwaysTrue count: 1 path: ../../htdocs/imports/import.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 12 path: ../../htdocs/imports/import.php - - message: "#^Offset 'imported' on array\\{example1\\: mixed, imported\\: 0\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Loose comparison using \=\= between ''session'' and ''session'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/imports/import.php - - message: "#^Offset 'picto' on array\\{labelkey\\: mixed, labelkeyarray\\: array\\, label\\: string, required\\: 0\\|1, position\\: mixed, picto\\: ''\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''imported'' on array\{imported\: 0, example1\: mixed\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/imports/import.php - - message: "#^Parameter \\#3 \\$insertArray of function arrayInsert expects array\\{label\\?\\: string, example1\\?\\: string, required\\?\\: bool, imported\\?\\: bool\\|int\\<0, 1\\>, position\\?\\: int\\}, non\\-empty\\-array\\, position\\?\\: int\\}\\> given\\.$#" + message: '#^Offset ''picto'' on array\{labelkey\: mixed, labelkeyarray\: list\, label\: string, required\: 0\|1, position\: mixed, picto\: ''''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/imports/import.php - - message: "#^If condition is always true\\.$#" + message: '#^Parameter \#3 \$insertArray of function arrayInsert expects array\{label\?\: string, example1\?\: string, required\?\: bool, imported\?\: bool\|int\<0, 1\>, position\?\: int\}, non\-empty\-array\, position\?\: int\}\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/imports/import.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/index.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/index.php - - message: "#^Variable \\$boxwork might not be defined\\.$#" + message: '#^Variable \$boxwork might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/index.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/index.php - - message: "#^Variable \\$lockfile in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$lockfile in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/index.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/install/check.php - - message: "#^Offset 2 on array\\{string, non\\-falsy\\-string, non\\-falsy\\-string\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset 2 on array\{string, non\-falsy\-string, non\-falsy\-string\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/install/check.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Path in include_once\(\) "\./install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/check.php + + - + message: '#^Path in include_once\(\) "/etc/dolibarr/install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/check.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 19 path: ../../htdocs/install/check.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 19 path: ../../htdocs/install/check.php - - message: "#^Variable \\$conffiletoshow might not be defined\\.$#" + message: '#^Variable \$conffiletoshow might not be defined\.$#' + identifier: variable.undefined count: 13 path: ../../htdocs/install/check.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/check.php - - message: "#^Variable \\$dolibarr_main_db_encrypted_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/check.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Path in include_once\(\) "\./install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/fileconf.php + + - + message: '#^Path in include_once\(\) "/etc/dolibarr/install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/fileconf.php + + - + message: '#^Strict comparison using \!\=\= between mixed and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 8 + path: ../../htdocs/install/fileconf.php + + - + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$conffiletoshow might not be defined\\.$#" + message: '#^Variable \$conffiletoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$dolibarr_main_db_port might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_port might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$testclass might not be defined\\.$#" + message: '#^Variable \$testclass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$testfunction might not be defined\\.$#" + message: '#^Variable \$testfunction might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/fileconf.php - - message: "#^Variable \\$dolibarr_main_db_prefix in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Instanceof between mod_syslog_file and LogHandler will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 2 + path: ../../htdocs/install/inc.php + + - + message: '#^Variable \$dolibarr_main_db_prefix in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/install/inc.php - - message: "#^Variable \\$dolibarr_main_db_type in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$dolibarr_main_db_type in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/install/inc.php - - message: "#^Variable \\$dolibarr_main_url_root in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$dolibarr_main_url_root in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/install/inc.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/install/index.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/index.php - - message: "#^Variable \\$actiondone in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^PHPDoc tag @var with type string is not subtype of native type null\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/install/install.forced.docker.php + + - + message: '#^PHPDoc tag @var with type string is not subtype of native type null\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/install/install.forced.sample.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$actiondone in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/install/repair.php + + - + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$dolibarr_main_data_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_data_root might not be defined\.$#' + identifier: variable.undefined count: 16 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$dolibarr_main_db_character_set might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_character_set might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$dolibarr_main_db_encrypted_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$methodtofix might not be defined\\.$#" + message: '#^Variable \$methodtofix might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/repair.php - - message: "#^Variable \\$object_instance might not be defined\\.$#" + message: '#^Variable \$object_instance might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/install/repair.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/install/step1.php + + - + message: '#^Path in include_once\(\) "\./install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step1.php + + - + message: '#^Path in include_once\(\) "/etc/dolibarr/install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step1.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 35 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$conffiletoshow might not be defined\\.$#" + message: '#^Variable \$conffiletoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$db_create_database in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$db_create_database in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$db_create_user in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$db_create_user in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$dolibarr_main_db_character_set might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_character_set might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$dolibarr_main_db_collation might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_collation might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$dolibarr_main_db_host might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_host might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$dolibarr_main_db_name might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_name might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$force_dolibarr_lib_TCPDI_PATH in empty\\(\\) is never defined\\.$#" + message: '#^Variable \$force_dolibarr_lib_TCPDI_PATH in empty\(\) is never defined\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/install/step1.php - - message: "#^Variable \\$force_install_noedit might not be defined\\.$#" + message: '#^Variable \$force_install_noedit might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step1.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote count: 1 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$buffer might not be defined\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Path in include_once\(\) "\./install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step2.php + + - + message: '#^Path in include_once\(\) "/etc/dolibarr/install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step2.php + + - + message: '#^Variable \$buffer might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/install/step2.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 15 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$conffiletoshow might not be defined\\.$#" + message: '#^Variable \$conffiletoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$dir might not be defined\\.$#" + message: '#^Variable \$dir might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$dolibarr_main_db_prefix might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_prefix might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/install/step2.php - - message: "#^Variable \\$versionarray might not be defined\\.$#" + message: '#^Variable \$versionarray might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/install/step2.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/install/step4.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/install/step4.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Path in include_once\(\) "\./install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step4.php + + - + message: '#^Path in include_once\(\) "/etc/dolibarr/install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step4.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/install/step4.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/step4.php - - message: "#^Variable \\$conffiletoshow might not be defined\\.$#" + message: '#^Variable \$conffiletoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step4.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/step4.php - - message: "#^Variable \\$force_install_dolibarrlogin might not be defined\\.$#" + message: '#^Variable \$force_install_dolibarrlogin might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step4.php - - message: "#^Variable \\$force_install_noedit might not be defined\\.$#" + message: '#^Variable \$force_install_noedit might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step4.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/install/step5.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Path in include_once\(\) "\./install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step5.php + + - + message: '#^Path in include_once\(\) "/etc/dolibarr/install\.forced\.php" is not a file or it does not exist\.$#' + identifier: includeOnce.fileNotFound + count: 1 + path: ../../htdocs/install/step5.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 29 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$conffiletoshow might not be defined\\.$#" + message: '#^Variable \$conffiletoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_encrypted_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_host might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_host might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_name might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_name might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_port might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_port might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$force_install_noedit might not be defined\\.$#" + message: '#^Variable \$force_install_noedit might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$login in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$login in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 5 path: ../../htdocs/install/step5.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_encrypted_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_host might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_host might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_name might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_name might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_port might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_port might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade.php - - message: "#^Variable \\$versionarray might not be defined\\.$#" + message: '#^Variable \$versionarray might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_array\(\) with array\, array\{mixed, mixed, mixed\}\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/install/upgrade2.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/install/upgrade2.php + + - + message: '#^Parameter \#4 \$listofmodule of function migrate_reload_modules expects array\, array\{MAIN_MODULE_ACCOUNTING\: ''newboxdefonly'', MAIN_MODULE_AGENDA\: ''newboxdefonly'', MAIN_MODULE_BOM\: ''menuonly'', MAIN_MODULE_BANQUE\: ''menuonly'', MAIN_MODULE_BARCODE\: ''newboxdefonly'', MAIN_MODULE_CRON\: ''newboxdefonly'', MAIN_MODULE_COMMANDE\: ''newboxdefonly'', MAIN_MODULE_BLOCKEDLOG\: ''noboxes'', \.\.\.\} given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/install/upgrade2.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$conffile might not be defined\\.$#" + message: '#^Variable \$conffile might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_encrypted_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_host might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_host might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_name might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_name might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_pass might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_pass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_port might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_port might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_db_user might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/install/upgrade2.php - - message: "#^Variable \\$dolibarr_main_document_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../htdocs/install/upgrade2.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/intracommreport/admin/intracommreport.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/intracommreport/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/intracommreport/card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/intracommreport/card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/intracommreport/card.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(IntracommReport\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/intracommreport/class/intracommreport.class.php - - message: "#^Parameter \\#3 \\$period_reference of method IntracommReport\\:\\:addItemsFact\\(\\) expects int, string given\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(IntracommReport\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/intracommreport/class/intracommreport.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(IntracommReport\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/intracommreport/class/intracommreport.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/intracommreport/class/intracommreport.class.php + + - + message: '#^Parameter \#3 \$period_reference of method IntracommReport\:\:addItemsFact\(\) expects int, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/intracommreport/class/intracommreport.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/intracommreport/class/intracommreport.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 4 path: ../../htdocs/intracommreport/lib/intracommreport.lib.php - - message: "#^Variable \\$action in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$action in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/intracommreport/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/intracommreport/list.php - - message: "#^Variable \\$groupby might not be defined\\.$#" + message: '#^Variable \$groupby might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/intracommreport/list.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/intracommreport/list.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Method KnowledgeManagement\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method KnowledgeManagement\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Method KnowledgeManagement\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method KnowledgeManagement\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Method KnowledgeManagement\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method KnowledgeManagement\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Method KnowledgeManagement\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method KnowledgeManagement\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Method KnowledgeManagement\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method KnowledgeManagement\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Method KnowledgeManagement\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method KnowledgeManagement\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(KnowledgeRecord\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(KnowledgeRecord\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(KnowledgeRecord\) and ''lang'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(KnowledgeRecord\) and ''question'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Call to function property_exists\(\) with KnowledgeRecord and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Call to function property_exists\(\) with KnowledgeRecord and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Call to function property_exists\(\) with KnowledgeRecord and ''question'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Call to function property_exists\(\) with KnowledgeRecord and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Call to function property_exists\(\) with KnowledgeRecord and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/knowledgemanagement/class/knowledgerecord.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/knowledgemanagement/knowledgerecord_card.php - - message: "#^Property KnowledgeRecord\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property KnowledgeRecord\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/knowledgemanagement/knowledgerecord_card.php - - message: "#^Property KnowledgeRecord\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property KnowledgeRecord\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/knowledgemanagement/knowledgerecord_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/knowledgemanagement/knowledgerecord_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/knowledgemanagement/knowledgerecord_list.php - - message: "#^Variable \\$staytopay might not be defined\\.$#" + message: '#^Variable \$staytopay might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/loan/card.php - - message: "#^Parameter \\#2 \\$alreadypaid of method Loan\\:\\:getLibStatut\\(\\) expects int, float given\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Loan\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Loan\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Loan\) and ''capital'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$account_capital \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Loan\) and ''dateend'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$account_insurance \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Loan\) and ''datestart'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$account_interest \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#2 \$alreadypaid of method Loan\:\:getLibStatut\(\) expects int, float given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Loan\:\:\$account_capital \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Property Loan\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Loan\:\:\$account_insurance \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/loan/class/loan.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Property Loan\:\:\$account_interest \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/loan/class/loan.class.php + + - + message: '#^Property Loan\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/loan/class/loan.class.php + + - + message: '#^Property Loan\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/loan/class/loan.class.php + + - + message: '#^Property Loan\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/loan/class/loan.class.php + + - + message: '#^Property Loan\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/loan/class/loan.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$fk_loan \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$fk_loan \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$fk_payment_loan \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$fk_payment_loan \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$fk_typepayment \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$fk_typepayment \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Property LoanSchedule\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property LoanSchedule\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/loan/class/loanschedule.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$amount_capital \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$amount_capital \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$amount_insurance \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$amount_insurance \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$fk_loan \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$fk_loan \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$fk_typepayment \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$fk_typepayment \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Property PaymentLoan\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentLoan\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/loan/class/paymentloan.class.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/document.php - - message: "#^Variable \\$morehtmlright might not be defined\\.$#" + 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\\.$#" + 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\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/note.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/note.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/payment/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/loan/payment/payment.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/loan/payment/payment.php - - message: "#^Variable \\$amount_capital might not be defined\\.$#" + message: '#^Variable \$amount_capital might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/payment/payment.php - - message: "#^Variable \\$amount_insurance might not be defined\\.$#" + message: '#^Variable \$amount_insurance might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/payment/payment.php - - message: "#^Variable \\$amount_interest might not be defined\\.$#" + message: '#^Variable \$amount_interest might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/payment/payment.php - - message: "#^Variable \\$line_id might not be defined\\.$#" + message: '#^Variable \$line_id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/payment/payment.php - - message: "#^Variable \\$sumpaid might not be defined\\.$#" + message: '#^Variable \$sumpaid might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/loan/payment/payment.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/loan/schedule.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/loan/schedule.php - - message: "#^Elseif condition is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/main.inc.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Call to function is_array\(\) with array\{\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/main.inc.php + + - + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/main.inc.php + + - + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote + count: 3 + path: ../../htdocs/main.inc.php + + - + message: '#^Elseif condition is always true\.$#' + identifier: elseif.alwaysTrue + count: 1 + path: ../../htdocs/main.inc.php + + - + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 2 path: ../../htdocs/main.inc.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/main.inc.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/main.inc.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/main.inc.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Parameter \#1 \$var of function analyseVarsForSqlAndScriptsInjection expects array\\|string, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/main.inc.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Parameter \#1 \$var of function analyseVarsForSqlAndScriptsInjection expects array\\|string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/main.inc.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/main.inc.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 35 path: ../../htdocs/main.inc.php - - message: "#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$_POST in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/main.inc.php - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType count: 1 path: ../../htdocs/margin/agentMargins.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType count: 1 path: ../../htdocs/margin/agentMargins.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/margin/agentMargins.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/margin/checkMargins.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/margin/checkMargins.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/margin/customerMargins.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/margin/customerMargins.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/margin/customerMargins.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/margin/productMargins.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/margin/productMargins.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/margin/tabs/productMargins.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/margin/tabs/productMargins.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/margin/tabs/thirdpartyMargins.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/margin/tabs/thirdpartyMargins.php - - message: "#^Variable \\$dolibarr_main_db_character_set might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_character_set might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_db_collation might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_collation might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_db_cryptkey might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_cryptkey might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_db_encryption might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_encryption might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_db_prefix might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_prefix might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_db_type might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_limit_users might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_limit_users might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$dolibarr_main_url_root_alt might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root_alt might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/master.inc.php - - message: "#^Variable \\$head might not be defined\\.$#" + message: '#^Variable \$head might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/modulebuilder/admin/setup.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/index.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/modulebuilder/index.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/modulebuilder/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Parameter \#2 \$arrayreplacement of function dolReplaceInFile expects array\, array\\|string\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/modulebuilder/index.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 34 path: ../../htdocs/modulebuilder/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 3 path: ../../htdocs/modulebuilder/index.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$class might not be defined\\.$#" + message: '#^Variable \$class might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$content might not be defined\\.$#" + message: '#^Variable \$content might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$field might not be defined\\.$#" + message: '#^Variable \$field might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$key might not be defined\\.$#" + message: '#^Variable \$key might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$moduleobj might not be defined\\.$#" + message: '#^Variable \$moduleobj might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$newmask in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newmask in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$outputfilezip might not be defined\\.$#" + message: '#^Variable \$outputfilezip might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$proparrayofkeyval in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$proparrayofkeyval in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Variable \\$realpathtoapi in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$realpathtoapi in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/modulebuilder/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/admin/about.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/admin/about.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/admin/myobject_extrafields.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/admin/myobject_extrafields.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/admin/setup.php - - message: "#^Offset 'includedocgeneration' on array\\{label\\: 'MyObject', includerefgeneration\\: 0, includedocgeneration\\: 0, class\\: 'MyObject'\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''includedocgeneration'' on array\{label\: ''MyObject'', includerefgeneration\: 0, includedocgeneration\: 0, class\: ''MyObject''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/modulebuilder/template/admin/setup.php - - message: "#^Offset 'includerefgeneration' on array\\{label\\: 'MyObject', includerefgeneration\\: 0, includedocgeneration\\: 0, class\\: 'MyObject'\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''includerefgeneration'' on array\{label\: ''MyObject'', includerefgeneration\: 0, includedocgeneration\: 0, class\: ''MyObject''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/modulebuilder/template/admin/setup.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/admin/setup.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/ajax/myobject.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Path in include\(\) "\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/ajax/myobject.php + + - + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/class/actions_mymodule.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/modulebuilder/template/class/actions_mymodule.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/class/actions_mymodule.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/modulebuilder/template/class/api_mymodule.class.php - - message: "#^Parameter \\#1 \\$data of method MyModuleApi\\:\\:_validateMyObject\\(\\) expects array\\, array\\\\|null given\\.$#" + message: '#^Parameter \#1 \$data of method MyModuleApi\:\:_validateMyObject\(\) expects array\, list\\|null given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/modulebuilder/template/class/api_mymodule.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/class/api_mymodule.class.php - - message: "#^Unable to resolve the template type T in call to method MyModuleApi\\:\\:_cleanObjectDatas\\(\\)$#" + message: '#^Unable to resolve the template type T in call to method MyModuleApi\:\:_cleanObjectDatas\(\)$#' + identifier: argument.templateType count: 1 path: ../../htdocs/modulebuilder/template/class/api_mymodule.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(MyObject\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(MyObject\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(MyObject\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - message: "#^Property CommonObject\\:\\:\\$isextrafieldmanaged \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(MyObject\) and ''fk_soc'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - - - message: "#^Property MyObject\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(MyObject\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/modulebuilder/template/class/myobject.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(MyObject\) and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(MyObject\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Call to function property_exists\(\) with MyObject and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Call to function property_exists\(\) with MyObject and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Call to function property_exists\(\) with MyObject and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Call to function property_exists\(\) with MyObject and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Call to function property_exists\(\) with MyObject and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Parameter \#1 \$params of method MyObject\:\:getTooltipContentArray\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Property CommonObject\:\:\$isextrafieldmanaged \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Property MyObject\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 20, notnull\: 1, visible\: 1, index\: 1, searchall\: 1, \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 30, notnull\: 0, visible\: 1, alwayseditable\: ''1'', searchall\: 1, \.\.\.\}, amount\: array\{type\: ''price'', label\: ''Amount'', enabled\: 1, position\: 40, notnull\: 0, visible\: 1, default\: ''null'', isameasure\: 1, \.\.\.\}, qty\: array\{type\: ''real'', label\: ''Qty'', enabled\: 1, position\: 45, notnull\: 0, visible\: 1, default\: ''0'', isameasure\: 1, \.\.\.\}, fk_soc\: array\{type\: ''integer\:Societe…'', label\: ''ThirdParty'', picto\: ''company'', enabled\: ''isModEnabled\(…'', position\: 50, notnull\: \-1, visible\: 1, index\: 1, \.\.\.\}, fk_project\: array\{type\: ''integer\:Project…'', label\: ''Project'', picto\: ''project'', enabled\: ''isModEnabled\(…'', position\: 52, notnull\: \-1, visible\: ''\-1'', index\: 1, \.\.\.\}, description\: array\{type\: ''text'', label\: ''Description'', enabled\: 1, position\: 60, notnull\: 0, visible\: ''3'', validate\: 1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Property MyObject\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/modulebuilder/template/class/myobject.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/core/modules/modMyModule.class.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, MyObject given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php - - message: "#^Property MyObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, MyObject given\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php + + - + message: '#^Property MyObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php - - message: "#^Parameter \\#3 \\$tab_height of method pdf_standard_myobject\\:\\:_tableau\\(\\) expects int, float given\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, MyObject given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Parameter \#3 \$tab_height of method pdf_standard_myobject\:\:_tableau\(\) expects int, float given\.$#' + identifier: argument.type count: 6 path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Property pdf_standard_myobject\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType + count: 1 + path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/modulebuilder/template/core/tpl/linkedobjectblock_myobject.tpl.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/css/mymodule.css.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/css/mymodule.css.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/js/mymodule.js.php - - message: "#^If condition is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/js/mymodule.js.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 4 path: ../../htdocs/modulebuilder/template/lib/mymodule_myobject.lib.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/mymoduleindex.php - - message: "#^If condition is always false\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/mymoduleindex.php + + - + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/mymoduleindex.php + + - + message: '#^Call to function is_numeric\(\) with 0 will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/modulebuilder/template/myobject_agenda.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_agenda.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_agenda.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_agenda.php - - message: "#^If condition is always false\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_agenda.php + + - + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_agenda.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^Property MyObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound count: 1 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^Property MyObject\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound count: 1 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Property MyObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_card.php + + - + message: '#^Property MyObject\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_card.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 5 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^Variable \\$permissiontoadd in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$permissiontoadd in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/modulebuilder/template/myobject_card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_contact.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_contact.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_contact.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_contact.php + + - + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_contact.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 2 path: ../../htdocs/modulebuilder/template/myobject_contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_document.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_document.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound count: 1 path: ../../htdocs/modulebuilder/template/myobject_document.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_document.php + + - + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_document.php + + - + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/modulebuilder/template/myobject_list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_list.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_list.php - - message: "#^Variable \\$permissiontodelete in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound count: 1 path: ../../htdocs/modulebuilder/template/myobject_list.php - - message: "#^If condition is always false\\.$#" + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_list.php + + - + message: '#^Variable \$permissiontodelete in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_note.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/modulebuilder/template/myobject_note.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/modulebuilder/template/myobject_note.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_note.php + + - + message: '#^Path in include\(\) "\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/myobject_note.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/modulebuilder/template/scripts/mymodule.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Path in include\(\) "\.\./\.\./master\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/scripts/mymodule.php + + - + message: '#^Path in include\(\) "\.\./master\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound + count: 1 + path: ../../htdocs/modulebuilder/template/scripts/mymodule.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:produceAndConsume\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:produceAndConsume\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:produceAndConsumeAll\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:produceAndConsumeAll\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mos\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Mos\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 8 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Property MoLine\\:\\:\\$fk_warehouse \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property MoLine\:\:\$fk_warehouse \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/mrp/class/api_mos.class.php - - message: "#^Method Mo\\:\\:fetchAll\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Mo\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Mo\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/mrp/class/mo.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Mo\) and ''qty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/mrp/class/mo.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Mo\) and ''socid'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/mrp/class/mo.class.php + + - + message: '#^Method Mo\:\:fetchAll\(\) has parameter \$filter with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/mrp/class/mo.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property Mo\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property Mo\\:\\:\\$fk_warehouse \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$fk_warehouse \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property Mo\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property Mo\\:\\:\\$mrptype \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$mrptype \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property Mo\\:\\:\\$qty \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$qty \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property Mo\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/mo.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$tpl \(array\\) does not accept array\\.$#' + identifier: assign.propertyType + count: 6 + path: ../../htdocs/mrp/class/mo.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/class/moline.class.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/mrp/mo_agenda.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/mrp/mo_agenda.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/mo_agenda.php - - message: "#^Property Mo\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/mo_card.php - - message: "#^Property Mo\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/mo_card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/mrp/mo_card.php - - message: "#^Variable \\$titlelist might not be defined\\.$#" + message: '#^Variable \$titlelist might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/mo_card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/mrp/mo_document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/mo_document.php - - message: "#^Property Mo\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/mo_movements.php - - message: "#^Property Mo\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Mo\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/mo_movements.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/mrp/mo_movements.php - - message: "#^Variable \\$movement might not be defined\\.$#" + message: '#^Variable \$movement might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/mo_movements.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/mo_movements.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/mrp/mo_note.php - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Call to function is_object\(\) with MoLine will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/mrp/mo_production.php + + - + message: '#^Left side of \|\| is always true\.$#' + identifier: booleanOr.leftAlwaysTrue count: 5 path: ../../htdocs/mrp/mo_production.php - - message: "#^Property Mo\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/mrp/mo_production.php - - - - message: "#^Property Mo\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/mrp/mo_production.php - - - - message: "#^Ternary operator condition is always false\\.$#" - count: 1 - path: ../../htdocs/mrp/mo_production.php - - - - message: "#^Variable \\$extrafields in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between ''consumeandproduceall'' and ''consumeandproduceall'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/mrp/mo_production.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Property Mo\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/mrp/mo_production.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Property Mo\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/mrp/mo_production.php + + - + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 2 + path: ../../htdocs/mrp/mo_production.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/mrp/mo_production.php + + - + message: '#^Variable \$extrafields in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/mrp/mo_production.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/mrp/mo_production.php + + - + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/mrp/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/mrp/tpl/linkedobjectblock.tpl.php - - message: "#^Method MultiCurrencies\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method MultiCurrencies\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/multicurrency/class/api_multicurrencies.class.php - - message: "#^Method MultiCurrencies\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method MultiCurrencies\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/multicurrency/class/api_multicurrencies.class.php - - message: "#^Method MultiCurrencies\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method MultiCurrencies\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/multicurrency/class/api_multicurrencies.class.php - - message: "#^Method MultiCurrencies\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method MultiCurrencies\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/multicurrency/class/api_multicurrencies.class.php - - message: "#^Method MultiCurrencies\\:\\:updateRate\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method MultiCurrencies\:\:updateRate\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/multicurrency/class/api_multicurrencies.class.php - - message: "#^Parameter \\#1 \\$object of method MultiCurrencies\\:\\:_cleanObjectDatasRate\\(\\) expects MultiCurrency, CurrencyRate given\\.$#" + message: '#^Parameter \#1 \$object of method MultiCurrencies\:\:_cleanObjectDatasRate\(\) expects MultiCurrency, CurrencyRate given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/multicurrency/class/api_multicurrencies.class.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 3 path: ../../htdocs/multicurrency/multicurrency_rate.php - - message: "#^Variable \\$arrayofmassactions might not be defined\\.$#" + message: '#^Variable \$arrayofmassactions might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/multicurrency/multicurrency_rate.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/opcachepreload.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/opensurvey/card.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/opensurvey/card.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/opensurvey/card.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/card.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/card.php - - message: "#^Variable \\$userstatic might not be defined\\.$#" + message: '#^Variable \$userstatic might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/opensurvey/card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Method Opensurveysondage\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Opensurveysondage\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$format \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$format \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$id_sondage \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$id_sondage \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$mail_admin \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$mail_admin \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$mailsonde \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$mailsonde \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$nom_admin \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$nom_admin \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Property Opensurveysondage\\:\\:\\$title \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Opensurveysondage\:\:\$title \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/opensurvey/class/opensurveysondage.class.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/opensurvey/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/opensurvey/list.php - - message: "#^Variable \\$nbuser might not be defined\\.$#" + message: '#^Variable \$nbuser might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/list.php - - message: "#^Variable \\$search_all might not be defined\\.$#" + message: '#^Variable \$search_all might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/list.php - - message: "#^Offset int\\<0, max\\> on array\\, int\\<0, max\\>\\> in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset int\<0, max\> on array\, int\<0, max\>\> in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$cleinsertion might not be defined\\.$#" + message: '#^Variable \$cleinsertion might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$erreur_ajout_date in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$erreur_ajout_date in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$expiredate might not be defined\\.$#" + message: '#^Variable \$expiredate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$meilleurecolonne might not be defined\\.$#" + message: '#^Variable \$meilleurecolonne might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$modifier might not be defined\\.$#" + message: '#^Variable \$modifier might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$userstatic might not be defined\\.$#" + message: '#^Variable \$userstatic might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/results.php - - message: "#^Variable \\$allow_comments might not be defined\\.$#" + message: '#^Variable \$allow_comments might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/wizard/create_survey.php - - message: "#^Variable \\$allow_spy might not be defined\\.$#" + message: '#^Variable \$allow_spy might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/wizard/create_survey.php - - message: "#^Variable \\$champdatefin might not be defined\\.$#" + message: '#^Variable \$champdatefin might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/opensurvey/wizard/create_survey.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/partnership/admin/website.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Method Partnerships\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Partnerships\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Method Partnerships\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Partnerships\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Method Partnerships\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Partnerships\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Method Partnerships\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Partnerships\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Method Partnerships\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Partnerships\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Method Partnerships\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Partnerships\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/partnership/class/api_partnerships.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Partnership\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/partnership/class/partnership.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Partnership\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Partnership\) and ''fk_soc'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Partnership\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Call to function property_exists\(\) with Partnership and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Call to function property_exists\(\) with Partnership and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Call to function property_exists\(\) with Partnership and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Call to function property_exists\(\) with Partnership and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/partnership/class/partnership.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/partnership/class/partnership.class.php - - message: "#^Property Partnership\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Partnership\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 10, notnull\: 1, visible\: 4, noteditable\: 1, default\: ''\(PROV\)'', \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: ''isModEnabled\(…'', position\: 15, notnull\: 1, visible\: \-2, default\: ''1'', index\: 1\}, fk_type\: array\{type\: ''integer…'', label\: ''Type'', enabled\: 1, position\: 20, notnull\: 1, visible\: 1, csslist\: ''tdoverflowmax125''\}, fk_soc\: array\{type\: ''integer\:Societe…'', label\: ''ThirdParty'', picto\: ''company'', enabled\: 1, position\: 50, notnull\: \-1, visible\: 1, index\: 1, \.\.\.\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 61, notnull\: 0, visible\: 0\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 62, notnull\: 0, visible\: 0\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, position\: 500, notnull\: 1, visible\: \-2, csslist\: ''nowraponall''\}, \.\.\.\}\.$#' + identifier: property.defaultValue count: 1 path: ../../htdocs/partnership/class/partnership.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Property Partnership\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/partnership/class/partnership.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/partnership/class/partnership_type.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/partnership/class/partnership_type.class.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 2 path: ../../htdocs/partnership/class/partnership_type.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$url in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/partnership/class/partnership_type.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Call to function is_array\(\) with array\{\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/partnership/class/partnershiputils.class.php - - message: "#^Variable \\$triggersendname in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function is_object\(\) with Partnership will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/partnership/class/partnershiputils.class.php - - message: "#^Property mod_partnership_standard\\:\\:\\$prefix has no type specified\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/partnership/class/partnershiputils.class.php + + - + message: '#^Variable \$triggersendname in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/partnership/class/partnershiputils.class.php + + - + message: '#^Property mod_partnership_standard\:\:\$prefix has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/partnership/core/modules/partnership/mod_partnership_standard.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/partnership/partnership_card.php - - message: "#^Property Partnership\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Partnership\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/partnership/partnership_card.php - - message: "#^Property Partnership\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Partnership\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/partnership/partnership_card.php - - message: "#^Variable \\$adht might not be defined\\.$#" + message: '#^Variable \$adht might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/partnership/partnership_card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/partnership/partnership_card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/partnership/partnership_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/partnership/partnership_document.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/partnership/partnership_list.php - - message: "#^Offset 'searchall' on array\\{type\\: 'integer', label\\: 'Country', enabled\\: 1, position\\: 51, notnull\\: 0, visible\\: 1, alwayseditable\\: 1, css\\: 'maxwidth500…', \\.\\.\\.\\}\\|array\\{type\\: 'varchar\\(128\\)', label\\: 'Town', enabled\\: 1, position\\: 51, notnull\\: 0, visible\\: 1, alwayseditable\\: 1, searchall\\: 1\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''searchall'' on array\{type\: ''integer'', label\: ''Country'', enabled\: 1, position\: 51, notnull\: 0, visible\: 1, alwayseditable\: 1, css\: ''maxwidth500…'', \.\.\.\}\|array\{type\: ''varchar\(128\)'', label\: ''Town'', enabled\: 1, position\: 51, notnull\: 0, visible\: 1, alwayseditable\: 1, searchall\: 1\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/partnership/partnership_list.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/partnership/partnership_list.php - - message: "#^Variable \\$IBS_DEVISE in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$IBS_DEVISE in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/paybox/lib/paybox.lib.php - - message: "#^Variable \\$IBS_RANG in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$IBS_RANG in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/paybox/lib/paybox.lib.php - - message: "#^Variable \\$IBS_SITE in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$IBS_SITE in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/paybox/lib/paybox.lib.php - - message: "#^Comparison operation \"\\<\" between \\-1 and 0 is always true\\.$#" + message: '#^Comparison operation "\<" between \-1 and 0 is always true\.$#' + identifier: smaller.alwaysTrue count: 1 path: ../../htdocs/paypal/lib/paypal.lib.php - - message: "#^Variable \\$paypalprefix in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Parameter \#3 \$value of function curl_setopt expects 0\|2, bool given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/paypal/lib/paypal.lib.php - - message: "#^Variable \\$classfile might not be defined\\.$#" + message: '#^Parameter \#3 \$value of function curl_setopt expects bool, int given\.$#' + identifier: argument.type + count: 3 + path: ../../htdocs/paypal/lib/paypal.lib.php + + - + message: '#^Variable \$paypalprefix in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/paypal/lib/paypal.lib.php + + - + message: '#^Variable \$classfile might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/printing/admin/printing.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 1 path: ../../htdocs/product/admin/price_rules.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Strict comparison using \=\=\= between ''0'' and ''0'' will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/product/admin/price_rules.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/product/admin/product.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/admin/product.php - - message: "#^Variable \\$obj might not be defined\\.$#" + message: '#^Variable \$obj might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/product/admin/product.php - - message: "#^Comparison operation \"\\<\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\<" between 0 and 0 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: ../../htdocs/product/admin/product_tools.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/admin/product_tools.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 1 path: ../../htdocs/product/admin/product_tools.php - - message: "#^Variable \\$price_base_type in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$price_base_type in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/admin/product_tools.php - - message: "#^Variable \\$arrayresult might not be defined\\.$#" + message: '#^Variable \$arrayresult might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/ajax/products.php - - message: "#^Property ActionsCardProduct\\:\\:\\$field_list has no type specified\\.$#" + message: '#^Property ActionsCardProduct\:\:\$field_list has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/product/canvas/product/actions_card_product.class.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/canvas/product/tpl/card_create.tpl.php - - message: "#^Variable \\$refalreadyexists might not be defined\\.$#" + message: '#^Variable \$refalreadyexists might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/canvas/product/tpl/card_create.tpl.php - - message: "#^Property ActionsCardService\\:\\:\\$field_list has no type specified\\.$#" + message: '#^Property ActionsCardService\:\:\$field_list has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/product/canvas/service/actions_card_service.class.php - - message: "#^Property ActionsCardService\\:\\:\\$tpl has no type specified\\.$#" + message: '#^Property ActionsCardService\:\:\$tpl has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/product/canvas/service/actions_card_service.class.php - - message: "#^Variable \\$canvas might not be defined\\.$#" - count: 1 - path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php - - - - message: "#^Variable \\$refalreadyexists might not be defined\\.$#" - count: 1 - path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php - - - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Cannot access property \$control on mixed\.$#' + identifier: property.nonObject count: 2 path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php + + - + message: '#^Variable \$refalreadyexists might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php + + - + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/product/card.php - - message: "#^Variable \\$modCodeProduct might not be defined\\.$#" + message: '#^Variable \$modCodeProduct might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/card.php - - message: "#^Variable \\$prod might not be defined\\.$#" + message: '#^Variable \$prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:addPurchasePrice\\(\\) has parameter \\$localtaxes_array with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:addPurchasePrice\(\) has parameter \$localtaxes_array with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:addVariant\\(\\) has parameter \\$features with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:addVariant\(\) has parameter \$features with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:addVariantByProductRef\\(\\) has parameter \\$features with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:addVariantByProductRef\(\) has parameter \$features with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributeValueById\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributeValueById\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributeValueByRef\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributeValueByRef\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributeValues\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributeValues\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributeValuesByRef\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributeValuesByRef\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributesByRef\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributesByRef\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getAttributesByRefExt\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getAttributesByRefExt\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getSubproducts\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getSubproducts\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getSupplierProducts\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getSupplierProducts\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getVariants\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getVariants\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:getVariantsByProdRef\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:getVariantsByProdRef\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:putAttributeValue\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:putAttributeValue\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:putAttributes\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:putAttributes\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Method Products\\:\\:putVariant\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Products\:\:putVariant\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Parameter \\#1 \\$object of method Products\\:\\:_cleanObjectDatas\\(\\) expects object, array\\\\|int given\\.$#" + message: '#^Parameter \#1 \$object of method Products\:\:_cleanObjectDatas\(\) expects object, array\\|int given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Property Products\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Products\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/class/api_products.class.php - - message: "#^Comparison operation \"\\>\\=\" between 0 and 0 is always true\\.$#" + message: '#^Strict comparison using \=\=\= between 2 and 2 will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/product/class/html.formproduct.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Product\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/product.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Product\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/product.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Product\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/product.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Product\) and ''price'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Product\) and ''price_ttc'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Product\) and ''stock_reel'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Comparison operation "\>\=" between 0 and 0 is always true\.$#' + identifier: greaterOrEqual.alwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Loose comparison using \=\= between 1 and 1 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/product/class/product.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Method Product\:\:_get_stats\(\) should return \-1\|array\, array\\> but returns non\-empty\-array\, array\{string, \(float\|int\)\}\>\.$#' + identifier: return.type + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/class/product.class.php - - message: "#^Property Product\\:\\:\\$accountancy_code_buy \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$accountancy_code_sell \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$desiredstock \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$fk_default_bom \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$seuil_stock_alerte \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$sousprods \\(array\\\\>\\>\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$stats_bom has no type specified\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$stats_facture_fournisseur has no type specified\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$stats_facturerec has no type specified\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$stats_mrptoconsume has no type specified\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$stats_mrptoproduce has no type specified\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$status_buy \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Property Product\\:\\:\\$type \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Result of && is always true\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Result of \\|\\| is always true\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Right side of && is always true\\.$#" - count: 1 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/class/product.class.php - - message: "#^Ternary operator condition is always true\\.$#" - count: 3 - path: ../../htdocs/product/class/product.class.php - - - - message: "#^Variable \\$prodDurationHours might not be defined\\.$#" + message: '#^Property Product\:\:\$accountancy_code_buy \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/class/product.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Property Product\:\:\$accountancy_code_sell \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 - path: ../../htdocs/product/class/productbatch.class.php + path: ../../htdocs/product/class/product.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/product/class/productbatch.class.php - - - - message: "#^Property Productbatch\\:\\:\\$batch \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/product/class/productbatch.class.php - - - - message: "#^Property Productbatch\\:\\:\\$eatby \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$desiredstock \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 - path: ../../htdocs/product/class/productbatch.class.php + path: ../../htdocs/product/class/product.class.php - - message: "#^Property Productbatch\\:\\:\\$qty \\(float\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/product/class/productbatch.class.php - - - - message: "#^Property Productbatch\\:\\:\\$sellby \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, visible\: \-2, notnull\: 1, index\: 1, position\: 1, comment\: ''Id''\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 1, index\: 1, position\: 10, \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, default\: ''1'', notnull\: 1, index\: 1, position\: 5\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, visible\: 1, notnull\: 1, showoncombobox\: 2, position\: 15, csslist\: ''tdoverflowmax250''\}, barcode\: array\{type\: ''varchar\(255\)'', label\: ''Barcode'', enabled\: ''isModEnabled\(…'', position\: 20, visible\: \-1, showoncombobox\: 3, cssview\: ''tdwordbreak'', csslist\: ''tdoverflowmax125''\}, fk_barcode_type\: array\{type\: ''integer'', label\: ''BarcodeType'', enabled\: 1, position\: 21, notnull\: 0, visible\: \-1\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, visible\: 0, position\: 61\}, note\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, visible\: 0, position\: 62\}, \.\.\.\}\.$#' + identifier: property.defaultValue count: 1 - path: ../../htdocs/product/class/productbatch.class.php + path: ../../htdocs/product/class/product.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php + message: '#^Property Product\:\:\$fk_default_bom \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/product.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$seuil_stock_alerte \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$sousprods \(array\\>\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$stats_bom has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$stats_facture_fournisseur has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$stats_facturerec has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$stats_mrptoconsume has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$stats_mrptoproduce has no type specified\.$#' + identifier: missingType.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$status_buy \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Property Product\:\:\$type \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Strict comparison using \!\=\= between mixed~\(0\.0\|''''\|''0''\|array\{\}\|false\|null\) and '''' will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 - path: ../../htdocs/product/class/productcustomerprice.class.php + path: ../../htdocs/product/class/product.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/product/class/product.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$fk_soc \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php + message: '#^Variable \$prodDurationHours might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/product/class/product.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$fk_user \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/product/class/productcustomerprice.class.php + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/product/class/productbatch.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$localtax1_tx \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Property ProductCustomerPrice\\:\\:\\$localtax2_tx \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Property ProductCustomerPrice\\:\\:\\$price \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 - path: ../../htdocs/product/class/productcustomerprice.class.php + path: ../../htdocs/product/class/productbatch.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$price_base_type \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Property ProductCustomerPrice\\:\\:\\$price_label \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Property ProductCustomerPrice\\:\\:\\$price_min \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productbatch\:\:\$batch \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 - path: ../../htdocs/product/class/productcustomerprice.class.php + path: ../../htdocs/product/class/productbatch.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$price_min_ttc \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productbatch\:\:\$eatby \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/productbatch.class.php + + - + message: '#^Property Productbatch\:\:\$qty \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 - path: ../../htdocs/product/class/productcustomerprice.class.php + path: ../../htdocs/product/class/productbatch.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$price_ttc \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/product/class/productcustomerprice.class.php + message: '#^Property Productbatch\:\:\$sellby \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/productbatch.class.php - - message: "#^Property ProductCustomerPrice\\:\\:\\$recuperableonly \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Property ProductCustomerPrice\\:\\:\\$ref_customer \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Property ProductCustomerPrice\\:\\:\\$tva_tx \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/product/class/productcustomerprice.class.php - - - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Loose comparison using \=\= between '''' and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 6 path: ../../htdocs/product/class/productcustomerprice.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$fk_soc \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$fk_user \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$localtax1_tx \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$localtax2_tx \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$price \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$price_base_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$price_label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$price_min \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$price_min_ttc \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$price_ttc \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$recuperableonly \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$ref_customer \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Property ProductCustomerPrice\:\:\$tva_tx \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/product/class/productcustomerprice.class.php + + - + message: '#^Call to function property_exists\(\) with ProductFournisseurPrice and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/productfournisseurprice.class.php - - message: "#^Method ProductFournisseurPrice\\:\\:fetchAll\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with ProductFournisseurPrice and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/productfournisseurprice.class.php - - message: "#^Method ProductFournisseurPrice\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with ProductFournisseurPrice and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/productfournisseurprice.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with ProductFournisseurPrice and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/class/productfournisseurprice.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/product/class/productfournisseurprice.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Method ProductFournisseurPrice\:\:fetchAll\(\) has parameter \$filter with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/product/class/productfournisseurprice.class.php + + - + message: '#^Method ProductFournisseurPrice\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/product/class/productfournisseurprice.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/product/class/productfournisseurprice.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/class/productfournisseurprice.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Property CommonObject\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Property Propalmergepdfproduct\\:\\:\\$file_name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propalmergepdfproduct\:\:\$file_name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Property Propalmergepdfproduct\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propalmergepdfproduct\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Property Propalmergepdfproduct\\:\\:\\$fk_user_author \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propalmergepdfproduct\:\:\$fk_user_author \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Property Propalmergepdfproduct\\:\\:\\$fk_user_mod \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propalmergepdfproduct\:\:\$fk_user_mod \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Property Propalmergepdfproduct\\:\\:\\$lang \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Propalmergepdfproduct\:\:\$lang \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/class/propalmergepdfproduct.class.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/composition/card.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/composition/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/product/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/document.php - - message: "#^Variable \\$upload_dirold might not be defined\\.$#" + message: '#^Variable \$upload_dirold might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/document.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/dynamic_price/class/price_expression.class.php - - message: "#^Property PriceExpression\\:\\:\\$expression \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PriceExpression\:\:\$expression \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/dynamic_price/class/price_expression.class.php - - message: "#^Property PriceExpression\\:\\:\\$title \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PriceExpression\:\:\$title \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/dynamic_price/class/price_expression.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/dynamic_price/class/price_global_variable.class.php - - message: "#^Property PriceGlobalVariable\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PriceGlobalVariable\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/product/dynamic_price/class/price_global_variable.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/dynamic_price/class/price_global_variable_updater.class.php - - message: "#^Property PriceGlobalVariableUpdater\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PriceGlobalVariableUpdater\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/product/dynamic_price/class/price_global_variable_updater.class.php - - message: "#^Property PriceExpression\\:\\:\\$expression \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PriceExpression\:\:\$expression \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/dynamic_price/editor.php - - message: "#^Variable \\$lastmodified might not be defined\\.$#" + message: '#^Variable \$lastmodified might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/product/inventory/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/inventory/card.php - - message: "#^Property Inventory\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Inventory\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/inventory/card.php - - message: "#^Variable \\$backtopageforcancel might not be defined\\.$#" + message: '#^Variable \$backtopageforcancel might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/inventory/card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/inventory/card.php - - message: "#^Variable \\$error in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Inventory\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/inventory/class/inventory.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Inventory\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/inventory/class/inventory.class.php + + - + message: '#^Variable \$error in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/inventory/inventory.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Offset ''help'' on array\{label\: string, checked\: string, enabled\?\: string, type\?\: string, langfile\?\: string\} in empty\(\) does not exist\.$#' + identifier: empty.offset + count: 1 + path: ../../htdocs/product/list.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/product/list.php - - message: "#^Variable \\$perm might not be defined\\.$#" + message: '#^Variable \$perm might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/list.php - - message: "#^Variable \\$workstation_static might not be defined\\.$#" + message: '#^Variable \$workstation_static might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/product/list.php - - message: "#^Parameter \\#4 \\$txtva of function calcul_price_total expects float, string given\\.$#" - count: 2 - path: ../../htdocs/product/price.php - - - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^Loose comparison using \=\= between ''add_customer_price'' and ''add_customer_price'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/product/price.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between ''edit_customer_price'' and ''edit_price'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/product/price.php + + - + message: '#^Loose comparison using \=\= between ''edit_level_price'' and ''edit_level_price'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 2 + path: ../../htdocs/product/price.php + + - + message: '#^Loose comparison using \=\= between ''edit_price'' and ''edit_price'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 2 + path: ../../htdocs/product/price.php + + - + message: '#^Parameter \#4 \$txtva of function calcul_price_total expects float, string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/product/price.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 + path: ../../htdocs/product/price.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse + count: 1 + path: ../../htdocs/product/price.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 8 path: ../../htdocs/product/price.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price.php - - message: "#^Variable \\$extrafield_values might not be defined\\.$#" + message: '#^Variable \$extrafield_values might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/price.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price.php - - message: "#^Variable \\$ii might not be defined\\.$#" + message: '#^Variable \$ii might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/price.php - - message: "#^Variable \\$lineid might not be defined\\.$#" + message: '#^Variable \$lineid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price.php - - message: "#^Variable \\$maxpricesupplier might not be defined\\.$#" + message: '#^Variable \$maxpricesupplier might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/price.php - - message: "#^Variable \\$obj might not be defined\\.$#" + message: '#^Variable \$obj might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price.php - - message: "#^Variable \\$rowid might not be defined\\.$#" + message: '#^Variable \$rowid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/price.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/product/price_suppliers.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/price_suppliers.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/price_suppliers.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/product/reassort.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/product/reassort.php - - message: "#^Comparison operation \"\\<\" between null and 0 is always false\\.$#" + message: '#^Comparison operation "\<" between null and 0 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: ../../htdocs/product/reassortlot.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/product/reassortlot.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/reassortlot.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/reassortlot.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/product/reassortlot.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/bom.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/bom.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/product/stats/card.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/commande.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/commande.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stats/commande_fournisseur.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/commande_fournisseur.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/commande_fournisseur.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/product/stats/contrat.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/contrat.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/contrat.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/expedition.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/expedition.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stats/facture.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/facture.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/facture.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/facture_fournisseur.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/facture_fournisseur.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/facturerec.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/facturerec.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/product/stats/mo.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/mo.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/mo.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/propal.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/propal.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/reception.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/reception.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/supplier_proposal.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stats/supplier_proposal.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/card.php - - message: "#^Variable \\$lastmovementdate might not be defined\\.$#" + message: '#^Variable \$lastmovementdate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/card.php - - message: "#^Variable \\$pricemin might not be defined\\.$#" + message: '#^Variable \$pricemin might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/card.php - - message: "#^Method StockMovements\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method StockMovements\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_stockmovements.class.php - - message: "#^Property StockMovements\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property StockMovements\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_stockmovements.class.php - - message: "#^Method Warehouses\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Warehouses\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Method Warehouses\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Warehouses\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Method Warehouses\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Warehouses\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Method Warehouses\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Warehouses\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Method Warehouses\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Warehouses\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Method Warehouses\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Warehouses\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Property Warehouses\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Warehouses\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/class/api_warehouses.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Entrepot\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/stock/class/entrepot.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Entrepot\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/stock/class/entrepot.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Entrepot\) and ''lieu'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/stock/class/entrepot.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/product/stock/class/entrepot.class.php - - message: "#^Variable \\$fk_product_stock might not be defined\\.$#" + message: '#^Property Entrepot\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''ID'', enabled\: 1, visible\: 0, notnull\: 1, position\: 10\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, default\: ''1'', notnull\: 1, index\: 1, position\: 15\}, ref\: array\{type\: ''varchar\(255\)'', label\: ''Ref'', enabled\: 1, visible\: 1, showoncombobox\: 1, position\: 25, searchall\: 1\}, description\: array\{type\: ''text'', label\: ''Description'', enabled\: 1, visible\: \-2, position\: 35, searchall\: 1\}, lieu\: array\{type\: ''varchar\(64\)'', label\: ''LocationSummary'', enabled\: 1, visible\: 1, position\: 40, showoncombobox\: 2, searchall\: 1\}, fk_parent\: array\{type\: ''integer\:Entrepot…'', label\: ''ParentWarehouse'', enabled\: 1, visible\: \-2, position\: 41\}, fk_project\: array\{type\: ''integer\:Project…'', label\: ''Project'', enabled\: ''\$conf\-\>project\-…'', visible\: \-1, position\: 42\}, address\: array\{type\: ''varchar\(255\)'', label\: ''Address'', enabled\: 1, visible\: \-2, position\: 45, searchall\: 1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/product/stock/class/entrepot.class.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/product/stock/class/mouvementstock.class.php + + - + message: '#^Variable \$fk_product_stock might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/class/mouvementstock.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$batch \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$batch \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$eatby \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$eatby \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$eol_date \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$eol_date \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$manufacturing_date \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$manufacturing_date \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$scrapping_date \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$scrapping_date \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Property Productlot\\:\\:\\$sellby \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Productlot\:\:\$sellby \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/product/stock/class/productlot.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/stock/class/productstockentrepot.class.php - - message: "#^Property ProductStockEntrepot\\:\\:\\$fk_entrepot \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ProductStockEntrepot\:\:\$fk_entrepot \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productstockentrepot.class.php - - message: "#^Property ProductStockEntrepot\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ProductStockEntrepot\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productstockentrepot.class.php - - message: "#^Property ProductStockEntrepot\\:\\:\\$import_key \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ProductStockEntrepot\:\:\$import_key \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/product/stock/class/productstockentrepot.class.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/info.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/info.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/info.php - - message: "#^If condition is always false\\.$#" - count: 2 - path: ../../htdocs/product/stock/list.php - - - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/product/stock/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/product/stock/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/product/stock/list.php - - message: "#^Variable \\$sall might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/product/stock/list.php - - message: "#^Variable \\$totalnboflines might not be defined\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/list.php - - message: "#^Comparison operation \"\\<\" between 0 and 0 is always false\\.$#" + message: '#^Variable \$sall might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/product/stock/list.php + + - + message: '#^Variable \$totalnboflines might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/product/stock/list.php + + - + message: '#^Comparison operation "\<" between 0 and 0 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Comparison operation \"\\<\\=\" between 0 and 0 is always true\\.$#" + message: '#^Comparison operation "\<\=" between 0 and 0 is always true\.$#' + identifier: smallerOrEqual.alwaysTrue count: 2 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Variable \\$datatoimport might not be defined\\.$#" + message: '#^Variable \$datatoimport might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Variable \\$endatlinenb might not be defined\\.$#" + message: '#^Variable \$endatlinenb might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Variable \\$excludefirstline might not be defined\\.$#" + message: '#^Variable \$excludefirstline might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Variable \\$format might not be defined\\.$#" + message: '#^Variable \$format might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Variable \\$producttmp might not be defined\\.$#" + message: '#^Variable \$producttmp might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/massstockmove.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Property Product\\:\\:\\$pmp \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$pmp \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$backtopage might not be defined\\.$#" + message: '#^Variable \$backtopage might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$batch might not be defined\\.$#" + message: '#^Variable \$batch might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$comref might not be defined\\.$#" + message: '#^Variable \$comref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$d_eatby might not be defined\\.$#" + message: '#^Variable \$d_eatby might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$d_sellby might not be defined\\.$#" + message: '#^Variable \$d_sellby might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$eatby might not be defined\\.$#" + message: '#^Variable \$eatby might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$lastmovementdate might not be defined\\.$#" + message: '#^Variable \$lastmovementdate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$massaction might not be defined\\.$#" + message: '#^Variable \$massaction might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$obj might not be defined\\.$#" + message: '#^Variable \$obj might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$optioncss might not be defined\\.$#" + message: '#^Variable \$optioncss might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$result1 might not be defined\\.$#" + message: '#^Variable \$result1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$result2 might not be defined\\.$#" + message: '#^Variable \$result2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$sall might not be defined\\.$#" + message: '#^Variable \$sall might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$sellby might not be defined\\.$#" + message: '#^Variable \$sellby might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$srcwarehouseid might not be defined\\.$#" + message: '#^Variable \$srcwarehouseid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$toselect might not be defined\\.$#" + message: '#^Variable \$toselect might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Variable \\$totalarray might not be defined\\.$#" + message: '#^Variable \$totalarray might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Loose comparison using \=\= between 1 and 2 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: ../../htdocs/product/stock/movement_list.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Property Product\\:\\:\\$pmp \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$pmp \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$d_eatby might not be defined\\.$#" + message: '#^Variable \$d_eatby might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$d_sellby might not be defined\\.$#" + message: '#^Variable \$d_sellby might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$diroutputmassaction in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$diroutputmassaction in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$idAlreadyReverse might not be defined\\.$#" + message: '#^Variable \$idAlreadyReverse might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$listofobjectref might not be defined\\.$#" + message: '#^Variable \$listofobjectref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$month might not be defined\\.$#" + message: '#^Variable \$month might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^Variable \\$whClass might not be defined\\.$#" + message: '#^Variable \$whClass might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/movement_list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Property Product\\:\\:\\$pmp \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Product\:\:\$pmp \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$batch might not be defined\\.$#" + message: '#^Variable \$batch might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$eatby might not be defined\\.$#" + message: '#^Variable \$eatby might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$lastmovementdate might not be defined\\.$#" + message: '#^Variable \$lastmovementdate might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$result1 might not be defined\\.$#" + message: '#^Variable \$result1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$result2 might not be defined\\.$#" + message: '#^Variable \$result2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$sellby might not be defined\\.$#" + message: '#^Variable \$sellby might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$sortfield might not be defined\\.$#" + message: '#^Variable \$sortfield might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$sortorder might not be defined\\.$#" + message: '#^Variable \$sortorder might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$srcwarehouseid might not be defined\\.$#" + message: '#^Variable \$srcwarehouseid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/product.php - - message: "#^Variable \\$variants might not be defined\\.$#" + message: '#^Variable \$variants might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/product/stock/product.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/product/stock/productlot_card.php - - message: "#^Variable \\$modulepart might not be defined\\.$#" + message: '#^Variable \$modulepart might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/productlot_card.php - - message: "#^Variable \\$batch might not be defined\\.$#" + message: '#^Variable \$batch might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/productlot_document.php - - message: "#^Variable \\$productid might not be defined\\.$#" + message: '#^Variable \$productid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/productlot_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/productlot_list.php - - message: "#^Variable \\$show_files might not be defined\\.$#" + message: '#^Variable \$show_files might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/productlot_list.php - - message: "#^Variable \\$draftchecked in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$draftchecked in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../htdocs/product/stock/replenish.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/replenish.php - - message: "#^Variable \\$lastWarehouseID might not be defined\\.$#" + message: '#^Variable \$lastWarehouseID might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/replenish.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/replenishorders.php - - message: "#^Variable \\$morehtmlref might not be defined\\.$#" + message: '#^Variable \$morehtmlref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/commande_fournisseur.php - - message: "#^Variable \\$option might not be defined\\.$#" + message: '#^Variable \$option might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/commande_fournisseur.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/commande_fournisseur.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/commande_fournisseur.php - - message: "#^Variable \\$morehtmlref might not be defined\\.$#" + message: '#^Variable \$morehtmlref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/expedition.php - - message: "#^Variable \\$option might not be defined\\.$#" + message: '#^Variable \$option might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/expedition.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/expedition.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/expedition.php - - message: "#^Variable \\$batch might not be defined\\.$#" + message: '#^Variable \$batch might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/mo.php - - message: "#^Variable \\$morehtmlref might not be defined\\.$#" + message: '#^Variable \$morehtmlref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/mo.php - - message: "#^Variable \\$objectid might not be defined\\.$#" + message: '#^Variable \$objectid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/mo.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/stats/mo.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/mo.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/mo.php - - message: "#^Variable \\$morehtmlref might not be defined\\.$#" + message: '#^Variable \$morehtmlref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/reception.php - - message: "#^Variable \\$option might not be defined\\.$#" + message: '#^Variable \$option might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stats/reception.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/reception.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stats/reception.php - - message: "#^Variable \\$nbofmovement might not be defined\\.$#" + message: '#^Variable \$nbofmovement might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/product/stock/stockatdate.php - - message: "#^Variable \\$resql might not be defined\\.$#" + message: '#^Variable \$resql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stockatdate.php - - message: "#^Variable \\$virtualstock might not be defined\\.$#" + message: '#^Variable \$virtualstock might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/product/stock/stockatdate.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(StockTransfer\) and ''socid'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransfer.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransfer.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransfer.class.php - - message: "#^Property StockTransfer\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransfer.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property StockTransfer\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/product/stock/stocktransfer/class/stocktransfer.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransferline.class.php - - message: "#^Method StockTransferLine\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method StockTransferLine\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransferline.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransferline.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/class/stocktransferline.class.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_agenda.php - - message: "#^Property StockTransfer\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property StockTransfer\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_agenda.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Property StockTransfer\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property StockTransfer\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Variable \\$sortfield might not be defined\\.$#" + message: '#^Variable \$sortfield might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Variable \\$sortorder might not be defined\\.$#" + message: '#^Variable \$sortorder might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_contact.php - - message: "#^Property StockTransfer\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property StockTransfer\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_contact.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_contact.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/product/stock/stocktransfer/stocktransfer_list.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/product/stock/tpl/extrafields_add.tpl.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/product/stock/tpl/extrafields_add.tpl.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php + + - + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/product/stock/tpl/stocktransfer.tpl.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../htdocs/product/traduction.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/projet/activity/index.php - - message: "#^Variable \\$total might not be defined\\.$#" + message: '#^Variable \$total might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/projet/activity/index.php - - message: "#^Variable \\$userstatic might not be defined\\.$#" + message: '#^Variable \$userstatic might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/projet/activity/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/activity/perday.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/projet/activity/perday.php + + - + message: '#^Parameter \#1 \$inc of function projectLinesPerDay expects string, int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perday.php + + - + message: '#^Parameter \#11 \$isavailable of function projectLinesPerDay expects array\, afternoon\: int\<0, 1\>\}\>, non\-empty\-array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perday.php + + - + message: '#^Parameter \#13 \$arrayfields of function projectLinesPerDay expects array\, array\\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perday.php + + - + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/projet/activity/perday.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/projet/activity/perday.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$projectsrole of function projectLinesPerDay expects string, array\\|int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perday.php + + - + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/projet/activity/perday.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Parameter \#7 \$tasksrole of function projectLinesPerDay expects string, array\\|int given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/activity/perday.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/projet/activity/perday.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 4 path: ../../htdocs/projet/activity/perday.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/activity/perday.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/activity/perday.php - - message: "#^Variable \\$ref might not be defined\\.$#" + message: '#^Variable \$ref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/activity/perday.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/projet/activity/permonth.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Parameter \#1 \$inc of function projectLinesPerMonth expects string, int given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/activity/permonth.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Parameter \#14 \$arrayfields of function projectLinesPerMonth expects array\, array\\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/permonth.php + + - + message: '#^Parameter \#7 \$projectsrole of function projectLinesPerMonth expects string, array\\|int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/permonth.php + + - + message: '#^Parameter \#8 \$tasksrole of function projectLinesPerMonth expects string, array\\|int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/permonth.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/projet/activity/permonth.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 4 path: ../../htdocs/projet/activity/permonth.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/activity/permonth.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/activity/permonth.php - - message: "#^Variable \\$ref might not be defined\\.$#" + message: '#^Variable \$ref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/activity/permonth.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/projet/activity/perweek.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Parameter \#1 \$inc of function projectLinesPerWeek expects string, int given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/activity/perweek.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Parameter \#11 \$isavailable of function projectLinesPerWeek expects array\, afternoon\: int\<0, 1\>\}\>, non\-empty\-array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perweek.php + + - + message: '#^Parameter \#13 \$arrayfields of function projectLinesPerWeek expects array\, array\\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perweek.php + + - + message: '#^Parameter \#7 \$projectsrole of function projectLinesPerWeek expects string, array\\|int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perweek.php + + - + message: '#^Parameter \#8 \$tasksrole of function projectLinesPerWeek expects string, array\\|int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/activity/perweek.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/projet/activity/perweek.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 4 path: ../../htdocs/projet/activity/perweek.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/activity/perweek.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/activity/perweek.php - - message: "#^Variable \\$ref might not be defined\\.$#" + message: '#^Variable \$ref might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/activity/perweek.php - - message: "#^Variable \\$res might not be defined\\.$#" + message: '#^Variable \$res might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/admin/project.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/admin/website.php - - message: "#^Variable \\$morecss might not be defined\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/agenda.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/card.php - - message: "#^Parameter \\#1 \\$object of method Projects\\:\\:_cleanObjectDatas\\(\\) expects object, string given\\.$#" + message: '#^Variable \$morecss might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/card.php + + - + message: '#^Parameter \#1 \$object of method Projects\:\:_cleanObjectDatas\(\) expects object, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/class/api_projects.class.php - - message: "#^Method Tasks\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:addTimeSpent\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:addTimeSpent\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:deleteTimeSpent\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:deleteTimeSpent\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:getRoles\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:getRoles\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Method Tasks\\:\\:putTimeSpent\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tasks\:\:putTimeSpent\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Parameter \\#1 \\$object of method Tasks\\:\\:_cleanObjectDatas\\(\\) expects object, string given\\.$#" + message: '#^Parameter \#1 \$object of method Tasks\:\:_cleanObjectDatas\(\) expects object, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Parameter \\#1 \\$string of function dol_stringtotime expects string, DateTime given\\.$#" + message: '#^Parameter \#1 \$string of function dol_stringtotime expects string, DateTime given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^Property Tasks\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Tasks\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/projet/class/api_tasks.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Project\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Project\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/class/project.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Project\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/class/project.class.php + + - + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote + count: 1 + path: ../../htdocs/projet/class/project.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/projet/class/project.class.php + + - + message: '#^Loose comparison using \!\= between 0 and 0 will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse + count: 1 + path: ../../htdocs/projet/class/project.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/projet/class/project.class.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Property Project\\:\\:\\$ip \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Project\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''ID'', enabled\: 1, visible\: \-1, notnull\: 1, position\: 10\}, fk_project\: array\{type\: ''integer'', label\: ''Parent'', enabled\: 1, visible\: 1, notnull\: 0, position\: 12\}, ref\: array\{type\: ''varchar\(50\)'', label\: ''Ref'', enabled\: 1, visible\: 1, showoncombobox\: 1, position\: 15, searchall\: 1\}, title\: array\{type\: ''varchar\(255\)'', label\: ''ProjectLabel'', enabled\: 1, visible\: 1, notnull\: 1, position\: 17, showoncombobox\: 2, searchall\: 1\}, entity\: array\{type\: ''integer'', label\: ''Entity'', default\: ''1'', enabled\: 1, visible\: 3, notnull\: 1, position\: 19\}, fk_soc\: array\{type\: ''integer'', label\: ''Thirdparty'', enabled\: 1, visible\: 0, position\: 20\}, dateo\: array\{type\: ''date'', label\: ''DateStart'', enabled\: 1, visible\: \-1, position\: 30\}, datee\: array\{type\: ''date'', label\: ''DateEnd'', enabled\: 1, visible\: 1, position\: 35\}, \.\.\.\}\.$#' + identifier: property.defaultValue count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Property Project\\:\\:\\$price_booth \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Project\:\:\$ip \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Property Project\\:\\:\\$price_registration \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Project\:\:\$price_booth \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Property Project\\:\\:\\$public \\(int\\<0, 1\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Project\:\:\$price_registration \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Property Project\:\:\$public \(int\<0, 1\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/class/project.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/projet/class/project.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/projet/class/projectstats.class.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/class/task.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Task\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/class/task.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Task\) and ''duration_effective'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/class/task.class.php + + - + message: '#^Left side of \|\| is always false\.$#' + identifier: booleanOr.leftAlwaysFalse + count: 1 + path: ../../htdocs/projet/class/task.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property CommonObject\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$budget_amount \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$budget_amount \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$duration_effective \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$duration_effective \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$fk_task_parent \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$fk_task_parent \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$label \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$planned_workload \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$planned_workload \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$progress \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$progress \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Property Task\\:\\:\\$timespent_note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Task\:\:\$timespent_note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/projet/class/task.class.php - - message: "#^Variable \\$mode might not be defined\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/comment.php - - message: "#^Variable \\$formconfirmtoaddtasks might not be defined\\.$#" + message: '#^Variable \$mode might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/comment.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/contact.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Variable \$formconfirmtoaddtasks might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/contact.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/document.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/element.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" - count: 2 - path: ../../htdocs/projet/element.php - - - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" - count: 2 - path: ../../htdocs/projet/element.php - - - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" - count: 2 - path: ../../htdocs/projet/element.php - - - - message: "#^Variable \\$margin in isset\\(\\) always exists and is not nullable\\.$#" - count: 2 - path: ../../htdocs/projet/element.php - - - - message: "#^Variable \\$total_time in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/projet/element.php - - message: "#^Variable \\$dateformat might not be defined\\.$#" + message: '#^PHPDoc tag @var has invalid value \(\$loanSchedule LoanSchedule\)\: Unexpected token "\$loanSchedule", expected type at offset 20 on line 2$#' + identifier: phpDoc.parseError + count: 1 + path: ../../htdocs/projet/element.php + + - + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/projet/element.php + + - + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/projet/element.php + + - + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/projet/element.php + + - + message: '#^Variable \$margin in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable + count: 2 + path: ../../htdocs/projet/element.php + + - + message: '#^Variable \$total_time in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable + count: 1 + path: ../../htdocs/projet/element.php + + - + message: '#^Variable \$dateformat might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/ganttchart.inc.php - - message: "#^Variable \\$dateformatinput might not be defined\\.$#" + message: '#^Variable \$dateformatinput might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/ganttchart.inc.php - - message: "#^Variable \\$datehourformat might not be defined\\.$#" + message: '#^Variable \$datehourformat might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/ganttchart.inc.php - - message: "#^Variable \\$task_dependencies might not be defined\\.$#" + message: '#^Variable \$task_dependencies might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/ganttchart.inc.php - - message: "#^Variable \\$tasks might not be defined\\.$#" + message: '#^Variable \$tasks might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/projet/ganttchart.inc.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/ganttview.php - - message: "#^Variable \\$userWrite might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/ganttview.php - - message: "#^Variable \\$colorseries might not be defined\\.$#" + message: '#^Variable \$userWrite might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/ganttview.php + + - + message: '#^Variable \$colorseries might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/graph_opportunities.inc.php - - message: "#^Variable \\$mine might not be defined\\.$#" + message: '#^Variable \$mine might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/graph_opportunities.inc.php - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/projet/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/projet/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/projet/index.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/projet/index.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/index.php - - message: "#^Variable \\$badgeStatus2 might not be defined\\.$#" + message: '#^Variable \$badgeStatus2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/index.php - - message: "#^If condition is always false\\.$#" - count: 2 - path: ../../htdocs/projet/list.php - - - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/projet/list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/projet/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/projet/list.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/projet/list.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/projet/list.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 3 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$groupbyfield might not be defined\\.$#" + message: '#^Variable \$groupbyfield might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$groupbyold might not be defined\\.$#" + message: '#^Variable \$groupbyold might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$groupbyvalue might not be defined\\.$#" + message: '#^Variable \$groupbyvalue might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$permissiontoadd might not be defined\\.$#" + message: '#^Variable \$permissiontoadd might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$permissiontoread might not be defined\\.$#" + message: '#^Variable \$permissiontoread might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$search_omitChildren might not be defined\\.$#" + message: '#^Variable \$search_omitChildren might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/list.php - - message: "#^Variable \\$px2 might not be defined\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/messaging.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/note.php + + - + message: '#^Variable \$px2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/stats/index.php - - message: "#^Variable \\$px3 might not be defined\\.$#" + message: '#^Variable \$px3 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/stats/index.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/projet/tasks.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Parameter \#1 \$inc of function projectLinesa expects string, int given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/tasks.php + + - + message: '#^Parameter \#13 \$arrayfields of function projectLinesa expects array\, array\\> given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/projet/tasks.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/projet/tasks.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/projet/tasks.php - - message: "#^Variable \\$massactionbutton might not be defined\\.$#" + message: '#^Variable \$massactionbutton might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/tasks.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 17 path: ../../htdocs/projet/tasks.php - - message: "#^Variable \\$permissiontodelete might not be defined\\.$#" + message: '#^Variable \$permissiontodelete might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/tasks.php - - message: "#^Variable \\$userWrite might not be defined\\.$#" + message: '#^Variable \$userWrite might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/tasks.php - - message: "#^Variable \\$mode might not be defined\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/comment.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$mode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/tasks/comment.php - - message: "#^Property Project\\:\\:\\$budget_amount \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/tasks/comment.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/contact.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with Task and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/contact.php - - message: "#^Property Project\\:\\:\\$budget_amount \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Project\:\:\$budget_amount \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/projet/tasks/contact.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/projet/tasks/contact.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/document.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with Task and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Property Project\:\:\$budget_amount \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/projet/tasks/document.php - - message: "#^If condition is always false\\.$#" - count: 6 - path: ../../htdocs/projet/tasks/list.php + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/projet/tasks/document.php - - message: "#^If condition is always true\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/tasks/document.php + + - + message: '#^Call to function is_object\(\) with Form will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Call to function is_object\(\) with Project will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 5 + path: ../../htdocs/projet/tasks/list.php + + - + message: '#^Loose comparison using \=\= between 0 and 0 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 't\\.duration_effective' on array\\{t\\.planned_workload\\: \\(float\\|int\\), t\\.duration_effective\\: \\(float\\|int\\), t\\.progress\\: \\(float\\|int\\), t\\.budget_amount\\: \\(float\\|int\\), t\\.tobill\\?\\: \\(array\\|float\\|int\\), t\\.billed\\?\\: \\(array\\|float\\|int\\)\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 't\\.planned_workload' on array\\{t\\.planned_workload\\: \\(float\\|int\\), t\\.duration_effective\\: \\(float\\|int\\), t\\.progress\\: \\(float\\|int\\), t\\.budget_amount\\: \\(float\\|int\\), t\\.tobill\\?\\: \\(array\\|float\\|int\\), t\\.billed\\?\\: \\(array\\|float\\|int\\)\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 't\\.progress' on array\\{t\\.planned_workload\\: \\(float\\|int\\), t\\.duration_effective\\: \\(float\\|int\\), t\\.progress\\: \\(float\\|int\\), t\\.budget_amount\\: \\(float\\|int\\), t\\.tobill\\?\\: \\(array\\|float\\|int\\), t\\.billed\\?\\: \\(array\\|float\\|int\\)\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totalbilled' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''t\.duration_effective'' on array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totalbilledfield' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''t\.planned_workload'' on array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totalbudget' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''t\.progress'' on array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totalbudget…' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totalbilled'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totaldurationdeclar…' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totalbilledfield'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totaldurationeffect…' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totalbudget'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totalizable' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''totalbudget…'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totalplannedworkload' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totaldurationdeclar…'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totaltobill' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totaldurationeffect…'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'totaltobillfield' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totalizable'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Offset 'type' on array\\{nbfield\\: int\\<0, max\\>, pos\\: non\\-empty\\-array\\, totalbilled\\: \\(float\\|int\\), totalbilledfield\\: int\\<0, max\\>, totalbudget\\: 0, totalbudget_amountfield\\: int\\<0, max\\>, totalbudgetamount\\: \\(float\\|int\\), totaldurationdeclared\\: \\(float\\|int\\), \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''totalplannedworkload'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Result of && is always false\\.$#" + message: '#^Offset ''totaltobill'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Offset ''totaltobillfield'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset + count: 1 + path: ../../htdocs/projet/tasks/list.php + + - + message: '#^Offset ''type'' on array\{nbfield\: int\<0, max\>, type\: array\{\}, val\: array\{t\.planned_workload\: \(float\|int\), t\.duration_effective\: \(float\|int\), t\.progress\: \(float\|int\), t\.budget_amount\: \(float\|int\), t\.tobill\?\: \(array\|float\|int\), t\.billed\?\: \(array\|float\|int\)\}, totalplannedworkload\: \(float\|int\), totaldurationeffective\: \(float\|int\), totaldurationdeclared\: \(float\|int\), totaltobillfield\: int\<0, max\>, totalbilledfield\: int\<0, max\>, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset + count: 1 + path: ../../htdocs/projet/tasks/list.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/projet/tasks/list.php + + - + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 3 path: ../../htdocs/projet/tasks/list.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/projet/tasks/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/projet/tasks/list.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Variable \\$searchCategoryProjectList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategoryProjectList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/projet/tasks/list.php - - message: "#^Property Project\\:\\:\\$budget_amount \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/note.php - - message: "#^Property Project\\:\\:\\$budget_amount \\(float\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with Task and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/projet/tasks/note.php + + - + message: '#^Property Project\:\:\$budget_amount \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/projet/tasks/note.php + + - + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/task.php - - message: "#^Parameter \\#1 \\$hour of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Property Project\:\:\$budget_amount \(float\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/projet/tasks/task.php + + - + message: '#^Call to function is_array\(\) with array\{\}\|array\{generateinvoice\?\: mixed, generateinter\?\: mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/time.php - - message: "#^Parameter \\#2 \\$minute of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/projet/tasks/time.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" - count: 2 + message: '#^Loose comparison using \=\= between ''splitline'' and ''splitline'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 5 path: ../../htdocs/projet/tasks/time.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" - count: 2 - path: ../../htdocs/projet/tasks/time.php - - - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" - count: 2 - path: ../../htdocs/projet/tasks/time.php - - - - message: "#^Right side of && is always true\\.$#" + message: '#^Parameter \#1 \$hour of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/tasks/time.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Parameter \#2 \$minute of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/projet/tasks/time.php - - message: "#^Variable \\$allprojectforuser might not be defined\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/projet/tasks/time.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/projet/tasks/time.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/projet/tasks/time.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/projet/tasks/time.php - - message: "#^Variable \\$valtoshow might not be defined\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/projet/tasks/time.php + + - + message: '#^Variable \$allprojectforuser might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/projet/tasks/time.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/projet/tasks/time.php + + - + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/projet/tasks/time.php + + - + message: '#^Variable \$valtoshow might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/projet/tasks/time.php + + - + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/projet/tasks/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/projet/tasks/tpl/linkedobjectblock.tpl.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/public/agenda/agendaexport.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/public/agenda/agendaexport.php - - message: "#^Variable \\$conf might not be defined\\.$#" - count: 3 - path: ../../htdocs/public/agenda/agendaexport.php - - - - message: "#^Variable \\$db might not be defined\\.$#" - count: 2 - path: ../../htdocs/public/agenda/agendaexport.php - - - - message: "#^Variable \\$hookmanager might not be defined\\.$#" - count: 3 - path: ../../htdocs/public/agenda/agendaexport.php - - - - message: "#^Variable \\$langs might not be defined\\.$#" - count: 2 - path: ../../htdocs/public/agenda/agendaexport.php - - - - message: "#^Variable \\$user might not be defined\\.$#" - count: 2 - path: ../../htdocs/public/agenda/agendaexport.php - - - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/public/bookcal/bookcalAjax.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 11 path: ../../htdocs/public/bookcal/bookcalAjax.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/public/bookcal/index.php - - message: "#^Variable \\$db might not be defined\\.$#" - count: 16 - path: ../../htdocs/public/bookcal/index.php - - - - message: "#^Variable \\$langs might not be defined\\.$#" - count: 20 - path: ../../htdocs/public/bookcal/index.php - - - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/bookcal/index.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../htdocs/public/clicktodial/cidlookup.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/clicktodial/cidlookup.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/company/new.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: ../../htdocs/public/company/new.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 11 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$ext in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$ext in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 23 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$php_self might not be defined\\.$#" + message: '#^Variable \$php_self might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/company/new.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/public/cron/cron_run_jobs_by_url.php + + - + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/public/cron/cron_run_jobs_by_url.php - - message: "#^Comparison operation \"\\>\\=\" between '0'\\|'1' and 0 is always true\\.$#" + message: '#^Comparison operation "\>\=" between ''0''\|''1'' and 0 is always true\.$#' + identifier: greaterOrEqual.alwaysTrue count: 1 path: ../../htdocs/public/demo/index.php - - message: "#^Offset 'disablemodules' on array\\{default\\: '0', key\\: 'profdemofun2', label\\: 'DemoFundation2', disablemodules\\: 'barcode,cashdesk…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\}\\|array\\{default\\: '0', key\\: 'profdemoprodstock', label\\: 'DemoCompanyProductA…', disablemodules\\: 'adherent,bom…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\}\\|array\\{default\\: '0', key\\: 'profmanufacture', label\\: 'DemoCompanyManufact…', disablemodules\\: 'adherent,contrat…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\}\\|array\\{default\\: '1', key\\: 'profdemoservonly', label\\: 'DemoCompanyServiceO…', disablemodules\\: 'adherent,barcode…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\} in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Offset ''disablemodules'' on array\{default\: ''0'', key\: ''profdemofun2'', label\: ''DemoFundation2'', disablemodules\: ''barcode,cashdesk…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\}\|array\{default\: ''0'', key\: ''profdemoprodstock'', label\: ''DemoCompanyProductA…'', disablemodules\: ''adherent,bom…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\}\|array\{default\: ''0'', key\: ''profmanufacture'', label\: ''DemoCompanyManufact…'', disablemodules\: ''adherent,contrat…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\}\|array\{default\: ''1'', key\: ''profdemoservonly'', label\: ''DemoCompanyServiceO…'', disablemodules\: ''adherent,barcode…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\} in empty\(\) always exists and is not falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/public/demo/index.php - - message: "#^Offset 'lang' on array\\{default\\: '0', key\\: 'profdemoall', label\\: 'ChooseYourDemoProfi…', disablemodules\\: 'adherent,cashdesk…', icon\\: '//public/demo/demo…', lang\\: ''\\}\\|array\\{default\\: '0', key\\: 'profdemofun2', label\\: 'DemoFundation2', disablemodules\\: 'barcode,cashdesk…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\}\\|array\\{default\\: '0', key\\: 'profdemoprodstock', label\\: 'DemoCompanyProductA…', disablemodules\\: 'adherent,bom…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\}\\|array\\{default\\: '0', key\\: 'profmanufacture', label\\: 'DemoCompanyManufact…', disablemodules\\: 'adherent,contrat…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\}\\|array\\{default\\: '1', key\\: 'profdemoservonly', label\\: 'DemoCompanyServiceO…', disablemodules\\: 'adherent,barcode…', icon\\: '//public/demo/demo…', url\\: non\\-falsy\\-string, lang\\: ''\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''lang'' on array\{default\: ''0'', key\: ''profdemoall'', label\: ''ChooseYourDemoProfi…'', disablemodules\: ''adherent,cashdesk…'', icon\: ''//public/demo/demo…'', lang\: ''''\}\|array\{default\: ''0'', key\: ''profdemofun2'', label\: ''DemoFundation2'', disablemodules\: ''barcode,cashdesk…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\}\|array\{default\: ''0'', key\: ''profdemoprodstock'', label\: ''DemoCompanyProductA…'', disablemodules\: ''adherent,bom…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\}\|array\{default\: ''0'', key\: ''profmanufacture'', label\: ''DemoCompanyManufact…'', disablemodules\: ''adherent,contrat…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\}\|array\{default\: ''1'', key\: ''profdemoservonly'', label\: ''DemoCompanyServiceO…'', disablemodules\: ''adherent,barcode…'', icon\: ''//public/demo/demo…'', url\: non\-falsy\-string, lang\: ''''\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/public/demo/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/public/demo/index.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 21 path: ../../htdocs/public/demo/index.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/demo/index.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/demo/index.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/public/demo/index.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/donations/donateurs_code.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/public/donations/donateurs_code.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/donations/donateurs_code.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/public/donations/donateurs_code.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../htdocs/public/emailing/mailing-read.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/public/emailing/mailing-unsubscribe.php - - message: "#^Comparison operation \"\\<\\=\" between 0 and 0 is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/eventorganization/attendee_new.php - - message: "#^If condition is always true\\.$#" + message: '#^Comparison operation "\<\=" between 0 and 0 is always true\.$#' + identifier: smallerOrEqual.alwaysTrue count: 1 path: ../../htdocs/public/eventorganization/attendee_new.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/eventorganization/attendee_new.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/public/eventorganization/attendee_new.php - - message: "#^Variable \\$genericcompanyname in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$genericcompanyname in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/eventorganization/attendee_new.php - - message: "#^Variable \\$tmpcode might not be defined\\.$#" + message: '#^Variable \$tmpcode might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/eventorganization/attendee_new.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/eventorganization/subscriptionok.php - - message: "#^Variable \\$suffix might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/eventorganization/subscriptionok.php + + - + message: '#^Variable \$suffix might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/eventorganization/subscriptionok.php - - message: "#^If condition is always false\\.$#" - count: 3 - path: ../../htdocs/public/fichinter/agendaexport.php - - - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/fichinter/agendaexport.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 2 path: ../../htdocs/public/fichinter/agendaexport.php - - message: "#^Variable \\$title in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/public/fichinter/agendaexport.php + + - + message: '#^Loose comparison using \!\= between '''' and '''' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse + count: 1 + path: ../../htdocs/public/fichinter/agendaexport.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 2 path: ../../htdocs/public/fichinter/agendaexport.php - - message: "#^If condition is always true\\.$#" + message: '#^Variable \$title in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/public/fichinter/agendaexport.php + + - + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/members/new.php - - message: "#^Variable \\$php_self might not be defined\\.$#" + message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' + identifier: argument.invalidPregQuote count: 1 path: ../../htdocs/public/members/new.php - - message: "#^Property Adherent\\:\\:\\$photo \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/members/new.php + + - + message: '#^Variable \$php_self might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/members/new.php + + - + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/members/public_card.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Property Adherent\:\:\$photo \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/public/members/public_card.php + + - + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/public/members/public_card.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 17 path: ../../htdocs/public/members/public_card.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/public/members/public_list.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/members/public_list.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/public/members/public_list.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/public/members/public_list.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/notice.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/notice.php - - message: "#^Left side of && is always true\\.$#" - count: 2 - path: ../../htdocs/public/onlinesign/newonlinesign.php - - - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/onlinesign/newonlinesign.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with CompanyBankAccount\|Contrat\|Expedition\|Fichinter\|Propal and ''call_trigger'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/onlinesign/newonlinesign.php - - message: "#^Result of && is always false\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 2 + path: ../../htdocs/public/onlinesign/newonlinesign.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/public/onlinesign/newonlinesign.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/public/onlinesign/newonlinesign.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 1 + path: ../../htdocs/public/onlinesign/newonlinesign.php + + - + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/onlinesign/newonlinesign.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/onlinesign/newonlinesign.php - - message: "#^Variable \\$source in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$source in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/public/onlinesign/newonlinesign.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/public/opensurvey/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/public/opensurvey/index.php - - message: "#^Variable \\$modifier might not be defined\\.$#" + message: '#^Variable \$modifier might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/opensurvey/studs.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/partnership/new.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/partnership/new.php + + - + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/partnership/new.php - - message: "#^Parameter \\#1 \\$paymentAmount of function print_paypal_redirect expects float, string given\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$PAYPAL_API_KO might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/public/payment/newpayment.php + + - + message: '#^Parameter \#1 \$paymentAmount of function print_paypal_redirect expects float, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/public/payment/newpayment.php + + - + message: '#^Variable \$PAYPAL_API_KO might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$PAYPAL_API_OK might not be defined\\.$#" + message: '#^Variable \$PAYPAL_API_OK might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$PAYPAL_API_PASSWORD might not be defined\\.$#" + message: '#^Variable \$PAYPAL_API_PASSWORD might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$PAYPAL_API_SANDBOX might not be defined\\.$#" + message: '#^Variable \$PAYPAL_API_SANDBOX might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$PAYPAL_API_SIGNATURE might not be defined\\.$#" + message: '#^Variable \$PAYPAL_API_SIGNATURE might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$PAYPAL_API_USER might not be defined\\.$#" + message: '#^Variable \$PAYPAL_API_USER might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$attendee might not be defined\\.$#" + message: '#^Variable \$attendee might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$charge might not be defined\\.$#" + message: '#^Variable \$charge might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$customer might not be defined\\.$#" + message: '#^Variable \$customer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$invoice might not be defined\\.$#" + message: '#^Variable \$invoice might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$sessionstripe might not be defined\\.$#" + message: '#^Variable \$sessionstripe might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/newpayment.php - - message: "#^Variable \\$FinalPaymentAmt might not be defined\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/payment/paymentko.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Call to function is_object\(\) with stdClass will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/payment/paymentko.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to function is_scalar\(\) with \(int\|string\) will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/public/payment/paymentko.php + + - + message: '#^PHPDoc tag @var with type CommonObject is not subtype of native type stdClass\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/public/payment/paymentko.php + + - + message: '#^Variable \$FinalPaymentAmt might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/payment/paymentko.php + + - + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/payment/paymentko.php + + - + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/public/payment/paymentok.php + + - + message: '#^Call to function is_scalar\(\) with \(int\|string\) will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/public/payment/paymentok.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 3 path: ../../htdocs/public/payment/paymentok.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/public/payment/paymentok.php - - message: "#^Variable \\$autocreatethirdparty might not be defined\\.$#" + message: '#^Variable \$autocreatethirdparty might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/paymentok.php - - message: "#^Variable \\$crowid might not be defined\\.$#" + message: '#^Variable \$crowid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/paymentok.php - - message: "#^Variable \\$paymentTypeId might not be defined\\.$#" + message: '#^Variable \$paymentTypeId might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/payment/paymentok.php - - message: "#^Variable \\$service might not be defined\\.$#" + message: '#^Variable \$service might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/public/payment/paymentok.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 39 path: ../../htdocs/public/payment/paymentok.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/project/index.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/project/index.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/public/project/index.php - - message: "#^Variable \\$conference might not be defined\\.$#" + message: '#^Variable \$conference might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/project/index.php - - message: "#^Variable \\$suffix might not be defined\\.$#" + message: '#^Variable \$suffix might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/project/index.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/project/index.php - - message: "#^Variable \\$urllogo in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$urllogo in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/project/index.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/project/index.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/project/new.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/project/new.php + + - + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/project/new.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^Right side of \\|\\| is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/public/project/suggestbooth.php + + - + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse count: 2 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^Variable \\$contact might not be defined\\.$#" + message: '#^Variable \$contact might not be defined\.$#' + identifier: variable.undefined count: 10 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^Variable \\$emailcompany might not be defined\\.$#" + message: '#^Variable \$emailcompany might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^Variable \\$tmpcode might not be defined\\.$#" + message: '#^Variable \$tmpcode might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/public/project/suggestbooth.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/project/suggestconference.php - - message: "#^Right side of \\|\\| is always false\\.$#" - count: 2 - path: ../../htdocs/public/project/suggestconference.php - - - - message: "#^Variable \\$contact might not be defined\\.$#" - count: 3 - path: ../../htdocs/public/project/suggestconference.php - - - - message: "#^Variable \\$emailcompany might not be defined\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/public/project/suggestconference.php - - message: "#^Variable \\$errors might not be defined\\.$#" + message: '#^Right side of \|\| is always false\.$#' + identifier: booleanOr.rightAlwaysFalse + count: 2 + path: ../../htdocs/public/project/suggestconference.php + + - + message: '#^Variable \$contact might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/project/suggestconference.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$emailcompany might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/project/suggestconference.php + + - + message: '#^Variable \$errors might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: ../../htdocs/public/project/suggestconference.php + + - + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/project/suggestconference.php - - message: "#^Variable \\$tmpcode might not be defined\\.$#" + message: '#^Variable \$tmpcode might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/project/suggestconference.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/public/project/suggestconference.php - - message: "#^Variable \\$suffix might not be defined\\.$#" - count: 2 - path: ../../htdocs/public/project/viewandvote.php - - - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/project/viewandvote.php - - message: "#^Variable \\$votestatus might not be defined\\.$#" + message: '#^Variable \$suffix might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/public/project/viewandvote.php + + - + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/project/viewandvote.php + + - + message: '#^Variable \$votestatus might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/project/viewandvote.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/public/recruitment/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/public/recruitment/index.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/recruitment/index.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$SECUREKEY might not be defined\\.$#" + message: '#^Variable \$SECUREKEY might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$backtopage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$backtopage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$entity might not be defined\\.$#" + message: '#^Variable \$entity might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$suffix might not be defined\\.$#" + message: '#^Variable \$suffix might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/recruitment/view.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/recruitment/view.php - - message: "#^Dead catch \\- Exception is never thrown in the try block\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/stripe/ipn.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 2 - path: ../../htdocs/public/stripe/ipn.php - - - - message: "#^Variable \\$directdebitorcreditransfer_id might not be defined\\.$#" - count: 2 - path: ../../htdocs/public/stripe/ipn.php - - - - message: "#^Variable \\$error in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Dead catch \- Exception is never thrown in the try block\.$#' + identifier: catch.neverThrown count: 1 path: ../../htdocs/public/stripe/ipn.php - - message: "#^Variable \\$mc might not be defined\\.$#" - count: 1 - path: ../../htdocs/public/stripe/ipn.php - - - - message: "#^Variable \\$pdid might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/public/stripe/ipn.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Variable \$directdebitorcreditransfer_id might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/public/stripe/ipn.php + + - + message: '#^Variable \$error in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/public/stripe/ipn.php + + - + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/stripe/ipn.php + + - + message: '#^Variable \$pdid might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/public/stripe/ipn.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$actioncode might not be defined\\.$#" + message: '#^Variable \$actioncode might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$filter might not be defined\\.$#" + message: '#^Variable \$filter might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$filtert might not be defined\\.$#" + message: '#^Variable \$filtert might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 24 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$optioncss might not be defined\\.$#" + message: '#^Variable \$optioncss might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$param might not be defined\\.$#" + message: '#^Variable \$param might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$status might not be defined\\.$#" + message: '#^Variable \$status might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$usedolheader in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$usedolheader in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$usergroup might not be defined\\.$#" + message: '#^Variable \$usergroup might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_arrays.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/test/test_badges.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_badges.php - - message: "#^Parameter \\#7 \\$params of function dolGetButtonAction expects array\\{confirm\\?\\: array\\{url\\?\\: string, title\\?\\: string, content\\?\\: string, action\\-btn\\-label\\?\\: string, cancel\\-btn\\-label\\?\\: string, modal\\?\\: bool\\}, attr\\?\\: array\\, areDropdownButtons\\?\\: bool, backtopage\\?\\: string, lang\\?\\: string, enabled\\?\\: bool, perm\\?\\: int\\<0, 1\\>, label\\?\\: string, \\.\\.\\.\\}, array\\{confirm\\: true\\} given\\.$#" + message: '#^Parameter \#7 \$params of function dolGetButtonAction expects array\{confirm\?\: array\{url\?\: string, title\?\: string, content\?\: string, action\-btn\-label\?\: string, cancel\-btn\-label\?\: string, modal\?\: bool\}, attr\?\: array\, areDropdownButtons\?\: bool, backtopage\?\: string, lang\?\: string, enabled\?\: bool, perm\?\: int\<0, 1\>, label\?\: string, \.\.\.\}, array\{confirm\: true\} given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/public/test/test_buttons.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_buttons.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_csrf.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_exec.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/test/test_forms.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_forms.php - - message: "#^Variable \\$dolibarr_main_prod might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/test/test_sessionlock.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 2 - path: ../../htdocs/public/ticket/create_ticket.php - - - - message: "#^Parameter \\#1 \\$filenb of function dol_remove_file_process expects int, array\\|string given\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/ticket/create_ticket.php - - message: "#^Variable \\$cid might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 2 + path: ../../htdocs/public/ticket/create_ticket.php + + - + message: '#^Parameter \#1 \$filenb of function dol_remove_file_process expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/public/ticket/create_ticket.php - - message: "#^Variable \\$old_MAIN_MAIL_AUTOCOPY_TO might not be defined\\.$#" + message: '#^Variable \$cid might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/ticket/create_ticket.php + + - + message: '#^Variable \$old_MAIN_MAIL_AUTOCOPY_TO might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/ticket/create_ticket.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/ticket/create_ticket.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/ticket/index.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/ticket/index.php + + - + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/public/ticket/list.php - - message: "#^Variable \\$i might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/public/ticket/list.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Variable \$i might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/ticket/list.php + + - + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/public/ticket/view.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/public/ticket/view.php - - message: "#^Variable \\$display_ticket might not be defined\\.$#" + message: '#^Variable \$display_ticket might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/ticket/view.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/ticket/view.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/public/users/view.php - - message: "#^Variable \\$backtopage in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$backtopage in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/users/view.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/public/users/view.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 3 path: ../../htdocs/public/webportal/tpl/footer.tpl.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 6 path: ../../htdocs/public/webportal/tpl/footer.tpl.php - - message: "#^Variable \\$context might not be defined\\.$#" + message: '#^Variable \$context might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/webportal/tpl/hero-header-banner.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/webportal/tpl/login.tpl.php - - message: "#^Comparison operation \"\\>\" between \\-1 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between \-1 and 0 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/public/webportal/tpl/menu.tpl.php - - message: "#^Result of && is always false\\.$#" + message: '#^Parameter \#1 \$array of function uasort contains unresolvable type\.$#' + identifier: argument.unresolvableType count: 2 path: ../../htdocs/public/webportal/tpl/menu.tpl.php - - message: "#^Variable \\$maxTopMenu in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Parameter \#2 \$callback of function uasort contains unresolvable type\.$#' + identifier: argument.unresolvableType + count: 2 + path: ../../htdocs/public/webportal/tpl/menu.tpl.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 + path: ../../htdocs/public/webportal/tpl/menu.tpl.php + + - + message: '#^Variable \$maxTopMenu in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/public/webportal/tpl/menu.tpl.php - - message: "#^Variable \\$conf might not be defined\\.$#" - count: 4 - path: ../../htdocs/public/webportal/webportal.main.inc.php - - - - message: "#^Variable \\$db might not be defined\\.$#" - count: 4 - path: ../../htdocs/public/webportal/webportal.main.inc.php - - - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Path in include\(\) "\.\./\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#' + identifier: include.fileNotFound count: 1 path: ../../htdocs/public/webportal/webportal.main.inc.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined + count: 4 + path: ../../htdocs/public/webportal/webportal.main.inc.php + + - + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined + count: 4 + path: ../../htdocs/public/webportal/webportal.main.inc.php + + - + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/public/webportal/webportal.main.inc.php + + - + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 16 path: ../../htdocs/public/webportal/webportal.main.inc.php - - message: "#^Variable \\$logged_partnership might not be defined\\.$#" + message: '#^Variable \$logged_partnership might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/public/webportal/webportal.main.inc.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/public/website/index.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/website/index.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/public/website/index.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/public/website/index.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/public/website/javascript.js.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/public/website/javascript.js.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/website/javascript.js.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/public/website/javascript.js.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/public/website/styles.css.php - - message: "#^Variable \\$conf might not be defined\\.$#" + 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\\.$#" + 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\\.$#" + 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\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/reception/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/reception/card.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/reception/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$editColspan might not be defined\\.$#" + message: '#^Variable \$editColspan might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$extrafields in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$extrafields in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$line might not be defined\\.$#" + message: '#^Variable \$line might not be defined\.$#' + identifier: variable.undefined count: 40 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 6 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$originid might not be defined\\.$#" + message: '#^Variable \$originid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$outputlangs might not be defined\\.$#" + message: '#^Variable \$outputlangs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$reception might not be defined\\.$#" + message: '#^Variable \$reception might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$rowEnd might not be defined\\.$#" + message: '#^Variable \$rowEnd might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$rowExtrafieldsView might not be defined\\.$#" + message: '#^Variable \$rowExtrafieldsView might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/card.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/reception/card.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 4 - path: ../../htdocs/reception/class/reception.class.php - - - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Reception\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property CommonObject\\:\\:\\$note_private \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Reception\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/reception/class/reception.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Reception\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/reception/class/reception.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 4 + path: ../../htdocs/reception/class/reception.class.php + + - + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/reception/class/reception.class.php + + - + message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property CommonObject\\:\\:\\$note_public \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property CommonObject\\:\\:\\$shipping_method_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$shipping_method_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$ref_supplier \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$ref_supplier \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$size_units \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$size_units \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$socid \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$socid \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$tracking_number \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$tracking_number \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$trueDepth \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$trueDepth \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$trueHeight \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$trueHeight \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$trueWeight \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$trueWeight \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Property Reception\\:\\:\\$trueWidth \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Reception\:\:\$trueWidth \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/reception/class/reception.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$batch \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$batch \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$comment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$comment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$cost_price \\(float\\|int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$cost_price \(float\|int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$datec \\(int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$datec \(int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$element_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$element_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$fk_element \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$fk_element \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$fk_elementdet \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$fk_elementdet \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$fk_entrepot \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$fk_entrepot \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$fk_product \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$fk_product \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$fk_user \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$fk_user \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$qty \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$qty \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^Property ReceptionLineBatch\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ReceptionLineBatch\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/reception/class/receptionlinebatch.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/reception/contact.php - - message: "#^Variable \\$mesgs might not be defined\\.$#" + message: '#^Variable \$mesgs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/contact.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/reception/contact.php - - message: "#^Variable \\$origin might not be defined\\.$#" + message: '#^Variable \$origin might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/reception/contact.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/reception/contact.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/reception/dispatch.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/reception/dispatch.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/reception/dispatch.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 4 path: ../../htdocs/reception/dispatch.php - - message: "#^Variable \\$modebatch might not be defined\\.$#" + message: '#^Variable \$modebatch might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/reception/dispatch.php - - message: "#^Variable \\$nbproduct might not be defined\\.$#" + message: '#^Variable \$nbproduct might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/dispatch.php - - message: "#^Variable \\$objectsrc might not be defined\\.$#" + message: '#^Variable \$objectsrc might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../htdocs/reception/dispatch.php - - message: "#^Variable \\$origin might not be defined\\.$#" + message: '#^Variable \$origin might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/dispatch.php - - message: "#^Variable \\$saveprice might not be defined\\.$#" + message: '#^Variable \$saveprice might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/dispatch.php - - message: "#^Variable \\$typeobject might not be defined\\.$#" + message: '#^Variable \$typeobject might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/reception/dispatch.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/reception/document.php - - message: "#^Variable \\$origin might not be defined\\.$#" + message: '#^Variable \$origin might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/document.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with Reception and ''fetch_lines'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/reception/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/reception/list.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/reception/list.php - - message: "#^Variable \\$show_files might not be defined\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/reception/list.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$show_files might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/list.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/list.php - - message: "#^If condition is always false\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/reception/list.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/reception/note.php - - message: "#^Variable \\$morejs might not be defined\\.$#" + message: '#^Variable \$morejs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/reception/note.php - - message: "#^Variable \\$origin might not be defined\\.$#" + message: '#^Variable \$origin might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/reception/note.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/reception/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/reception/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/admin/public_interface.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/recruitment/admin/setup.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/recruitment/admin/setup.php - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/recruitment/admin/setup.php - - message: "#^Variable \\$res might not be defined\\.$#" + message: '#^Variable \$res might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/admin/setup.php - - message: "#^Variable \\$setupnotempty in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$setupnotempty in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/recruitment/admin/setup.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: ../../htdocs/recruitment/admin/setup_candidatures.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/recruitment/admin/setup_candidatures.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/recruitment/admin/setup_candidatures.php - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/recruitment/admin/setup_candidatures.php - - message: "#^Variable \\$res might not be defined\\.$#" + message: '#^Variable \$res might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/admin/setup_candidatures.php - - message: "#^Variable \\$setupnotempty in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$setupnotempty in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/recruitment/admin/setup_candidatures.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 6 path: ../../htdocs/recruitment/class/api_recruitments.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 2 path: ../../htdocs/recruitment/class/api_recruitments.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(RecruitmentCandidature\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(RecruitmentCandidature\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(RecruitmentCandidature\) and ''email'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php - - message: "#^Property CommonObject\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(RecruitmentCandidature\) and ''fk…'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php - - message: "#^Property RecruitmentCandidature\\:\\:\\$lastname \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(RecruitmentCandidature\) and ''phone'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php - - message: "#^Property RecruitmentCandidature\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with RecruitmentCandidature and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function property_exists\(\) with RecruitmentCandidature and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentCandidature and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentCandidature and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Property CommonObject\:\:\$name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Property RecruitmentCandidature\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, position\: 5, notnull\: 1, default\: ''1'', index\: 1\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 10, notnull\: 1, visible\: 4, noteditable\: 1, default\: ''\(PROV\)'', \.\.\.\}, fk_recruitmentjobposition\: array\{type\: ''integer…'', label\: ''Job'', enabled\: 1, position\: 15, notnull\: 0, visible\: 1, index\: 1, picto\: ''recruitmentjobposit…'', \.\.\.\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 61, notnull\: 0, visible\: 0\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 62, notnull\: 0, visible\: 0\}, fk_user_creat\: array\{type\: ''integer\:User\:user…'', label\: ''UserAuthor'', enabled\: 1, position\: 510, notnull\: \-1, visible\: \-2, foreignkey\: ''user\.rowid'', csslist\: ''tdoverflowmax100''\}, fk_user_modif\: array\{type\: ''integer\:User\:user…'', label\: ''UserModif'', enabled\: 1, position\: 511, notnull\: \-1, visible\: \-2, csslist\: ''tdoverflowmax100''\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Property RecruitmentCandidature\:\:\$lastname \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Property RecruitmentCandidature\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/recruitment/class/recruitmentcandidature.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(RecruitmentJobPosition\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php - - message: "#^Method RecruitmentJobPosition\\:\\:getLinesArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(RecruitmentJobPosition\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(RecruitmentJobPosition\) and ''remuneration…'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentJobPosition and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentJobPosition and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentJobPosition and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentJobPosition and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Call to function property_exists\(\) with RecruitmentJobPosition and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Method RecruitmentJobPosition\:\:getLinesArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php - - message: "#^Property RecruitmentJobPosition\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentJobPosition\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, position\: 5, notnull\: 1, default\: ''1'', index\: 1\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 10, notnull\: 1, visible\: 4, noteditable\: 1, default\: ''\(PROV\)'', \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''JobLabel'', enabled\: 1, position\: 30, notnull\: 1, visible\: 1, searchall\: 1, css\: ''minwidth500'', \.\.\.\}, qty\: array\{type\: ''integer'', label\: ''NbOfEmployeesExpect…'', enabled\: 1, position\: 45, notnull\: 1, visible\: 1, default\: ''1'', isameasure\: 1, \.\.\.\}, fk_project\: array\{type\: ''integer\:Project…'', label\: ''Project'', enabled\: ''\$conf\-\>project\-…'', position\: 52, notnull\: \-1, visible\: \-1, index\: 1, css\: ''maxwidth500'', \.\.\.\}, fk_user_recruiter\: array\{type\: ''integer\:User\:user…'', label\: ''ResponsibleOfRecrui…'', enabled\: 1, position\: 54, notnull\: 1, visible\: 1, foreignkey\: ''user\.rowid'', css\: ''maxwidth500'', \.\.\.\}, email_recruiter\: array\{type\: ''varchar\(255\)'', label\: ''EmailRecruiter'', enabled\: 1, position\: 54, notnull\: 0, visible\: \-1, help\: ''ToUseAGenericEmail'', picto\: ''email''\}, \.\.\.\}\.$#' + identifier: property.defaultValue count: 1 path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php - - message: "#^Variable \\$error in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Property RecruitmentJobPosition\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php - - message: "#^Parameter \\#2 \\$config of class Odf constructor expects string, array\\ given\\.$#" + message: '#^Variable \$error in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/recruitment/class/recruitmentjobposition.class.php + + - + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, RecruitmentJobPosition given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php - - message: "#^Property RecruitmentJobPosition\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_object\(\) expects CommonObject, array\ given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php - - message: "#^If condition is always true\\.$#" + message: '#^Parameter \#1 \$substitutionarray of function complete_substitutions_array expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php + + - + message: '#^Parameter \#2 \$config of class Odf constructor expects string, array\ given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php + + - + message: '#^Parameter \#3 \$object of function complete_substitutions_array expects CommonObject\|null, array\ given\.$#' + identifier: argument.type + count: 2 + path: ../../htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php + + - + message: '#^Property RecruitmentJobPosition\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php - - message: "#^Parameter \\#1 \\$object of method CommonDocGenerator\\:\\:getExtrafieldsInHtml\\(\\) expects CommonObjectLine, RecruitmentJobPosition given\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php - - message: "#^Variable \\$outputlangsbis might not be defined\\.$#" + message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, RecruitmentJobPosition given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php + + - + message: '#^Variable \$outputlangsbis might not be defined\.$#' + identifier: variable.undefined count: 7 path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/recruitment/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/recruitment/index.php - - message: "#^Variable \\$badgeStatus5 might not be defined\\.$#" + message: '#^Variable \$badgeStatus5 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/recruitment/index.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/recruitment/recruitmentcandidature_card.php - - message: "#^Property RecruitmentCandidature\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentCandidature\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_card.php - - message: "#^Property RecruitmentCandidature\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentCandidature\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_card.php - - message: "#^Variable \\$formquestion might not be defined\\.$#" + message: '#^Variable \$formquestion might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_card.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_list.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_list.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_list.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentcandidature_list.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_agenda.php - - message: "#^Property RecruitmentJobPosition\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentJobPosition\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_applications.php - - message: "#^Property RecruitmentJobPosition\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentJobPosition\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_applications.php - - message: "#^Variable \\$lineid might not be defined\\.$#" + message: '#^Variable \$lineid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/recruitment/recruitmentjobposition_applications.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_applications.php - - message: "#^Variable \\$text might not be defined\\.$#" + message: '#^Variable \$text might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_applications.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_card.php - - message: "#^Property RecruitmentJobPosition\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentJobPosition\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_card.php - - message: "#^Property RecruitmentJobPosition\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property RecruitmentJobPosition\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_card.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_card.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_document.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_document.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_list.php - - message: "#^Variable \\$formproject might not be defined\\.$#" + message: '#^Variable \$formproject might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_note.php - - message: "#^Variable \\$maxlength might not be defined\\.$#" + message: '#^Variable \$maxlength might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/recruitment/recruitmentjobposition_note.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/resource/card.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/resource/class/dolresource.class.php - - - - message: "#^Property Dolresource\\:\\:\\$address \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/resource/class/dolresource.class.php - - - - message: "#^Property Dolresource\\:\\:\\$busy \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/resource/class/dolresource.class.php - - - - message: "#^Property Dolresource\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/resource/class/dolresource.class.php - - - - message: "#^Property Dolresource\\:\\:\\$element_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$element_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Contact is not subtype of native type \$this\(Dolresource\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^PHPDoc tag @var with type Societe is not subtype of native type \$this\(Dolresource\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^PHPDoc tag @var with type User is not subtype of native type \$this\(Dolresource\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$email \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$address \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^Property Dolresource\:\:\$busy \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^Property Dolresource\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^Property Dolresource\:\:\$element_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^Property Dolresource\:\:\$element_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/resource/class/dolresource.class.php + + - + message: '#^Property Dolresource\:\:\$email \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$fk_code_type_resource \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$fk_code_type_resource \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$mandatory \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$mandatory \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$resource_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$resource_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$resource_type \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$resource_type \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$town \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$town \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$url \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$url \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Property Dolresource\\:\\:\\$zip \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Dolresource\:\:\$zip \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/resource/class/dolresource.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with float\|int\\|int\<1, max\>\|\(non\-falsy\-string&numeric\-string\) will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/resource/class/html.formresource.class.php - - message: "#^If condition is always false\\.$#" - count: 2 - path: ../../htdocs/resource/element_resource.php + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/resource/class/html.formresource.class.php - - message: "#^Right side of && is always false\\.$#" + message: '#^Call to function is_object\(\) with Fichinter will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/resource/element_resource.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function is_object\(\) with Product will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/resource/element_resource.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/resource/element_resource.php + + - + message: '#^Loose comparison using \=\= between int\<0, max\> and \-1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/resource/element_resource.php + + - + message: '#^Right side of && is always false\.$#' + identifier: booleanAnd.rightAlwaysFalse + count: 1 + path: ../../htdocs/resource/element_resource.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 3 path: ../../htdocs/resource/list.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/salaries/card.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/salaries/card.php - - message: "#^Variable \\$resteapayer might not be defined\\.$#" + message: '#^Variable \$resteapayer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/card.php - - message: "#^Method Salaries\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:_validatepayments\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:_validatepayments\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:_validatepayments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:_validatepayments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:addPayment\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:addPayment\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:getAllPayments\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:getAllPayments\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Method Salaries\\:\\:updatePayment\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Salaries\:\:updatePayment\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Property Salaries\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Salaries\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Property Salaries\\:\\:\\$FIELDSPAYMENT has no type specified\\.$#" + message: '#^Property Salaries\:\:\$FIELDSPAYMENT has no type specified\.$#' + identifier: missingType.property count: 1 path: ../../htdocs/salaries/class/api_salaries.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(PaymentSalary\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Left side of \\|\\| is always false\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(PaymentSalary\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentSalary\) and ''fk_bank'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentSalary\) and ''fk_typepayment'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(PaymentSalary\) and ''fk_user_author'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Loose comparison using \=\= between '''' and ''nolink'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property CommonObject\\:\\:\\$note \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$amount \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$amount \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$fk_bank \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$fk_salary \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$fk_salary \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$fk_typepayment \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$fk_typepayment \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$fk_user_author \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$fk_user_author \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$num_paiement \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$num_paiement \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Property PaymentSalary\\:\\:\\$num_payment \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property PaymentSalary\:\:\$num_payment \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Result of \|\| is always false\.$#' + identifier: booleanOr.alwaysFalse count: 2 path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: "#^Method Salary\\:\\:getSommePaiement\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Strict comparison using \!\=\= between '''' and ''nolink'' will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/salaries/class/paymentsalary.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(Salary\) and ''LibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/salaries/class/salary.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Salary\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/salary.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Salary\) and ''amount'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/salary.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Salary\) and ''type_payment'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/salaries/class/salary.class.php + + - + message: '#^Method Salary\:\:getSommePaiement\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/salaries/class/salary.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/salaries/class/salary.class.php - - message: "#^Property CommonObject\\:\\:\\$alreadypaid \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$alreadypaid \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/salaries/class/salary.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/salaries/class/salary.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/salaries/list.php - - message: "#^Variable \\$aBill might not be defined\\.$#" + message: '#^Variable \$aBill might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/salaries/list.php - - message: "#^Variable \\$numprlv might not be defined\\.$#" + message: '#^Variable \$numprlv might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/list.php - - message: "#^Variable \\$resteapayer might not be defined\\.$#" + message: '#^Variable \$resteapayer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/list.php - - message: "#^Variable \\$selected might not be defined\\.$#" + message: '#^Variable \$selected might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/list.php - - message: "#^Comparison operation \"\\>\" between 1 and 1 is always false\\.$#" + message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: ../../htdocs/salaries/paiement_salary.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/salaries/paiement_salary.php - - message: "#^Variable \\$sumpaid might not be defined\\.$#" + message: '#^Variable \$sumpaid might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/salaries/paiement_salary.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/salaries/payments.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/salaries/payments.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/salaries/payments.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/salaries/payments.php - - message: "#^Variable \\$resql might not be defined\\.$#" + message: '#^Variable \$resql might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/salaries/payments.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \=\= between ''salaire'' and ''bank\-transfer'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/salaries/virement_request.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''salaire'' and ''salaire'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/salaries/virement_request.php - - message: "#^Variable \\$error might not be defined\\.$#" + message: '#^Variable \$error might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/virement_request.php - - message: "#^Variable \\$numOfBp might not be defined\\.$#" + message: '#^Variable \$numOfBp might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/virement_request.php - - message: "#^Variable \\$resteapayer might not be defined\\.$#" + message: '#^Variable \$resteapayer might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/virement_request.php - - message: "#^Variable \\$result might not be defined\\.$#" + message: '#^Variable \$result might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/salaries/virement_request.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/admin/societe.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/admin/societe.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/agenda.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/societe/ajax/ajaxcompanies.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/societe/ajax/company.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/societe/canvas/actions_card_common.class.php + + - + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/company/tpl/card_create.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/company/tpl/card_edit.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/societe/canvas/company/tpl/card_view.tpl.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/societe/canvas/company/tpl/card_view.tpl.php - - message: "#^Variable \\$formfile might not be defined\\.$#" + message: '#^Variable \$formfile might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/company/tpl/card_view.tpl.php - - message: "#^Variable \\$objcanvas might not be defined\\.$#" + message: '#^Variable \$objcanvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/company/tpl/card_view.tpl.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/societe/canvas/company/tpl/card_view.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/individual/tpl/card_create.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/individual/tpl/card_edit.tpl.php - - message: "#^Variable \\$canvas might not be defined\\.$#" + message: '#^Variable \$canvas might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/societe/canvas/individual/tpl/card_view.tpl.php - - message: "#^Variable \\$objcanvas might not be defined\\.$#" + message: '#^Variable \$objcanvas might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/canvas/individual/tpl/card_view.tpl.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/societe/canvas/individual/tpl/card_view.tpl.php - - message: "#^Comparison operation \"\\>\" between 1\\|2 and 0 is always true\\.$#" - count: 1 - path: ../../htdocs/societe/card.php - - - - message: "#^If condition is always true\\.$#" - count: 1 - path: ../../htdocs/societe/card.php - - - - message: "#^Negated boolean expression is always false\\.$#" - count: 1 - path: ../../htdocs/societe/card.php - - - - message: "#^Negated boolean expression is always true\\.$#" - count: 1 - path: ../../htdocs/societe/card.php - - - - message: "#^Property Societe\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/societe/card.php - - - - message: "#^Property Societe\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/societe/card.php - - - - message: "#^Right side of && is always true\\.$#" + message: '#^Call to function is_numeric\(\) with 0\|1\|2\|3\|4\|5\|6\|7\|8\|9 will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/societe/card.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Comparison operation "\>" between 1\|2 and 0 is always true\.$#' + identifier: greater.alwaysTrue + count: 1 + path: ../../htdocs/societe/card.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/societe/card.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: ../../htdocs/societe/card.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/societe/card.php + + - + message: '#^Property Societe\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/societe/card.php + + - + message: '#^Property Societe\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/societe/card.php + + - + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue + count: 2 + path: ../../htdocs/societe/card.php + + - + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 4 path: ../../htdocs/societe/card.php - - message: "#^Variable \\$messagetoshow might not be defined\\.$#" + message: '#^Variable \$messagetoshow might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/checkvat/checkVatPopup.php - - message: "#^Property Contact\\:\\:\\$no_email \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contact\:\:\$no_email \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/societe/class/api_contacts.class.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Loose comparison using \=\= between 4 and 4 will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:createCompanyBankAccount\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:createCompanyNotification\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:createCompanyBankAccount\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:createCompanyNotificationByCode\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:createCompanyNotification\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:createSocieteAccount\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:createCompanyNotificationByCode\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:createSocieteAccount\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:generateBankAccountDocument\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getCategories\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:generateBankAccountDocument\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getCompanyBankAccount\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getCategories\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getCompanyNotification\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getCompanyBankAccount\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getFixedAmountDiscounts\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getCompanyNotification\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getInvoicesQualifiedForCreditNote\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getFixedAmountDiscounts\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getInvoicesQualifiedForReplacement\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getInvoicesQualifiedForCreditNote\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getOutStandingInvoices\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getInvoicesQualifiedForReplacement\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getOutStandingOrder\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getOutStandingInvoices\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getOutStandingProposals\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getOutStandingOrder\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:getSalesRepresentatives\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getOutStandingProposals\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:getSalesRepresentatives\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:patchSocieteAccount\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:patchSocieteAccount\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:putSocieteAccount\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:updateCompanyBankAccount\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:putSocieteAccount\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Method Thirdparties\\:\\:updateCompanyNotification\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Thirdparties\:\:updateCompanyBankAccount\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Property Societe\\:\\:\\$default_lang \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Method Thirdparties\:\:updateCompanyNotification\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Property Societe\\:\\:\\$no_email \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$default_lang \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/societe/class/api_thirdparties.class.php + + - + message: '#^Property Societe\:\:\$no_email \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Property Thirdparties\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Thirdparties\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/class/api_thirdparties.class.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" - count: 1 - path: ../../htdocs/societe/class/api_thirdparties.class.php - - - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/societe/class/companybankaccount.class.php - - message: "#^Property CompanyBankAccount\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CompanyBankAccount\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/societe/class/companybankaccount.class.php - - message: "#^Method Societe\\:\\:getContacts\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Method Societe\\:\\:getSalesRepresentatives\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Societe\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Societe\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(Societe\) and ''code_client'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Method Societe\:\:getContacts\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Method Societe\:\:getSalesRepresentatives\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 6 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Contact\\:\\:\\$roles \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^PHPDoc tag @var with type Contact is not subtype of native type \$this\(Societe\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$bank_account \\(Account\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Societe is not subtype of native type \$this\(Societe\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$client \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type User is not subtype of native type \$this\(Societe\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$email \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Contact\:\:\$roles \(array\\) does not accept non\-empty\-list\\.$#' + identifier: assign.propertyType count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$bank_account \(Account\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Property Societe\:\:\$client \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Property Societe\:\:\$email \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Property Societe\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 3 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$fournisseur \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept non\-empty\-array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\.$#' + identifier: assign.propertyType + count: 3 + path: ../../htdocs/societe/class/societe.class.php + + - + message: '#^Property Societe\:\:\$fournisseur \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$stcomm_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$stcomm_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Property Societe\\:\\:\\$typent_id \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Societe\:\:\$typent_id \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Result of && is always true\\.$#" + message: '#^Result of && is always true\.$#' + identifier: booleanAnd.alwaysTrue count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/societe/class/societe.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property SocieteAccount\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', visible\: \-2, enabled\: 1, position\: 1, notnull\: 1, index\: 1, comment\: ''Id''\}, entity\: array\{type\: ''integer'', label\: ''Entity'', visible\: 0, enabled\: 1, position\: 5, default\: 1\}, login\: array\{type\: ''varchar\(64\)'', label\: ''Login'', visible\: 1, enabled\: 1, notnull\: 1, position\: 10, showoncombobox\: 1, autofocusoncreate\: 1\}, pass_encoding\: array\{type\: ''varchar\(24\)'', label\: ''PassEncoding'', visible\: 0, enabled\: 1, position\: 30\}, pass_crypted\: array\{type\: ''password'', label\: ''Password'', visible\: \-1, enabled\: 1, position\: 31, notnull\: 1\}, pass_temp\: array\{type\: ''varchar\(128\)'', label\: ''Temp'', visible\: 0, enabled\: 0, position\: 32, notnull\: \-1\}, fk_soc\: array\{type\: ''integer\:Societe…'', label\: ''ThirdParty'', visible\: 1, enabled\: 1, position\: 40, notnull\: \-1, index\: 1, picto\: ''company'', \.\.\.\}, site\: array\{type\: ''varchar\(128\)'', label\: ''WebsiteTypeLabel'', visible\: 0, enabled\: 0, position\: 41, notnull\: 1, default\: '''', help\: ''Name of the website…'', \.\.\.\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/societe/class/societeaccount.class.php + + - + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$dateprint might not be defined\\.$#" + message: '#^Variable \$dateprint might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$doc_number might not be defined\\.$#" + message: '#^Variable \$doc_number might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$documentstatic might not be defined\\.$#" + message: '#^Variable \$documentstatic might not be defined\.$#' + identifier: variable.undefined count: 14 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$tables_from might not be defined\\.$#" + message: '#^Variable \$tables_from might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$where might not be defined\\.$#" + message: '#^Variable \$where might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/consumption.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/document.php - - message: "#^Variable \\$newcardbutton might not be defined\\.$#" + message: '#^Variable \$newcardbutton might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/messaging.php - - message: "#^Variable \\$id might not be defined\\.$#" + message: '#^Variable \$id might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/notify/card.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_object\(\) with Stripe will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/societe/paymentmodes.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/societe/paymentmodes.php + + - + message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#" + message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\\|string given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Variable \\$rib might not be defined\\.$#" + message: '#^Variable \$rib might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Variable \\$service might not be defined\\.$#" + message: '#^Variable \$service might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Variable \\$sql might not be defined\\.$#" + message: '#^Variable \$sql might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/societe/paymentmodes.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Loose comparison using \=\= between ''add_customer_price'' and ''add_customer_price'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/societe/price.php + + - + message: '#^Loose comparison using \=\= between ''edit_customer_price'' and ''edit_price'' will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 2 + path: ../../htdocs/societe/price.php + + - + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse + count: 2 + path: ../../htdocs/societe/price.php + + - + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined count: 14 path: ../../htdocs/societe/price.php - - message: "#^Variable \\$extralabels might not be defined\\.$#" + message: '#^Variable \$extralabels might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/price.php - - message: "#^Variable \\$prodcustprice might not be defined\\.$#" + message: '#^Variable \$prodcustprice might not be defined\.$#' + identifier: variable.undefined count: 36 path: ../../htdocs/societe/price.php - - message: "#^Variable \\$sortfield in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortfield in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/price.php - - message: "#^Variable \\$sortorder in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$sortorder in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/price.php - - message: "#^Variable \\$parameters might not be defined\\.$#" + message: '#^Variable \$parameters might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/project.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/societe/website.php - - message: "#^Variable \\$massaction might not be defined\\.$#" + message: '#^Variable \$massaction might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/societe/website.php - - message: "#^Parameter \\#1 \\$params of static method Stripe\\\\Terminal\\\\Location\\:\\:all\\(\\) expects array\\|null, string given\\.$#" + message: '#^Parameter \#1 \$params of static method Stripe\\Terminal\\Location\:\:all\(\) expects array\|null, string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/stripe/admin/stripe.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function is_object\(\) with Facture will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/stripe/ajax/ajax.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/stripe/charge.php - - message: "#^Variable \\$type might not be defined\\.$#" + message: '#^Variable \$type might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/stripe/charge.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \=\= between 7 and 4 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 2 path: ../../htdocs/stripe/class/actions_stripe.class.php - - message: "#^Variable \\$invoice might not be defined\\.$#" + message: '#^Call to function is_object\(\) with CompanyPaymentMode will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/stripe/class/stripe.class.php + + - + message: '#^Variable \$invoice might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/stripe/class/stripe.class.php - - message: "#^Variable \\$setupintent in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$setupintent in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/stripe/class/stripe.class.php - - message: "#^Variable \\$stripeacc in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$stripeacc in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/stripe/class/stripe.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 2 path: ../../htdocs/stripe/lib/stripe.lib.php - - message: "#^Variable \\$moreforfilter in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$moreforfilter in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/stripe/payout.php - - message: "#^Comparison operation \"\\>\" between int\\<1, max\\> and 0 is always true\\.$#" + message: '#^Comparison operation "\>" between int\<1, max\> and 0 is always true\.$#' + identifier: greater.alwaysTrue count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Variable \\$buyingprice might not be defined\\.$#" + message: '#^Variable \$buyingprice might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Variable \\$classname might not be defined\\.$#" + message: '#^Variable \$classname might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Variable \\$error in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$error in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Variable \\$fk_account might not be defined\\.$#" + message: '#^Variable \$fk_account might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Variable \\$fournprice might not be defined\\.$#" + message: '#^Variable \$fournprice might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 4 path: ../../htdocs/supplier_proposal/card.php - - message: "#^Method SupplierProposals\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierProposals\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Method SupplierProposals\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierProposals\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Method SupplierProposals\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierProposals\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Method SupplierProposals\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method SupplierProposals\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Method SupplierProposals\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierProposals\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Method SupplierProposals\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method SupplierProposals\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Property SupplierProposals\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property SupplierProposals\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/supplier_proposal/class/api_supplier_proposals.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(SupplierProposal\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(SupplierProposal\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(SupplierProposal\) and ''delivery_date'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(SupplierProposal\) and ''socid'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(SupplierProposal\) and ''total_ttc'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 6 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Parameter \\#3 \\$remise_percent_ligne of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Parameter \\#5 \\$uselocaltax1_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#5 \$uselocaltax1_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Parameter \\#6 \\$uselocaltax2_rate of function calcul_price_total expects float, string given\\.$#" + message: '#^Parameter \#6 \$uselocaltax2_rate of function calcul_price_total expects float, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Property SupplierProposal\\:\\:\\$statut \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property SupplierProposal\:\:\$statut \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Property SupplierProposalLine\\:\\:\\$info_bits \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property SupplierProposalLine\:\:\$info_bits \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Property SupplierProposalLine\\:\\:\\$pa_ht \\(float\\|int\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property SupplierProposalLine\:\:\$pa_ht \(float\|int\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/supplier_proposal/class/supplier_proposal.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/supplier_proposal/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/supplier_proposal/document.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/index.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/supplier_proposal/info.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/supplier_proposal/info.php - - message: "#^If condition is always false\\.$#" - count: 3 - path: ../../htdocs/supplier_proposal/list.php - - - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" - count: 2 - path: ../../htdocs/supplier_proposal/list.php - - - - message: "#^Variable \\$searchCategoryProductList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/supplier_proposal/list.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/supplier_proposal/list.php + + - + message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse + count: 1 + path: ../../htdocs/supplier_proposal/list.php + + - + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/supplier_proposal/list.php + + - + message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/supplier_proposal/list.php + + - + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/note.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/supplier_proposal/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/admin/bar.php - - message: "#^Variable \\$res might not be defined\\.$#" + message: '#^Variable \$res might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/admin/setup.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: ../../htdocs/takepos/admin/terminal.php - - message: "#^Parameter \\#1 \\$params of static method Stripe\\\\Terminal\\\\Reader\\:\\:all\\(\\) expects array\\|null, string given\\.$#" + message: '#^Parameter \#1 \$params of static method Stripe\\Terminal\\Reader\:\:all\(\) expects array\|null, string given\.$#' + identifier: argument.type count: 2 path: ../../htdocs/takepos/admin/terminal.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 5 path: ../../htdocs/takepos/ajax/ajax.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/css/pos.css.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 4 path: ../../htdocs/takepos/floors.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 3 path: ../../htdocs/takepos/freezone.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/genimg/index.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/genimg/index.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/genimg/qr.php - - message: "#^Elseif condition is always false\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/takepos/index.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between 0 and 1 will always evaluate to false\.$#' + identifier: equal.alwaysFalse count: 1 path: ../../htdocs/takepos/index.php - - message: "#^Variable \\$CUSTOMER_DISPLAY_line1 might not be defined\\.$#" + message: '#^Variable \$CUSTOMER_DISPLAY_line1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$CUSTOMER_DISPLAY_line2 might not be defined\\.$#" + message: '#^Variable \$CUSTOMER_DISPLAY_line2 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$batch might not be defined\\.$#" + message: '#^Variable \$batch might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$body_ticket might not be defined\\.$#" + message: '#^Variable \$body_ticket might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$creditnote might not be defined\\.$#" + message: '#^Variable \$creditnote might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$fk_source might not be defined\\.$#" + message: '#^Variable \$fk_source might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$footer_ticket might not be defined\\.$#" + message: '#^Variable \$footer_ticket might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$footerorder might not be defined\\.$#" + message: '#^Variable \$footerorder might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$header_soc might not be defined\\.$#" + message: '#^Variable \$header_soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$header_ticket might not be defined\\.$#" + message: '#^Variable \$header_ticket might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$headerorder might not be defined\\.$#" + message: '#^Variable \$headerorder might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$idoflineadded might not be defined\\.$#" + message: '#^Variable \$idoflineadded might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$printer might not be defined\\.$#" + message: '#^Variable \$printer might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$sectionwithinvoicelink might not be defined\\.$#" + message: '#^Variable \$sectionwithinvoicelink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$ticket_total might not be defined\\.$#" + message: '#^Variable \$ticket_total might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$tva_npr might not be defined\\.$#" + message: '#^Variable \$tva_npr might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/invoice.php - - message: "#^Variable \\$warehouseid might not be defined\\.$#" + message: '#^Variable \$warehouseid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/invoice.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Call to function is_object\(\) with Facture will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/takepos/pay.php - - message: "#^Variable \\$keyforstripeterminalbank in isset\\(\\) always exists and is not nullable\\.$#" - count: 3 - path: ../../htdocs/takepos/pay.php - - - - message: "#^Variable \\$servicestatus might not be defined\\.$#" - count: 3 - path: ../../htdocs/takepos/pay.php - - - - message: "#^Variable \\$stripeacc might not be defined\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/takepos/pay.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$keyforstripeterminalbank in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable + count: 3 + path: ../../htdocs/takepos/pay.php + + - + message: '#^Variable \$servicestatus might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: ../../htdocs/takepos/pay.php + + - + message: '#^Variable \$stripeacc might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/takepos/pay.php + + - + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/printbox.php - - message: "#^Parameter \\#2 \\$addpercent of function vatrate expects bool, int given\\.$#" + message: '#^Path in require\(\) "//takepos/invoice\.php" is not a file or it does not exist\.$#' + identifier: require.fileNotFound + count: 1 + path: ../../htdocs/takepos/public/auto_order.php + + - + message: '#^Path in require\(\) "//takepos/phone\.php" is not a file or it does not exist\.$#' + identifier: require.fileNotFound + count: 1 + path: ../../htdocs/takepos/public/auto_order.php + + - + message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/takepos/receipt.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/takepos/send.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/takepos/smpcb.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/takepos/split.php - - message: "#^Variable \\$invoice might not be defined\\.$#" + message: '#^Variable \$invoice might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/takepos/split.php - - message: "#^Variable \\$placeid might not be defined\\.$#" + message: '#^Variable \$placeid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/takepos/split.php - - message: "#^Variable \\$fontlist might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/theme/eldy/badges.inc.php + + - + message: '#^Variable \$fontlist might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/eldy/btn.inc.php - - message: "#^Variable \\$nbtopmenuentries might not be defined\\.$#" + message: '#^Variable \$nbtopmenuentries might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/eldy/btn.inc.php - - message: "#^Variable \\$colorbackhmenu1 might not be defined\\.$#" + message: '#^Variable \$colorbackhmenu1 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Variable \\$colorbacklinepair1 might not be defined\\.$#" + message: '#^Variable \$colorbacklinepair1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Variable \\$colortextbackhmenu might not be defined\\.$#" + message: '#^Variable \$colortextbackhmenu might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Variable \\$colortextlink might not be defined\\.$#" + message: '#^Variable \$colortextlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Variable \\$disableimages might not be defined\\.$#" + message: '#^Variable \$disableimages might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Variable \\$left might not be defined\\.$#" + message: '#^Variable \$left might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Variable \\$right might not be defined\\.$#" + message: '#^Variable \$right might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/dropdown.inc.php - - message: "#^Parameter \\#2 \\$steps of function colorAdjustBrightness expects int, string given\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/theme/eldy/global.inc.php - - message: "#^Variable \\$theme might not be defined\\.$#" + message: '#^Parameter \#2 \$steps of function colorAdjustBrightness expects int, string given\.$#' + identifier: argument.type + count: 1 + path: ../../htdocs/theme/eldy/global.inc.php + + - + message: '#^Variable \$theme might not be defined\.$#' + identifier: variable.undefined count: 22 path: ../../htdocs/theme/eldy/global.inc.php - - message: "#^Variable \\$left might not be defined\\.$#" + message: '#^Variable \$left might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/info-box.inc.php - - message: "#^Variable \\$right might not be defined\\.$#" + message: '#^Variable \$right might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/info-box.inc.php - - message: "#^Variable \\$topMenuFontSize might not be defined\\.$#" + message: '#^Variable \$topMenuFontSize might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/main_menu_fa_icons.inc.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/theme/eldy/manifest.json.php - - message: "#^Variable \\$badgeDanger might not be defined\\.$#" + message: '#^Variable \$badgeDanger might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/eldy/progress.inc.php - - message: "#^Variable \\$badgeSuccess might not be defined\\.$#" + message: '#^Variable \$badgeSuccess might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/progress.inc.php - - message: "#^Variable \\$badgeWarning might not be defined\\.$#" + message: '#^Variable \$badgeWarning might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/progress.inc.php - - message: "#^Variable \\$colorblind_deuteranopes_badgeDanger might not be defined\\.$#" + message: '#^Variable \$colorblind_deuteranopes_badgeDanger might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/progress.inc.php - - message: "#^Variable \\$colorblind_deuteranopes_badgeSuccess might not be defined\\.$#" + message: '#^Variable \$colorblind_deuteranopes_badgeSuccess might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/eldy/progress.inc.php - - message: "#^Variable \\$menumanager might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/theme/eldy/style.css.php - - message: "#^Variable \\$badgeDanger might not be defined\\.$#" + message: '#^Variable \$menumanager might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/theme/eldy/style.css.php + + - + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused + count: 1 + path: ../../htdocs/theme/md/badges.inc.php + + - + message: '#^Variable \$badgeDanger might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgeDark might not be defined\\.$#" + message: '#^Variable \$badgeDark might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgeInfo might not be defined\\.$#" + message: '#^Variable \$badgeInfo might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgeLight might not be defined\\.$#" + message: '#^Variable \$badgeLight might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgePrimary might not be defined\\.$#" + message: '#^Variable \$badgePrimary might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgeSecondary might not be defined\\.$#" + message: '#^Variable \$badgeSecondary might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgeSuccess might not be defined\\.$#" + message: '#^Variable \$badgeSuccess might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$badgeWarning might not be defined\\.$#" + message: '#^Variable \$badgeWarning might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$colorblind_deuteranopes_badgeWarning might not be defined\\.$#" + message: '#^Variable \$colorblind_deuteranopes_badgeWarning might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/badges.inc.php - - message: "#^Variable \\$fontlist might not be defined\\.$#" + message: '#^Variable \$fontlist might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/theme/md/btn.inc.php - - message: "#^Variable \\$left might not be defined\\.$#" + message: '#^Variable \$left might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/md/btn.inc.php - - message: "#^Variable \\$nbtopmenuentries might not be defined\\.$#" + message: '#^Variable \$nbtopmenuentries might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/md/btn.inc.php - - message: "#^Variable \\$right might not be defined\\.$#" + message: '#^Variable \$right might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/btn.inc.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/btn.inc.php - - message: "#^Variable \\$colorbackhmenu1 might not be defined\\.$#" + message: '#^Variable \$colorbackhmenu1 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$colorbacklinepair1 might not be defined\\.$#" + message: '#^Variable \$colorbacklinepair1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$colortextbackhmenu might not be defined\\.$#" + message: '#^Variable \$colortextbackhmenu might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$colortextlink might not be defined\\.$#" + message: '#^Variable \$colortextlink might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$disableimages might not be defined\\.$#" + message: '#^Variable \$disableimages might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$left might not be defined\\.$#" + message: '#^Variable \$left might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$right might not be defined\\.$#" + message: '#^Variable \$right might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/theme/md/dropdown.inc.php - - message: "#^Variable \\$path might not be defined\\.$#" + message: '#^Variable \$path might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/flags-sprite.inc.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/theme/md/info-box.inc.php - - message: "#^Variable \\$left might not be defined\\.$#" + message: '#^Variable \$left might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/info-box.inc.php - - message: "#^Variable \\$right might not be defined\\.$#" + message: '#^Variable \$right might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/info-box.inc.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/theme/md/manifest.json.php - - message: "#^Variable \\$path might not be defined\\.$#" + message: '#^Variable \$path might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/theme/md/progress.inc.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 2 - path: ../../htdocs/theme/md/style.css.php - - - - message: "#^Variable \\$menumanager might not be defined\\.$#" + message: '#^Expression "''…" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: ../../htdocs/theme/md/style.css.php - - message: "#^If condition is always false\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 2 + path: ../../htdocs/theme/md/style.css.php + + - + message: '#^Variable \$menumanager might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/theme/md/style.css.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/ticket/agenda.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 1 - path: ../../htdocs/ticket/card.php - - - - message: "#^Variable \\$limit might not be defined\\.$#" - count: 1 - path: ../../htdocs/ticket/card.php - - - - message: "#^Variable \\$mine might not be defined\\.$#" - count: 1 - path: ../../htdocs/ticket/card.php - - - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Loose comparison using \=\= between ''setsubject'' and ''setsubject'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/ticket/card.php - - message: "#^Variable \\$trackid might not be defined\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/ticket/card.php - - message: "#^Variable \\$triggermodname in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$limit might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/card.php - - message: "#^Method Tickets\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Variable \$mine might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/ticket/card.php + + - + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable + count: 2 + path: ../../htdocs/ticket/card.php + + - + message: '#^Variable \$trackid might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/ticket/card.php + + - + message: '#^Variable \$triggermodname in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/ticket/card.php + + - + message: '#^Method Tickets\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:_validateMessage\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:_validateMessage\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:_validateMessage\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:_validateMessage\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:postNewMessage\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:postNewMessage\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method Tickets\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Tickets\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Property Tickets\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Tickets\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Property Tickets\\:\\:\\$FIELDS_MESSAGES type has no value type specified in iterable type array\\.$#" + message: '#^Property Tickets\:\:\$FIELDS_MESSAGES type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Variable \\$user_action might not be defined\\.$#" + message: '#^Variable \$user_action might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/ticket/class/api_tickets.class.php - - message: "#^Method CTicketCategory\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function property_exists\(\) with CTicketCategory and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/ticket/class/cticketcategory.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with CTicketCategory and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/ticket/class/cticketcategory.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function property_exists\(\) with CTicketCategory and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/ticket/class/cticketcategory.class.php + + - + message: '#^Call to function property_exists\(\) with CTicketCategory and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/ticket/class/cticketcategory.class.php + + - + message: '#^Method CTicketCategory\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/ticket/class/cticketcategory.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/ticket/class/cticketcategory.class.php + + - + message: '#^Call to function array_key_exists\(\) with ''paths'' and array\{paths\: mixed, names\: mixed, mimes\: mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property CommonObject\\:\\:\\$model_pdf \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with array\{paths\: mixed, names\: mixed, mimes\: mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property CommonObject\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 4 - path: ../../htdocs/ticket/class/ticket.class.php - - - - message: "#^Property Ticket\\:\\:\\$category_code \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/ticket/class/ticket.class.php - - - - message: "#^Property Ticket\\:\\:\\$date_close \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Ticket\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$date_read \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Ticket\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$fk_contract \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Ticket\) and ''type_code'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property CommonObject\:\:\$model_pdf \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$fk_project \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/ticket/class/ticket.class.php - - - - message: "#^Property Ticket\\:\\:\\$fk_soc \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/ticket/class/ticket.class.php - - - - message: "#^Property Ticket\\:\\:\\$fk_user_assign \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 3 - path: ../../htdocs/ticket/class/ticket.class.php - - - - message: "#^Property Ticket\\:\\:\\$fk_user_create \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$ip \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$category_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$date_close \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$message \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$date_read \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$fk_contract \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$fk_project \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$fk_soc \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$fk_user_assign \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$fk_user_create \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$ip \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/ticket/class/ticket.class.php + + - + message: '#^Property Ticket\:\:\$message \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 5 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$notify_tiers_at_create \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$notify_tiers_at_create \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$origin_references \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$origin_references \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$origin_replyto \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$origin_replyto \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$progress \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$progress \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$severity_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$severity_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$subject \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$subject \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$timing \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$timing \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Property Ticket\\:\\:\\$type_code \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Ticket\:\:\$type_code \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Variable \\$exact in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$exact in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Variable \\$recipient in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$recipient in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^Variable \\$references in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$references in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/ticket/class/ticket.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/ticket/contact.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/ticket/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/document.php - - message: "#^Variable \\$badgeStatus0 might not be defined\\.$#" + message: '#^Variable \$badgeStatus0 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$badgeStatus1 might not be defined\\.$#" + message: '#^Variable \$badgeStatus1 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$badgeStatus3 might not be defined\\.$#" + message: '#^Variable \$badgeStatus3 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$badgeStatus4 might not be defined\\.$#" + message: '#^Variable \$badgeStatus4 might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$badgeStatus6 might not be defined\\.$#" + message: '#^Variable \$badgeStatus6 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$badgeStatus9 might not be defined\\.$#" + message: '#^Variable \$badgeStatus9 might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$colorseries might not be defined\\.$#" + message: '#^Variable \$colorseries might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$shownb might not be defined\\.$#" + message: '#^Variable \$shownb might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Variable \\$showtot might not be defined\\.$#" + message: '#^Variable \$showtot might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/ticket/index.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/ticket/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/ticket/list.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/ticket/messaging.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/ticket/messaging.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/ticket/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$object might not be defined\\.$#" + message: '#^Variable \$object might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/ticket/tpl/linkedobjectblock.tpl.php - - message: "#^Variable \\$content might not be defined\\.$#" + message: '#^Call to function property_exists\(\) with User and ''admin'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/user/bank.php - - message: "#^Variable \\$countrynotdefined might not be defined\\.$#" + message: '#^Variable \$content might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/bank.php - - message: "#^Variable \\$moreparam might not be defined\\.$#" + message: '#^Variable \$countrynotdefined might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/user/bank.php + + - + message: '#^Variable \$moreparam might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/user/bank.php - - message: "#^Variable \\$name might not be defined\\.$#" + message: '#^Variable \$name might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/user/bank.php - - message: "#^Variable \\$size might not be defined\\.$#" + message: '#^Variable \$size might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/bank.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/user/card.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 2 path: ../../htdocs/user/card.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 7 path: ../../htdocs/user/card.php - - message: "#^Variable \\$dolibarr_main_authentication might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_authentication might not be defined\.$#' + identifier: variable.undefined count: 12 path: ../../htdocs/user/card.php - - message: "#^Variable \\$formproduct might not be defined\\.$#" + message: '#^Variable \$formproduct might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/user/card.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/user/card.php - - message: "#^If condition is always true\\.$#" + message: '#^PHPDoc tag @phpstan\-return has invalid value \(Object\[\)\: Unexpected token "\[", expected TOKEN_HORIZONTAL_WS at offset 346 on line 8$#' + identifier: phpDoc.parseError + count: 1 + path: ../../htdocs/user/class/api_users.class.php + + - + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(User\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(User\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 3 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$email \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Contact is not subtype of native type \$this\(User\)\.$#' + identifier: varTag.nativeType count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^PHPDoc tag @var with type Societe is not subtype of native type \$this\(User\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^PHPDoc tag @var with type User is not subtype of native type \$this\(User\)\.$#' + identifier: varTag.nativeType + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' + identifier: argument.unresolvableType + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^Property User\:\:\$email \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/user/class/user.class.php + + - + message: '#^Property User\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$rights \\(stdClass\\) in empty\\(\\) is not falsy\\.$#" + message: '#^Property User\:\:\$rights \(stdClass\) in empty\(\) is not falsy\.$#' + identifier: empty.property count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$rights \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$rights \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$salary \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$salary \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$salaryextra \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$salaryextra \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$statut \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$statut \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$thm \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$thm \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Property User\\:\\:\\$tjm \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property User\:\:\$tjm \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 4 path: ../../htdocs/user/class/user.class.php - - message: "#^Return type of call to function dol_sort_array contains unresolvable type\\.$#" + message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' + identifier: function.unresolvableReturnType count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Variable \\$whereforadd in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$whereforadd in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Variable \\$wherefordel in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$wherefordel in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/user/class/user.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/user/class/userbankaccount.class.php - - message: "#^Property CommonObject\\:\\:\\$lastname \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(UserGroup\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^Property UserGroup\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(UserGroup\) and ''members'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^Property UserGroup\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(UserGroup\) and ''nb_rights'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^Property UserGroup\\:\\:\\$nom \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$lastname \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^Property UserGroup\\:\\:\\$rights \\(stdClass\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property UserGroup\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^Variable \\$whereforadd in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property UserGroup\:\:\$name \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^Variable \\$wherefordel in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Property UserGroup\:\:\$nom \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/user/class/usergroup.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Property UserGroup\:\:\$rights \(stdClass\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/user/class/usergroup.class.php + + - + message: '#^Variable \$whereforadd in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/user/class/usergroup.class.php + + - + message: '#^Variable \$wherefordel in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/user/class/usergroup.class.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/user/document.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/document.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../htdocs/user/group/card.php - - message: "#^Elseif condition is always false\\.$#" + message: '#^Loose comparison using \!\= between '''' and '''' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse count: 1 path: ../../htdocs/user/group/list.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/user/group/list.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/user/group/list.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/group/list.php - - message: "#^Variable \\$val in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$val in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/user/group/list.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/group/perms.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/user/hierarchy.php - - message: "#^Variable \\$mode in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$mode in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/user/hierarchy.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/user/home.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 2 path: ../../htdocs/user/list.php - - message: "#^Offset 'u\\.salary' on array\\{u\\.salary\\: \\(float\\|int\\)\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''u\.salary'' on array\{u\.salary\: \(float\|int\)\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/user/list.php - - message: "#^Offset 'val' on array\\{nbfield\\: int\\<0, max\\>, pos\\?\\: non\\-empty\\-array\\, val\\: array\\{u\\.salary\\: \\(float\\|int\\)\\}\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''val'' on array\{val\: array\{u\.salary\: \(float\|int\)\}, nbfield\: int\<0, max\>, pos\?\: non\-empty\-array\\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/user/list.php - - message: "#^Variable \\$mc might not be defined\\.$#" + message: '#^Variable \$mc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/list.php - - message: "#^Variable \\$searchCategoryUserList in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$searchCategoryUserList in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/user/list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/user/messaging.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/user/note.php - - message: "#^Variable \\$num might not be defined\\.$#" + message: '#^Call to function property_exists\(\) with User and ''admin'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/user/notify/card.php + + - + message: '#^Variable \$num might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../htdocs/user/notify/card.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/user/param_ihm.php - - message: "#^Variable \\$dolibarr_main_authentication might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_authentication might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/user/passwordforgotten.php - - message: "#^Variable \\$menumanager might not be defined\\.$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/user/perms.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/user/perms.php - - message: "#^Variable \\$permsgroupbyentitypluszero in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: ../../htdocs/user/perms.php + + - + message: '#^Variable \$menumanager might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/user/perms.php + + - + message: '#^Variable \$permsgroupbyentitypluszero in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 3 path: ../../htdocs/user/perms.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(ProductAttribute\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/variants/class/ProductAttribute.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(ProductAttribute\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/variants/class/ProductAttribute.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ProductAttribute\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/variants/class/ProductAttribute.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(ProductAttribute\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/variants/class/ProductAttribute.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/variants/class/ProductAttribute.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/variants/class/ProductAttribute.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/variants/class/ProductAttributeValue.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Loose comparison using \!\= between ''ErrorProductAlready…'' and ''ErrorProductAlready…'' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse count: 1 path: ../../htdocs/variants/class/ProductCombination.class.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/variants/class/ProductCombination.class.php - - message: "#^Property ProductCombination\\:\\:\\$variation_price_percentage type has no value type specified in iterable type array\\.$#" + message: '#^Property ProductCombination\:\:\$variation_price_percentage type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/variants/class/ProductCombination.class.php - - message: "#^Property ProductCombinationLevel\\:\\:\\$variation_price \\(float\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ProductCombinationLevel\:\:\$variation_price \(float\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 2 path: ../../htdocs/variants/class/ProductCombination.class.php - - message: "#^Property ProductCombinationLevel\\:\\:\\$variation_price_percentage \\(bool\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property ProductCombinationLevel\:\:\$variation_price_percentage \(bool\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/variants/class/ProductCombination.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/variants/combinations.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/variants/combinations.php - - message: "#^Variable \\$prodattr_all might not be defined\\.$#" + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse count: 1 path: ../../htdocs/variants/combinations.php - - message: "#^If condition is always true\\.$#" + message: '#^Variable \$prodattr_all might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/variants/combinations.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/variants/list.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/variants/list.php - - message: "#^Variable \\$rowid might not be defined\\.$#" + message: '#^Variable \$rowid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/variants/list.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Cannot access property \$lines on mixed\.$#' + identifier: property.nonObject count: 1 path: ../../htdocs/variants/tpl/productattributevalueline_create.tpl.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/variants/tpl/productattributevalueline_create.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/variants/tpl/productattributevalueline_create.tpl.php + + - + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/variants/tpl/productattributevalueline_create.tpl.php - - message: "#^Variable \\$this might not be defined\\.$#" + message: '#^Variable \$this might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/variants/tpl/productattributevalueline_create.tpl.php - - message: "#^Variable \\$action might not be defined\\.$#" + message: '#^Variable \$action might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/variants/tpl/productattributevalueline_title.tpl.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/variants/tpl/productattributevalueline_title.tpl.php - - message: "#^Method Webhook\\:\\:_validate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/viewimage.php + + - + message: '#^Method Webhook\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Method Webhook\\:\\:_validate\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Webhook\:\:_validate\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Method Webhook\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Webhook\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Method Webhook\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Webhook\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Method Webhook\\:\\:listOfTriggers\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Webhook\:\:listOfTriggers\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Method Webhook\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Webhook\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Method Webhook\\:\\:put\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Webhook\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Property Webhook\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Webhook\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/webhook/class/api_webhook.class.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Call to function property_exists\(\) with Target and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webhook/class/target.class.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Call to function property_exists\(\) with Target and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webhook/class/target.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function property_exists\(\) with Target and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webhook/class/target.class.php - - message: "#^Property CommonObject\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Target and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webhook/class/target.class.php - - message: "#^Property Target\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Target and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webhook/class/target.class.php - - message: "#^Variable \\$url in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse + count: 1 + path: ../../htdocs/webhook/class/target.class.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/webhook/class/target.class.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 1 + path: ../../htdocs/webhook/class/target.class.php + + - + message: '#^Property CommonObject\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/webhook/class/target.class.php + + - + message: '#^Property Target\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/webhook/class/target.class.php + + - + message: '#^Variable \$url in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 2 path: ../../htdocs/webhook/class/target.class.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/webhook/target_card.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/webhook/target_card.php - - message: "#^Property CommonObject\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/webhook/target_card.php - - message: "#^Property Target\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Target\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/webhook/target_card.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 6 path: ../../htdocs/webhook/target_card.php - - message: "#^Variable \\$permissiontoadd in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$permissiontoadd in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/webhook/target_card.php - - message: "#^Variable \\$soc might not be defined\\.$#" + message: '#^Variable \$soc might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/webhook/target_card.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: ../../htdocs/webhook/target_list.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../htdocs/webhook/target_list.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/webhook/target_list.php - - message: "#^Variable \\$permissiontodelete in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$permissiontodelete in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/webhook/target_list.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/webportal/admin/setup.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''auto'' and ''auto'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../htdocs/webportal/class/context.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Offset 0 on non\-empty\-list\ in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/webportal/class/html.formcardwebportal.class.php - - message: "#^Variable \\$noback in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/webportal/class/html.formcardwebportal.class.php - - message: "#^Comparison operation \"\\<\\=\" between int\\<2, max\\> and 1 is always false\\.$#" + message: '#^Variable \$noback in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/webportal/class/html.formcardwebportal.class.php + + - + message: '#^Comparison operation "\<\=" between int\<2, max\> and 1 is always false\.$#' + identifier: smallerOrEqual.alwaysFalse count: 1 path: ../../htdocs/webportal/class/html.formlistwebportal.class.php - - message: "#^Offset 'total' on \\*NEVER\\* in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''total'' on \*NEVER\* in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: ../../htdocs/webportal/class/html.formlistwebportal.class.php - - message: "#^Offset 'totalizable' on array\\{nbfield\\: int, pos\\?\\: non\\-empty\\-array\\, totalizable\\: array\\{\\}, val\\?\\: non\\-empty\\-array\\\\} in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Offset ''totalizable'' on array\{nbfield\: int, totalizable\: array\{\}, pos\?\: non\-empty\-array\, val\?\: non\-empty\-array\\} in empty\(\) always exists and is always falsy\.$#' + identifier: empty.offset count: 1 path: ../../htdocs/webportal/class/html.formlistwebportal.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/webportal/class/html.formlistwebportal.class.php - - message: "#^Unable to resolve the template type T in call to function dol_sort_array$#" + message: '#^Unable to resolve the template type T in call to function dol_sort_array$#' + identifier: argument.templateType count: 1 path: ../../htdocs/webportal/class/html.formlistwebportal.class.php - - message: "#^Parameter \\#3 \\$preselectedvalue of method FormWebPortal\\:\\:selectForForms\\(\\) expects int, array\\|string given\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 8 + path: ../../htdocs/webportal/class/html.formwebportal.class.php + + - + message: '#^Parameter \#3 \$preselectedvalue of method FormWebPortal\:\:selectForForms\(\) expects int, array\\|string given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/webportal/class/html.formwebportal.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(WebPortalInvoice\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webportal/class/webportalinvoice.class.php - - message: "#^Ternary operator condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(WebPortalInvoice\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalinvoice.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(WebPortalInvoice\) and ''fk_user_author'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalinvoice.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(WebPortalInvoice\) and ''socid'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalinvoice.class.php + + - + message: '#^Loose comparison using \=\= between ''nolink'' and ''nolink'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue + count: 1 + path: ../../htdocs/webportal/class/webportalinvoice.class.php + + - + message: '#^Call to function is_array\(\) with array\{\}\|array\{mixed\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webportal/class/webportalmember.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property WebPortalMember\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, visible\: 0, notnull\: 1, position\: 10\}, ref\: array\{type\: ''varchar\(30\)'', label\: ''Ref'', default\: ''1'', enabled\: 1, visible\: 5, notnull\: 1, position\: 12, index\: 1, \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', default\: ''1'', enabled\: 1, visible\: \-2, notnull\: 1, position\: 15, index\: 1\}, lastname\: array\{type\: ''varchar\(50\)'', label\: ''Lastname'', enabled\: 1, visible\: 4, position\: 30, showonheader\: 1\}, firstname\: array\{type\: ''varchar\(50\)'', label\: ''Firstname'', enabled\: 1, visible\: 4, position\: 35, showonheader\: 1\}, gender\: array\{type\: ''varchar\(10\)'', label\: ''Gender'', enabled\: 1, visible\: 4, position\: 50, arrayofkeyval\: array\{man\: ''Genderman'', woman\: ''Genderwoman'', other\: ''Genderother''\}, showonheader\: 1\}, company\: array\{type\: ''varchar\(128\)'', label\: ''Societe'', enabled\: 1, visible\: 4, position\: 65, showonheader\: 1\}, address\: array\{type\: ''text'', label\: ''Address'', enabled\: 1, visible\: 4, position\: 75, showonheader\: 1\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/webportal/class/webportalmember.class.php + + - + message: '#^Strict comparison using \=\=\= between ''nolink'' and ''nolink'' will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/webportal/class/webportalmember.class.php + + - + message: '#^Ternary operator condition is always false\.$#' + identifier: ternary.alwaysFalse + count: 1 + path: ../../htdocs/webportal/class/webportalmember.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(WebPortalOrder\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalorder.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(WebPortalOrder\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalorder.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(WebPortalOrder\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalorder.class.php + + - + message: '#^Call to function property_exists\(\) with \$this\(WebPortalOrder\) and ''total_ht'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalorder.class.php + + - + message: '#^Strict comparison using \=\=\= between ''nolink'' and ''nolink'' will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/webportal/class/webportalorder.class.php + + - + message: '#^Loose comparison using \!\= between ''nolink'' and ''nolink'' will always evaluate to false\.$#' + identifier: notEqual.alwaysFalse count: 1 path: ../../htdocs/webportal/class/webportalpartnership.class.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''nolink'' and ''nolink'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 2 path: ../../htdocs/webportal/class/webportalpartnership.class.php - - message: "#^Property Partnership\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Partnership\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/webportal/class/webportalpartnership.class.php - - message: "#^Property Propal\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property WebPortalPartnership\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 10, notnull\: 1, visible\: 5, noteditable\: 1, default\: ''\(PROV\)'', \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, position\: 15, notnull\: 1, visible\: \-2, default\: ''1'', index\: 1\}, fk_type\: array\{type\: ''integer…'', label\: ''Type'', enabled\: 1, position\: 20, notnull\: 1, visible\: 5, csslist\: ''''\}, fk_soc\: array\{type\: ''integer\:Societe…'', label\: ''ThirdParty'', picto\: ''company'', enabled\: 1, position\: 50, notnull\: \-1, visible\: 5, index\: 1, \.\.\.\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 61, notnull\: 0, visible\: 0\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 62, notnull\: 0, visible\: 0\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, position\: 500, notnull\: 1, visible\: \-2\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/webportal/class/webportalpartnership.class.php + + - + message: '#^Call to function method_exists\(\) with \$this\(WebPortalPropal\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/webportal/class/webportalpropal.class.php - - message: "#^Parameter \\#1 \\$authentication of function check_authentication expects array\\{login\\: string, password\\: string, entity\\: int\\|null, dolibarrkey\\: string\\}, array\\{login\\: string, entity\\: int\\} given\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(WebPortalPropal\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webportal/class/webportalpropal.class.php + + - + message: '#^Property Propal\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/webportal/class/webportalpropal.class.php + + - + message: '#^Strict comparison using \=\=\= between ''nolink'' and ''nolink'' will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: ../../htdocs/webportal/class/webportalpropal.class.php + + - + message: '#^Parameter \#1 \$authentication of function check_authentication expects array\{login\: string, password\: string, entity\: int\|null, dolibarrkey\: string\}, array\{login\: string, entity\: int\} given\.$#' + identifier: argument.type count: 1 path: ../../htdocs/webservices/server_category.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/webservices/server_invoice.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/webservices/server_productorservice.php + + - + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/webservices/server_project.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 2 + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 path: ../../htdocs/website/class/website.class.php - - message: "#^Property Website\\:\\:\\$description \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 4 path: ../../htdocs/website/class/website.class.php - - message: "#^Property Website\\:\\:\\$entity \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue + count: 2 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Parameter \#2 \$arrayreplacement of function dolReplaceInFile expects array\, array\ given\.$#' + identifier: argument.type count: 3 path: ../../htdocs/website/class/website.class.php - - message: "#^Property Website\\:\\:\\$fk_default_home \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/website/class/website.class.php - - - - message: "#^Property Website\\:\\:\\$fk_user_creat \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/website/class/website.class.php - - - - message: "#^Property Website\\:\\:\\$fk_user_modif \\(int\\) in isset\\(\\) is not nullable\\.$#" - count: 1 - path: ../../htdocs/website/class/website.class.php - - - - message: "#^Property Website\\:\\:\\$lang \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/website/class/website.class.php - - - - message: "#^Property Website\\:\\:\\$otherlang \\(string\\) in isset\\(\\) is not nullable\\.$#" - count: 2 - path: ../../htdocs/website/class/website.class.php - - - - message: "#^Property Website\\:\\:\\$ref \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Website\:\:\$description \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/website/class/website.class.php - - message: "#^Property Website\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Website\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 3 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$fk_default_home \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$fk_user_creat \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$fk_user_modif \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$lang \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$otherlang \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 2 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 4 path: ../../htdocs/website/class/website.class.php - - message: "#^Property Website\\:\\:\\$virtualhost \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Website\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 4 + path: ../../htdocs/website/class/website.class.php + + - + message: '#^Property Website\:\:\$virtualhost \(string\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/website/class/website.class.php - - message: "#^Variable \\$aliasesarray might not be defined\\.$#" + message: '#^Variable \$aliasesarray might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/website/class/website.class.php - - message: "#^Variable \\$destdir might not be defined\\.$#" + message: '#^Variable \$destdir might not be defined\.$#' + identifier: variable.undefined count: 13 path: ../../htdocs/website/class/website.class.php - - message: "#^Variable \\$destdirrel might not be defined\\.$#" + message: '#^Variable \$destdirrel might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/website/class/website.class.php - - message: "#^Variable \\$maxrowid might not be defined\\.$#" + message: '#^Variable \$maxrowid might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/website/class/website.class.php - - message: "#^Variable \\$newidforhome might not be defined\\.$#" + message: '#^Variable \$newidforhome might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/website/class/website.class.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../htdocs/website/class/websitepage.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Property WebsitePage\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, visible\: \-1, notnull\: 1, index\: 1, position\: 1, comment\: ''Id''\}, pageurl\: array\{type\: ''varchar\(16\)'', label\: ''WEBSITE_PAGENAME'', enabled\: 1, visible\: 1, notnull\: 1, index\: 1, position\: 10, searchall\: 1, \.\.\.\}, aliasalt\: array\{type\: ''varchar\(255\)'', label\: ''AliasAlt'', enabled\: 1, visible\: 1, notnull\: 1, index\: 0, position\: 11, searchall\: 0, \.\.\.\}, type_container\: array\{type\: ''varchar\(16\)'', label\: ''Type'', enabled\: 1, visible\: 1, notnull\: 1, index\: 0, position\: 12, comment\: ''Type of container''\}, title\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, visible\: 1, position\: 30, searchall\: 1, help\: ''UseTextBetween5And7…''\}, description\: array\{type\: ''varchar\(255\)'', label\: ''Description'', enabled\: 1, visible\: 1, position\: 30, searchall\: 1\}, image\: array\{type\: ''varchar\(255\)'', label\: ''Image'', enabled\: 1, visible\: 1, position\: 32, searchall\: 0, help\: ''Relative path of…''\}, keywords\: array\{type\: ''varchar\(255\)'', label\: ''Keywords'', enabled\: 1, visible\: 1, position\: 45, searchall\: 0\}, \.\.\.\}\.$#' + identifier: property.defaultValue count: 1 - path: ../../htdocs/website/index.php + path: ../../htdocs/website/class/websitepage.class.php - - message: "#^If condition is always true\\.$#" - count: 1 - path: ../../htdocs/website/index.php - - - - message: "#^Left side of && is always true\\.$#" - count: 1 - path: ../../htdocs/website/index.php - - - - message: "#^Left side of \\|\\| is always true\\.$#" + message: '#^Call to function is_array\(\) with list\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: ../../htdocs/website/index.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^Left side of \|\| is always true\.$#' + identifier: booleanOr.leftAlwaysTrue count: 2 path: ../../htdocs/website/index.php - - message: "#^Right side of && is always true\\.$#" - count: 1 - path: ../../htdocs/website/index.php - - - - message: "#^Ternary operator condition is always true\\.$#" - count: 1 - path: ../../htdocs/website/index.php - - - - message: "#^Variable \\$atleastonepage might not be defined\\.$#" - count: 1 - path: ../../htdocs/website/index.php - - - - message: "#^Variable \\$cate_arbo might not be defined\\.$#" - count: 1 - path: ../../htdocs/website/index.php - - - - message: "#^Variable \\$containertype might not be defined\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: ../../htdocs/website/index.php - - message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: ../../htdocs/website/index.php - - message: "#^Variable \\$disabled might not be defined\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: ../../htdocs/website/index.php - - message: "#^Variable \\$dolibarr_main_url_root might not be defined\\.$#" + message: '#^Variable \$atleastonepage might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/website/index.php - - message: "#^Variable \\$fileoldalias in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$cate_arbo might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/website/index.php - - message: "#^Variable \\$langcode might not be defined\\.$#" + message: '#^Variable \$containertype might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/website/index.php - - message: "#^Variable \\$otherfilters might not be defined\\.$#" - count: 2 - path: ../../htdocs/website/index.php - - - - message: "#^Variable \\$tmpobject might not be defined\\.$#" + message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/website/index.php - - message: "#^Variable \\$urltograbdirrootwithoutslash might not be defined\\.$#" + message: '#^Variable \$disabled might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^Variable \$fileoldalias in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^Variable \$langcode might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/website/index.php - - message: "#^Variable \\$urltograbdirwithoutslash might not be defined\\.$#" + message: '#^Variable \$otherfilters might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/website/index.php + + - + message: '#^Variable \$tmpobject might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: ../../htdocs/website/index.php + + - + message: '#^Variable \$urltograbdirrootwithoutslash might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: ../../htdocs/website/index.php + + - + message: '#^Variable \$urltograbdirwithoutslash might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/website/index.php - - message: "#^Comparison operation \"\\>\\=\" between 1 and 0 is always true\\.$#" + message: '#^Comparison operation "\>\=" between 1 and 0 is always true\.$#' + identifier: greaterOrEqual.alwaysTrue count: 1 path: ../../htdocs/website/samples/wrapper.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 3 path: ../../htdocs/website/samples/wrapper.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: ../../htdocs/website/samples/wrapper.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Path in require_once\(\) "\./master\.inc\.php" is not a file or it does not exist\.$#' + identifier: requireOnce.fileNotFound count: 1 path: ../../htdocs/website/samples/wrapper.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue + count: 1 + path: ../../htdocs/website/samples/wrapper.php + + - + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/website/samples/wrapper.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../htdocs/website/samples/wrapper.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/website/samples/wrapper.php - - message: "#^Variable \\$socid in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$socid in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/website/websiteaccount_card.php - - message: "#^Variable \\$socid might not be defined\\.$#" + message: '#^Variable \$socid might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/website/websiteaccount_card.php - - message: "#^Method Workstations\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Workstations\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/workstation/class/api_workstations.class.php - - message: "#^If condition is always false\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Workstation\) and ''getLibStatut'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/workstation/class/workstation.class.php - - message: "#^Method Workstation\\:\\:fetchAll\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with \$this\(Workstation\) and ''getNomUrl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/workstation/class/workstation.class.php - - message: "#^Property Workstation\\:\\:\\$ismultientitymanaged \\(int\\<0, 1\\>\\|string\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Workstation\) and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/workstation/class/workstation.class.php - - message: "#^Property Workstation\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with \$this\(Workstation\) and ''thirdparty'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: ../../htdocs/workstation/class/workstation.class.php - - message: "#^Property Workstation\\:\\:\\$status \\(int\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Call to function property_exists\(\) with Workstation and ''date_creation'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Call to function property_exists\(\) with Workstation and ''date_modification'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Call to function property_exists\(\) with Workstation and ''label'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Call to function property_exists\(\) with Workstation and ''ref'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Call to function property_exists\(\) with Workstation and ''status'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Method Workstation\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Property Workstation\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept default value of type array\{rowid\: array\{type\: ''integer'', label\: ''TechnicalID'', enabled\: 1, position\: 1, notnull\: 1, visible\: 0, noteditable\: 1, index\: 1, \.\.\.\}, entity\: array\{type\: ''integer'', label\: ''Entity'', enabled\: 1, visible\: 0, position\: 5, notnull\: 1, default\: ''1'', index\: 1\}, ref\: array\{type\: ''varchar\(128\)'', label\: ''Ref'', enabled\: 1, position\: 10, notnull\: 1, visible\: 1, noteditable\: 0, default\: '''', \.\.\.\}, label\: array\{type\: ''varchar\(255\)'', label\: ''Label'', enabled\: 1, position\: 30, notnull\: 1, visible\: 1, searchall\: 1, css\: ''minwidth300'', \.\.\.\}, type\: array\{type\: ''varchar\(8\)'', label\: ''Type'', enabled\: 1, position\: 32, default\: ''1'', notnull\: 1, visible\: 1, arrayofkeyval\: array\{HUMAN\: ''Human'', MACHINE\: ''Machine'', BOTH\: ''HumanMachine''\}\}, note_public\: array\{type\: ''html'', label\: ''NotePublic'', enabled\: 1, position\: 61, notnull\: 0, visible\: 0\}, note_private\: array\{type\: ''html'', label\: ''NotePrivate'', enabled\: 1, position\: 62, notnull\: 0, visible\: 0\}, date_creation\: array\{type\: ''datetime'', label\: ''DateCreation'', enabled\: 1, position\: 500, notnull\: 1, visible\: \-2, csslist\: ''nowraponall''\}, \.\.\.\}\.$#' + identifier: property.defaultValue + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Property Workstation\:\:\$ismultientitymanaged \(int\<0, 1\>\|string\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Property Workstation\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property + count: 1 + path: ../../htdocs/workstation/class/workstation.class.php + + - + message: '#^Property Workstation\:\:\$status \(int\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: ../../htdocs/workstation/workstation_card.php - - message: "#^Variable \\$extrafields might not be defined\\.$#" + message: '#^Variable \$extrafields might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/workstation/workstation_card.php - - message: "#^Variable \\$formquestion might not be defined\\.$#" + message: '#^Variable \$formquestion might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../htdocs/workstation/workstation_card.php - - message: "#^Variable \\$upload_dir might not be defined\\.$#" + message: '#^Variable \$upload_dir might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/workstation/workstation_document.php - - message: "#^Variable \\$val might not be defined\\.$#" + message: '#^Variable \$val might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/workstation/workstation_list.php - - message: "#^Variable \\$visible might not be defined\\.$#" + message: '#^Variable \$visible might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../htdocs/workstation/workstation_list.php - - message: "#^Variable \\$arrayofparameters in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$arrayofparameters in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../htdocs/zapier/admin/setup.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 3 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Method Zapier\\:\\:delete\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Zapier\:\:delete\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Method Zapier\\:\\:getModulesChoices\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Zapier\:\:getModulesChoices\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Method Zapier\\:\\:index\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Zapier\:\:index\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Method Zapier\\:\\:post\\(\\) has parameter \\$request_data with no value type specified in iterable type array\\.$#" + message: '#^Method Zapier\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Method Zapier\\:\\:post\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Zapier\:\:post\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Property Zapier\\:\\:\\$FIELDS type has no value type specified in iterable type array\\.$#" + message: '#^Property Zapier\:\:\$FIELDS type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: ../../htdocs/zapier/class/api_zapier.class.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/bank/export-bank-receipts.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 27 path: ../../scripts/bank/export-bank-receipts.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/bank/export-bank-receipts.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 9 path: ../../scripts/bank/export-bank-receipts.php - - message: "#^Variable \\$num in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Variable \$num in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable count: 1 path: ../../scripts/bank/export-bank-receipts.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../scripts/company/sync_contacts_dolibarr2ldap.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 5 path: ../../scripts/company/sync_contacts_dolibarr2ldap.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/company/sync_contacts_dolibarr2ldap.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../scripts/company/sync_contacts_dolibarr2ldap.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/company/sync_contacts_dolibarr2ldap.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/contracts/email_expire_services_to_customers.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 8 path: ../../scripts/contracts/email_expire_services_to_customers.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/contracts/email_expire_services_to_customers.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/contracts/email_expire_services_to_customers.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/contracts/email_expire_services_to_representatives.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/contracts/email_expire_services_to_representatives.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../scripts/contracts/email_expire_services_to_representatives.php - - message: "#^Result of \\|\\| is always false\\.$#" + message: '#^Result of \|\| is always false\.$#' + identifier: booleanOr.alwaysFalse count: 1 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$dir in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$dir in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$newlang in empty\\(\\) always exists and is always falsy\\.$#" + message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' + identifier: empty.variable count: 1 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Variable \\$subdir in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$subdir in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../scripts/doc/regenerate_docs.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: ../../scripts/emailings/mailing-send.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/emailings/mailing-send.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/emailings/mailing-send.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/emailings/mailing-send.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../scripts/emailings/mailing-send.php - - message: "#^Variable \\$mesg might not be defined\\.$#" + message: '#^Variable \$mesg might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/emailings/mailing-send.php - - message: "#^Variable \\$statut might not be defined\\.$#" + message: '#^Variable \$statut might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/emailings/mailing-send.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: ../../scripts/emailings/reset-invalid-emails.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 21 path: ../../scripts/emailings/reset-invalid-emails.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/emailings/reset-invalid-emails.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/invoices/email_unpaid_invoices_to_customers.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/invoices/email_unpaid_invoices_to_customers.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/invoices/email_unpaid_invoices_to_customers.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/invoices/email_unpaid_invoices_to_representatives.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 6 path: ../../scripts/invoices/email_unpaid_invoices_to_representatives.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/invoices/email_unpaid_invoices_to_representatives.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/invoices/email_unpaid_invoices_to_representatives.php - - message: "#^Variable \\$conf might not be defined\\.$#" + message: '#^Variable \$conf might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/invoices/rebuild_merge_pdf.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 3 path: ../../scripts/invoices/rebuild_merge_pdf.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/invoices/rebuild_merge_pdf.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/invoices/rebuild_merge_pdf.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/members/sync_members_dolibarr2ldap.php - - message: "#^Unable to resolve the template type T in call to function array_values$#" + message: '#^Unable to resolve the template type T in call to function array_values$#' + identifier: argument.templateType count: 1 path: ../../scripts/members/sync_members_ldap2dolibarr.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/members/sync_members_ldap2dolibarr.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/members/sync_members_types_dolibarr2ldap.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/members/sync_members_types_ldap2dolibarr.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''product'' and ''product'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../scripts/product/migrate_picture_path.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../scripts/product/migrate_picture_path.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/product/migrate_picture_path.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/product/migrate_picture_path.php - - message: "#^Result of \\|\\| is always false\\.$#" + message: '#^Result of \|\| is always false\.$#' + identifier: booleanOr.alwaysFalse count: 1 path: ../../scripts/product/regenerate_thumbs.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/product/regenerate_thumbs.php - - message: "#^Variable \\$dir in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$dir in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../scripts/product/regenerate_thumbs.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/product/regenerate_thumbs.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/product/regenerate_thumbs.php - - message: "#^Variable \\$subdir in empty\\(\\) always exists and is not falsy\\.$#" + message: '#^Variable \$subdir in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable count: 1 path: ../../scripts/product/regenerate_thumbs.php - - message: "#^If condition is always true\\.$#" + message: '#^Loose comparison using \=\= between ''user'' and ''user'' will always evaluate to true\.$#' + identifier: equal.alwaysTrue count: 1 path: ../../scripts/user/migrate_picture_path.php - - message: "#^Variable \\$db might not be defined\\.$#" + message: '#^Variable \$db might not be defined\.$#' + identifier: variable.undefined count: 4 path: ../../scripts/user/migrate_picture_path.php - - message: "#^Variable \\$hookmanager might not be defined\\.$#" + message: '#^Variable \$hookmanager might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/user/migrate_picture_path.php - - message: "#^Variable \\$langs might not be defined\\.$#" + message: '#^Variable \$langs might not be defined\.$#' + identifier: variable.undefined count: 1 path: ../../scripts/user/migrate_picture_path.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/user/sync_groups_dolibarr2ldap.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/user/sync_users_dolibarr2ldap.php - - message: "#^Unable to resolve the template type T in call to function array_values$#" + message: '#^Unable to resolve the template type T in call to function array_values$#' + identifier: argument.templateType count: 1 path: ../../scripts/user/sync_users_ldap2dolibarr.php - - message: "#^Variable \\$user might not be defined\\.$#" + message: '#^Variable \$user might not be defined\.$#' + identifier: variable.undefined count: 2 path: ../../scripts/user/sync_users_ldap2dolibarr.php diff --git a/htdocs/core/actions_setmoduleoptions.inc.php b/htdocs/core/actions_setmoduleoptions.inc.php index a749cf1da98..fd622c1017f 100644 --- a/htdocs/core/actions_setmoduleoptions.inc.php +++ b/htdocs/core/actions_setmoduleoptions.inc.php @@ -1,6 +1,7 @@ +/* Copyright (C) 2014-2017 Laurent Destailleur * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +30,11 @@ // $nomessageinsetmoduleoptions can be set to 1 // $formSetup may be defined /** + * @var Conf $conf + * @var DoliDB $db * @var FormSetup $formSetup + * @var Translate $langs + * @var User $user * @var string $action * @var int $error * @var ?int $nomessageinupdate diff --git a/htdocs/core/actions_setnotes.inc.php b/htdocs/core/actions_setnotes.inc.php index 8a79f3c61f9..8e50a119cfd 100644 --- a/htdocs/core/actions_setnotes.inc.php +++ b/htdocs/core/actions_setnotes.inc.php @@ -27,10 +27,20 @@ // $permissionnote must be defined to permission to edit object // $object must be defined (object is loaded in this file with fetch) // $id must be defined (object is loaded in this file with fetch) - +/** + * @var CommonObject $object + * @var Conf $conf + * @var DoliDB $db + * @var Translate $langs + * @var User $user + * + * @var ?string $action + * @var int $id + * @var int $permissionnote + */ // Set public note if ($action == 'setnote_public' && !empty($permissionnote) && !GETPOST('cancel', 'alpha')) { - if (empty($action) || !is_object($object) || empty($id)) { + if (!is_object($object) || empty($id)) { dol_print_error(null, 'Include of actions_setnotes.inc.php was done but required variable was not set before'); } if (empty($object->id)) { @@ -79,7 +89,7 @@ if ($action == 'setnote_public' && !empty($permissionnote) && !GETPOST('cancel', } elseif ($action == 'setnote_private' && !empty($permissionnote) && !GETPOST('cancel', 'alpha')) { // Set public note if (empty($user->socid)) { // Private notes (always hidden to external users) - if (empty($action) || !is_object($object) || empty($id)) { + if (!is_object($object) || empty($id)) { dol_print_error(null, 'Include of actions_setnotes.inc.php was done but required variable was not set before'); } if (empty($object->id)) { diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index b4dbbde1788..941b1f72e04 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -694,7 +694,7 @@ class FormFile if (is_array($genallowed)) { $modellist = $genallowed; } else { - include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_movement.php'; + include_once DOL_DOCUMENT_ROOT.'/core/modules/movement/modules_movement.php'; $modellist = ModelePDFMovement::liste_modeles($this->db); } } elseif ($modulepart == 'export') { diff --git a/htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php b/htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php index 60ad4222a7f..92792da10e8 100644 --- a/htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php +++ b/htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php @@ -28,7 +28,7 @@ * \brief File of class to build ODT documents for assets */ -require_once DOL_DOCUMENT_ROOT . '/asset/core/modules/asset/modules_asset.php'; +require_once DOL_DOCUMENT_ROOT . '/core/modules/asset/modules_asset.php'; require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; diff --git a/htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php b/htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php index 01c8b70d683..0992224c367 100644 --- a/htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php +++ b/htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php @@ -33,7 +33,7 @@ * \brief File of class to generate document from standard template */ -require_once DOL_DOCUMENT_ROOT . '/asset/core/modules/asset/modules_asset.php'; +require_once DOL_DOCUMENT_ROOT . '/core/modules/asset/modules_asset.php'; require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; diff --git a/htdocs/core/modules/facture/modules_facture.php b/htdocs/core/modules/facture/modules_facture.php index 128b63168ec..b81a17895d4 100644 --- a/htdocs/core/modules/facture/modules_facture.php +++ b/htdocs/core/modules/facture/modules_facture.php @@ -5,6 +5,7 @@ * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2014 Marcos García * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -123,9 +124,9 @@ abstract class ModelePDFFactures extends CommonDocGenerator // Load the autoload file generated by composer if (file_exists(DOL_DOCUMENT_ROOT.'/includes/sprain/swiss-qr-bill/autoload.php')) { - require_once DOL_DOCUMENT_ROOT.'/includes/sprain/swiss-qr-bill/autoload.php'; + require_once DOL_DOCUMENT_ROOT.'/includes/sprain/swiss-qr-bill/autoload.php'; // @phpstan-ignore-line } elseif (file_exists(DOL_DOCUMENT_ROOT.'/includes/autoload.php')) { - require_once DOL_DOCUMENT_ROOT.'/includes/autoload.php'; + require_once DOL_DOCUMENT_ROOT.'/includes/autoload.php'; // @phpstan-ignore-line } else { $this->error = 'PHP library sprain/swiss-qr-bill was not found. Please install it with:
cd '.dirname(DOL_DOCUMENT_ROOT).'; cp composer.json.disabled composer.json; composer require sprain/swiss-qr-bill;'; return false; diff --git a/htdocs/core/modules/member/modules_cards.php b/htdocs/core/modules/member/modules_cards.php index 4c02ecad07e..7b92f780798 100644 --- a/htdocs/core/modules/member/modules_cards.php +++ b/htdocs/core/modules/member/modules_cards.php @@ -4,6 +4,7 @@ * Copyright (C) 2004 Eric Seigne * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php b/htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php index 59e49c4d0a0..fd18aca6973 100644 --- a/htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php +++ b/htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php @@ -25,7 +25,7 @@ * \brief File of class to build PDF documents for stocks movements */ -require_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_movement.php'; +require_once DOL_DOCUMENT_ROOT.'/core/modules/movement/modules_movement.php'; require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php'; require_once DOL_DOCUMENT_ROOT.'/product/stock/class/mouvementstock.class.php'; require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.product.class.php'; diff --git a/htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php b/htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php index 9e11ea2bccd..99b12c9180b 100644 --- a/htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php +++ b/htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php @@ -6,6 +6,7 @@ * Copyright (C) 2006-2013 Laurent Destailleur * Copyright (C) 2015 Francis Appels * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/eventorganization/conferenceorboothattendee_note.php b/htdocs/eventorganization/conferenceorboothattendee_note.php index 1d4fa0924c1..230f9375c36 100644 --- a/htdocs/eventorganization/conferenceorboothattendee_note.php +++ b/htdocs/eventorganization/conferenceorboothattendee_note.php @@ -28,7 +28,7 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT . '/eventorganization/class/conferenceorboothattendee.class.php'; -require_once DOL_DOCUMENT_ROOT . '/eventorganization/lib/eventorganization_conferenceorboothattendee.lib.php'; +require_once DOL_DOCUMENT_ROOT . '/eventorganization/lib/eventorganization_conferenceorbooth.lib.php'; /** * @var Conf $conf diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 3041ae37dd2..a8cf572644c 100644 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -9,7 +9,8 @@ * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2010 Juanjo Menent * Copyright (C) 2015 Bahfir Abbes - * Copyright (C) 2024 MDW + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -137,6 +138,7 @@ $conffiletoshow = "htdocs/conf/conf.php"; // --- End of part replaced by Dolibarr packager makepack-dolibarr // Include configuration +// @phpstan-ignore-next-line $result = @include_once $conffile; // Keep @ because with some error reporting mode, this breaks the redirect done when file is not found // Disable some not used PHP stream diff --git a/htdocs/public/agenda/agendaexport.php b/htdocs/public/agenda/agendaexport.php index 9a7af93cbe4..12046197b2a 100644 --- a/htdocs/public/agenda/agendaexport.php +++ b/htdocs/public/agenda/agendaexport.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2008-2024 Laurent Destailleur * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -91,7 +91,13 @@ if (is_numeric($entity)) { // Load Dolibarr environment require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php'; - +/** + * @var Conf $conf + * @var DoliDB $db + * @var HookManager $hookmanager + * @var Translate $langs + * @var User $user + */ $object = new ActionComm($db); // Not older than diff --git a/htdocs/public/bookcal/index.php b/htdocs/public/bookcal/index.php index 374554ffcfa..fc41027d6a8 100644 --- a/htdocs/public/bookcal/index.php +++ b/htdocs/public/bookcal/index.php @@ -54,7 +54,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/public.lib.php'; if (!isModEnabled('bookcal')) { httponly_accessforbidden('Module Bookcal isn\'t enabled'); } - +/** + * @var Conf $conf + * @var DoliDB $db + * @var Translate $langs + */ $langs->loadLangs(array("main", "other", "dict", "agenda", "errors", "companies")); $action = GETPOST('action', 'aZ09'); diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 467630a316d..f7cddb38941 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -11,7 +11,7 @@ parameters: # minimumNumberOfJobsPerProcess: 2 # default is 2 # buffer: 134217728 # 128 MB # Not documented customRulesetUsed: true - level: 9 + level: 10 fileExtensions: - php paths: @@ -28,9 +28,9 @@ parameters: analyse: - htdocs/includes/* - htdocs/core/class/lessc.class.php - checkAlwaysTrueCheckTypeFunctionCall: false - checkAlwaysTrueInstanceof: false - checkAlwaysTrueStrictComparison: false + # checkAlwaysTrueCheckTypeFunctionCall: false + # checkAlwaysTrueInstanceof: false + # checkAlwaysTrueStrictComparison: false checkClassCaseSensitivity: true checkFunctionArgumentTypes: true checkFunctionNameCase: true @@ -52,7 +52,7 @@ parameters: - '#.*phan-var#' internalErrorsCountLimit: 50 cache: - nodesByFileCountMax: 512 + # nodesByFileCountMax: 512 nodesByStringCountMax: 512 reportUnmatchedIgnoredErrors: false universalObjectCratesClasses: From 5283a67cc2165fd7bb2fb500db50b3f7793249c6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2024 23:44:36 +0100 Subject: [PATCH 058/110] Debug v21 --- htdocs/exports/class/export.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 214a518b944..7d4b35d0596 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -504,7 +504,7 @@ class Export public function build_filterField($TypeField, $NameField, $ValueField) { // phpcs:enable - global $conf, $langs, $form; + global $langs, $form; $szFilterField = ''; $InfoFieldList = explode(":", $TypeField); @@ -610,7 +610,7 @@ class Export if (!empty($ValueField) && $ValueField == $obj->rowid) { $szFilterField .= ''; } else { - $szFilterField .= ''; + $szFilterField .= ''; } $i++; } From 062c769cc3fcf88b61118cb713d6ea7e49b6b4b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 00:01:18 +0100 Subject: [PATCH 059/110] Rename MAIN_USE_FULL_TEXT_INDEXATION into MAIN_SAVE_FILE_CONTENT_AS_TEXT --- htdocs/core/class/html.formfile.class.php | 4 ++-- htdocs/core/lib/files.lib.php | 10 +++++----- htdocs/ecm/class/ecmfiles.class.php | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 941b1f72e04..0a457bedfad 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -271,8 +271,8 @@ class FormFile $menudolibarrsetupmax = $langs->transnoentitiesnoconv("Home").' - '.$langs->transnoentitiesnoconv("Setup").' - '.$langs->transnoentitiesnoconv("Security"); $tooltiptext = $langs->trans("ThisLimitIsDefinedInSetupAt", $menudolibarrsetupmax, $max, $maxphptoshowparam, $maxphptoshow); - if (getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION')) { - $tooltiptext .= '

Option to extract the file content in text to save it in database is ON ('.getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION').')'; + if (getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT')) { + $tooltiptext .= '

Option to extract the file content in text to save it in database is ON ('.getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT').')'; } $out .= ' '; diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index cda577554b9..61e3ce361a2 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -2181,11 +2181,11 @@ function addFileIntoDatabaseIndex($dir, $file, $fullpathorig = '', $mode = 'uplo } // Use a convertisser Doc to Text - $useFullTextIndexation = getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION'); + $useFullTextIndexation = getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT'); if (empty($useFullTextIndexation) && $forceFullTextIndexation == '1') { - if (getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION_PDFTOTEXT')) { + if (getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT_PDFTOTEXT')) { $useFullTextIndexation = 'pdftotext'; - } elseif (getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION_DOCLING')) { + } elseif (getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT_DOCLING')) { $useFullTextIndexation = 'docling'; } } @@ -2213,7 +2213,7 @@ function addFileIntoDatabaseIndex($dir, $file, $fullpathorig = '', $mode = 'uplo // We also exclude '/temp/' dir and 'documents/admin/documents' // We make escapement here and call executeCLI without escapement because we don't want to have the '*.log' escaped. - $cmd = getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION_PDFTOTEXT', 'pdftotext')." -htmlmeta '".escapeshellcmd($filetoprocess)."' - "; + $cmd = getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT_PDFTOTEXT', 'pdftotext')." -htmlmeta '".escapeshellcmd($filetoprocess)."' - "; $resultexec = $utils->executeCLI($cmd, $outputfile, 0, null, 1); if (!$resultexec['error']) { @@ -2239,7 +2239,7 @@ function addFileIntoDatabaseIndex($dir, $file, $fullpathorig = '', $mode = 'uplo // We also exclude '/temp/' dir and 'documents/admin/documents' // We make escapement here and call executeCLI without escapement because we don't want to have the '*.log' escaped. - $cmd = getDolGlobalString('MAIN_USE_FULL_TEXT_INDEXATION_DOCLING', 'docling')." --from pdf --to text '".escapeshellcmd($filetoprocess)."'"; + $cmd = getDolGlobalString('MAIN_SAVE_FILE_CONTENT_AS_TEXT_DOCLING', 'docling')." --from pdf --to text '".escapeshellcmd($filetoprocess)."'"; $resultexec = $utils->executeCLI($cmd, $outputfile, 0, null, 1); if (!$resultexec['error']) { diff --git a/htdocs/ecm/class/ecmfiles.class.php b/htdocs/ecm/class/ecmfiles.class.php index 6f92db937c3..45a27366028 100644 --- a/htdocs/ecm/class/ecmfiles.class.php +++ b/htdocs/ecm/class/ecmfiles.class.php @@ -174,7 +174,7 @@ class EcmFiles extends CommonObject 'fullpath_orig' => array('type' => 'varchar(750)', 'label' => 'FullPathOrig', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'showoncombobox' => 2, 'validate' => 1,'comment' => "full path of original filename, when file is uploaded from a local computer"), 'description' => array('type' => 'text', 'label' => 'Description', 'enabled' => 1, 'visible' => 0, 'position' => 110), 'keywords' => array('type' => 'varchar(750)', 'label' => 'Keywords', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'showoncombobox' => 2, 'validate' => 1,'comment' => "list of keywords, separated with comma. Must be limited to most important keywords."), - 'content' => array('type' => 'html', 'label' => 'Content', 'enabled' => 'getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")', 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'csslist' => 'tdoverflowmax200', 'help' => "Text content of file", 'showoncombobox' => 2, 'validate' => 1,'comment' => "Text content if option to store txt content was set."), + 'content' => array('type' => 'html', 'label' => 'Content', 'enabled' => 'getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")', 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'csslist' => 'tdoverflowmax200', 'help' => "Text content of file", 'showoncombobox' => 2, 'validate' => 1,'comment' => "Text content if option to store txt content was set."), 'cover' => array('type' => 'text', 'label' => 'Cover', 'enabled' => 1, 'visible' => 0, 'position' => 130, 'comment' => "is this file a file to use for a cover"), 'position' => array('type' => 'integer', 'label' => 'Position', 'default' => '1', 'enabled' => 1, 'visible' => -2, 'notnull' => 1, 'position' => 140, 'index' => 1, 'comment' => "position of file among others"), 'gen_or_uploaded' => array('type' => 'varchar(12)', 'label' => 'GenOrUpload', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'showoncombobox' => 2, 'validate' => 1,'comment' => "'generated' or 'uploaded'"), @@ -317,7 +317,7 @@ class EcmFiles extends CommonObject $sql .= 'fullpath_orig,'; $sql .= 'description,'; $sql .= 'keywords,'; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $sql .= 'content,'; } $sql .= 'cover,'; @@ -341,7 +341,7 @@ class EcmFiles extends CommonObject $sql .= ' '.(!isset($this->fullpath_orig) ? 'NULL' : "'".$this->db->escape($this->fullpath_orig)."'").','; $sql .= ' '.(!isset($this->description) ? 'NULL' : "'".$this->db->escape($this->description)."'").','; $sql .= ' '.(!isset($this->keywords) ? 'NULL' : "'".$this->db->escape($this->keywords)."'").','; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $sql .= ' '.(!isset($this->content) ? 'NULL' : "'".$this->db->escape($this->content)."'").','; } $sql .= ' '.(!isset($this->cover) ? 'NULL' : "'".$this->db->escape($this->cover)."'").','; @@ -426,7 +426,7 @@ class EcmFiles extends CommonObject $sql .= " t.fullpath_orig,"; $sql .= " t.description,"; $sql .= " t.keywords,"; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $sql .= " t.content,"; } $sql .= " t.cover,"; @@ -507,7 +507,7 @@ class EcmFiles extends CommonObject $this->fullpath_orig = $obj->fullpath_orig; $this->description = $obj->description; $this->keywords = $obj->keywords; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $this->content = $obj->content; } $this->cover = $obj->cover; @@ -571,7 +571,7 @@ class EcmFiles extends CommonObject $sql .= " t.fullpath_orig,"; $sql .= " t.description,"; $sql .= " t.keywords,"; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $sql .= " t.content,"; } $sql .= " t.cover,"; @@ -646,7 +646,7 @@ class EcmFiles extends CommonObject $line->fullpath_orig = $obj->fullpath_orig; $line->description = $obj->description; $line->keywords = $obj->keywords; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $line->content = $obj->content; } $line->cover = $obj->cover; @@ -751,7 +751,7 @@ class EcmFiles extends CommonObject $sql .= ' fullpath_orig = '.(isset($this->fullpath_orig) ? "'".$this->db->escape($this->fullpath_orig)."'" : "null").','; $sql .= ' description = '.(isset($this->description) ? "'".$this->db->escape($this->description)."'" : "null").','; $sql .= ' keywords = '.(isset($this->keywords) ? "'".$this->db->escape($this->keywords)."'" : "null").','; - if (getDolGlobalString("MAIN_USE_FULL_TEXT_INDEXATION")) { + if (getDolGlobalString("MAIN_SAVE_FILE_CONTENT_AS_TEXT")) { $sql .= ' content = '.(isset($this->content) ? "'".$this->db->escape($this->content)."'" : "null").','; } $sql .= ' cover = '.(isset($this->cover) ? "'".$this->db->escape($this->cover)."'" : "null").','; From aa138fce46fd18b86ee4be4655fd99224060e482 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 00:24:45 +0100 Subject: [PATCH 060/110] Look and feel v21 --- htdocs/bookmarks/list.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/bookmarks/list.php b/htdocs/bookmarks/list.php index cda1073a459..8418826eb1c 100644 --- a/htdocs/bookmarks/list.php +++ b/htdocs/bookmarks/list.php @@ -1,7 +1,7 @@ * Copyright (C) 2024 Alexandre Spangaro - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -415,12 +415,12 @@ while ($i < $imaxinloop) { $candelete = $permissiontodelete; // Title - print ''; + print ''; print dol_escape_htmltag($title); print "\n"; // Url - print ''; + print ''; if (empty($linkintern)) { print img_picto('', 'url', 'class="pictofixedwidth"'); print 'target ? ' target="newlink" rel="noopener"' : '').'>'; @@ -433,7 +433,7 @@ while ($i < $imaxinloop) { print "\n"; // Target - print ''; + print ''; if ($obj->target == 0) { print $langs->trans("BookmarkTargetReplaceWindowShort"); } @@ -443,7 +443,7 @@ while ($i < $imaxinloop) { print "\n"; // Author - print ''; + print ''; if ($obj->fk_user > 0) { if (empty($conf->cache['users'][$obj->fk_user])) { $tmpuser = new User($db); From 50625a69f0aef0b3882ffd7a1e42e01dd7d300d9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 09:30:23 +0100 Subject: [PATCH 061/110] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b81d632a728..c5870358438 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,11 @@ If you have low technical skills and you're looking to install Dolibarr ERP/CRM - [DoliWamp for Windows](https://wiki.dolibarr.org/index.php/Dolibarr_for_Windows_(DoliWamp)) - [DoliDeb for Debian](https://wiki.dolibarr.org/index.php/Dolibarr_for_Ubuntu_or_Debian) - DoliRpm for Red Hat, Fedora, OpenSuse, Mandriva or Mageia +- The Docker image (see next chapter) Releases can be downloaded from [official website](https://www.dolibarr.org/). -### Using the generic step by step setup (recommended) +### Using the generic step by step setup (recommended for IT users) You can use any web server supporting PHP (Apache, Nginx, ...) and a supported database (MariaDB, MySQL or PostgreSQL) to install the standard version: @@ -69,7 +70,7 @@ You can use any web server supporting PHP (Apache, Nginx, ...) and a supported d `http://yourdolibarrvirtualhost/install/` -- Follow the installer instructions;;; +- Follow the installer instructions ### Using Docker images From 294912420b3557e435cf62fa441341968b0f3b01 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 10:06:10 +0100 Subject: [PATCH 062/110] Prepare 19.0.4 --- htdocs/filefunc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 834ccde54a7..e203a21a333 100644 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -34,7 +34,7 @@ if (!defined('DOL_APPLICATION_TITLE')) { define('DOL_APPLICATION_TITLE', 'Dolibarr'); } if (!defined('DOL_VERSION')) { - define('DOL_VERSION', '19.0.3'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c + define('DOL_VERSION', '19.0.4'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c } if (!defined('EURO')) { From dd16c087e55fba78d48879e44b8e40e253dbe3ab Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 10:07:57 +0100 Subject: [PATCH 063/110] Prepare 20.0.2 --- htdocs/filefunc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index ec66d6cf58b..881f26d4f41 100644 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -35,7 +35,7 @@ if (!defined('DOL_APPLICATION_TITLE')) { define('DOL_APPLICATION_TITLE', 'Dolibarr'); } if (!defined('DOL_VERSION')) { - define('DOL_VERSION', '20.0.1'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c + define('DOL_VERSION', '20.0.2'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c } if (!defined('EURO')) { From 6b82d435be200476c3cc4513769759623e15f0c4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 10:50:26 +0100 Subject: [PATCH 064/110] Prepare v21 --- ChangeLog | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 186 insertions(+) diff --git a/ChangeLog b/ChangeLog index a31cf7fac53..fe8c7b7dcee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,12 +6,198 @@ English Dolibarr ChangeLog For users: ---------- +NEW: NEW Module - help to setup OpenID Connect (#30317) +NEW: Add hidden option CONTRACT_HIDE_MYCOMPANY_SIGNATURE_SECTION_PDF +NEW: Add a tab on recurring invoice card to see the list of invoices generated from this recurring invoice (customer and supplier invoices) (#31463) +NEW: #28871 signed_status to commande (#30359) +NEW: #30269 linked project in column of last record tables (#30344) +NEW: Accountancy - Add general account on thirdparty +NEW: Accountancy - Add partial reconcile on subledger (#30027) +NEW: Accountancy - Option to select the label of operation (#31200) +NEW: Accountancy - Allow grouping taxes with primary line price (#26732) +NEW: Activate PHPUnit with tests on permission on $action ==... +NEW: Add advice for max size on list for better performance +NEW: Add an advanced permission to validate knowledge (#30855) +NEW: Add a test mode into the setup of AI module to test the AI prompts. +NEW: Add a tool to decrypt data encrypted in database. +NEW: Add auto generate document when reception is created (#30688) +NEW: Add badge for generate invoice client tab (#31559) +NEW: Add caldav on fichinter (#30582) +NEW: Add column agenda_id to implement the link between files and event +NEW: Add column "comment" in list of payment +NEW: Add constant to hide version (#30865) +NEW: Add country in search of project +NEW: add duration extrafields (#31595) +NEW: Add export for thirdparty bank accounts (#30807) +NEW: Add export profile to export MO and lines of consumption/production +NEW: Add option to store the text content of uploaded files into database (with conversion with pdftotext) +NEW: Add Filter Assistance for Filling Filters Field (#31646) +NEW: add last stock movement and product nature to StocksWithBatch export (#30578) +NEW: Add member title to the labels (#31710) +NEW: Add mode Customer price + level price (#31091) +NEW: add option to add external billing contact on the supplier_proposal pdf (#30298) +NEW: Add option to clone its default BOM when cloning a product (#30088) +NEW: Add option to enable PDF frame rounded corners +NEW: Add option to round weight and volume on shipment PDF +NEW: add pdf regeneration to mass action for shipments (#29970) +NEW: Add picto on list of notification email templates +NEW: add recurring supplier invoice on supplier tab #30945 #30949 +NEW: Add sort by ref warehouse/product or ref product/warehouse on inventory product list (#31639) +NEW: Add some improvement for ODT Contracts (#31715) +NEW: Add terms of sale on documents (#24846) +NEW: Add thirdparty state in substitution array (#31549) +NEW: Add tooltip on closing accounting setup +NEW: add trigger for linking and unlinking invoices (#30182) +NEW: Add Unit price on supplier order stat product (#31055) +NEW: add warehouseId parameters in select_produit to limit result to existing product in select (#30477) +NEW: allow link feature to task (#30235) +NEW: Authorize modification of a partially shipped order (#31423) +NEW: autogenerate project reference in API (#30638) +NEW: automatically change status on answering a ticket (#30556) +NEW: Browser notifications use now jnotify (fix browser compatibility) +NEW: can add extrafields with dol_move (#30574) +NEW: Can change the type of a social contribution if no payment +NEW: can delete a category translation (#31396) +NEW: Can link an object to another using the ref. Close #31001 +NEW: Can set a class on the tr lines of form setup lines +NEW: Can set border radius of list and tables +NEW: Can set date of transmission in 1 click when validating SEPA +NEW: Can set parameters with setup type yesno. +NEW: Can set the contact type for the autoassigned user that creates a project (#30444) +NEW: Can show raw value of oauth token +NEW: Can use a specific profile to send email for password forgotten +NEW: option to care grandchild (#31314) +NEW: Look and feel - checkbox to choose thirdparty nature (#30192) +NEW: Color line total and sub total (#26172) +NEW: Constant to hide user login times (#29815) +NEW: Const ASSET_ROUND_INTEGER_NUMBER_UPWARDS for ASSET Module. Compatibility to migrate from other accounting solutions. (#31615) +NEW: Content of tab "attached files" is more compact. +NEW: Contract signed status update (#30779) +NEW: Create thirdparty notification by action code (#30541) +NEW: Customer price and level price together +NEW: default configuration for event reminder (#31407) +NEW: determine multi-currency price on object line create tpl (#28021) +NEW: Display for socialnetworks admin +NEW: display mark rates in objectLineCreate (#30872) +NEW: due date in accounting bookkeeping list and card (#30061) +NEW: enhance the OAUTH2 token manager. Can refresh a token from page. +NEW: EPC QR CODE - Use bank owner account name instead of company (#31735) +NEW: fichinter list disable details option (#30884) +NEW: filter on invoice dates in product margin tab (#29997) and thirdparty margin tab (#29998) +NEW: FIX: Display invoice widgets by amount instead of number (#30215) +NEW: Add the Clone of company (#29755) +NEW: function for Preview In CKeditor products +NEW: FY Changed Period handle in Module Asset (#31618) +NEW: hidden option MAIN_TE_PRIVATE_FIRST_AND_LASTNAME_TO_UPPER (#31143) +NEW: Hide completed items in Link to (#31329) +NEW: Iban is saved encrypted +NEW: if a user is associated with the expense report, then that user will get an associated credit line ($tabtp) generated. +NEW: Implementing Billable tasks on projects using new attribute "billable" (#30092) +NEW: Include a protection into check update of module to detect malware +NEW: intervention signed status update (#30629) +NEW: INTRA VAT ID field optionally mandatory and/or invoice mandatory in thirdparty module setup (#31663) +NEW: Invoice - Generate payment information - Structured communication (#31376) +NEW: Invoice line import - fk_product can be a ref (#30795) +NEW: Look and feel v21 - Can have rounded border on tables +NEW: Look and feel v21 - Toolbar for WYSIWYG editor is short on smartphone +NEW: Management of extrafields on customer prices, level prices and default prices (#31313) +NEW: manage several type of dangerous goods for a same parcel (#30238) +NEW: Member - Can upload a file with drag and drop (#30265) +NEW: Move the picto in the first tab label always visible +NEW: ODTSubsitution for date_start_real / Contracts +NEW: Look and feel - Opacity for finished lines (#30219) +NEW: option: assign default roles to "individual" third-party contacts (#30499) +NEW: option to allow freezing qty in BOM service's line (#29990) +NEW: Add a page to list the lines of orderse (#31521) +NEW: pagination in product margin tab +NEW: payment term and mode on creating supplier (#31166) and third-party (#31067) +NEW: PDF Add Customer accountancy code (#31544) +NEW: PDF Add discount total if line discount exists (#31483) +NEW: PDF Add option to print rounded corner frames (#31172) +NEW: PDF Add shipping address in sales orders (#31293) +NEW: PDF Add total discount if line discount exists +NEW: PDF frame rounded corners +NEW: Prelevement - Use structured payment data for Belgium (#31383) +NEW: Preview product list when we choose model email layout Commerce (#30185) +NEW: Can upload a file with drag and drop: Thirdparty (#30263) - Product/Service (#30250) - Project (#30276) - Propale (#30315) +NEW: Public and private note options in thirdparty list (#31062) +NEW: redirect to expedition card if global search has unique result (#30108) +NEW: replenishment if the warehouse is set to the default selected user (#31229) +NEW: retrieve Thirdparty by account (#31283) +NEW: Share msg "not found" for widgets and add a button to add new record when none exists (#31309) +NEW: shipment signed status update (#30928) +NEW: Show detail of each multicurrency amount in popup of price +NEW: show holidays at bottom of activity/permonth.php page (#31550) +NEW: Show tooltip on number of qualified records +NEW: Signature or proposal from the Web portal (#30062) +NEW: Star Field Type for Extra Fields (#31348) and for for Module Builder (#31216) +NEW: Support option PDF_ADD_POSITION on shipment espadon template +NEW: Auto-suspend facture rec when nb gen max is reached (#31623) +NEW: The margin section can now be shown/hidden +NEW: Deal change in fiscal year period adjustments to shortened or extended periods (e.g., fiscal years of 9 or 15 months) +NEW: (ticket, admin): More options entries (#30548) +NEW: Update warehouse product list to add another sorting option (#30971) +NEW: Can set blacklist of words into answer of AI (#30385) +NEW: user list country filter (#30770) +NEW: vat rate with department in dict (#31628) (#31627) +NEW: When we export data of unlaterable log, we add an unalterable line in logs NEW Add option THEME_STICKY_TOPMENU = 'scrollleftmenu_after_mainpage' (or 'disabled') NEW value for FICHINTER_DISABLE_DETAILS. If FICHINTER_DISABLE_DETAILS is set to '2' details are disabled only on intervention list. +PERF: Reduce nb of requests into num_public_holiday +PERF: Reduce size for VCF files and virtualcard qrcode +PERF: Reduce time to show the page of unalterable logs with high data + For developers: --------------- +NEW: translation with action triggers API (#30595) +NEW: more complete stock product API call (#30567) +NEW: Projet - Add hook formconfirm (#31408) +NEW: Can choose the zip handler to build ODT. +NEW: Can force ip into log file name using a define('SYSLOG_FILE_ADDIP') +NEW: Can force log file name using a define('SYSLOG_FILE_ADDSUFFIX') +NEW: Can define the text on tooltip on a yesno check. +NEW: Introduce value 'password' for mode of sanitization in GETPOST. +NEW: Add getImageFromHtmlContent() method +NEW: Add gitleaks into pre-commit +NEW: Add hook after the line is processed in the sell journal page (#31439) +NEW: add hook dolibarrDelConst (#30672) +NEW: Add hook getLoginPageExtraContent, getPasswordResetPageExtraContent +NEW: add hook in dolibarr_set_const admin.lib.php (#30605) +NEW: Add hook on sell journal page for overwrite the processed journal data after the SQL request (#31033) +NEW: force_install_noedit : add value 3 to block all technical parameters excepted main_url (#30080) +NEW: Add a new hook on order list (#31315) +NEW: Add ID of the line in the trigger context for addLine(), updateLine() and deleteLine() on contract (#30343) +NEW: Add more log information +NEW: Add pagination data to some api routes (#29895) +NEW: Add test to forbidden NOW() SQL function. +NEW: API call to re-generate a users password. (#30590) +NEW: API close proposal now supports both private and public note (#30659) +NEW: API_LOGINS_ALLOWED_FOR_GET_EXTRAFIELD (#30562) +NEW: API /setup endpoint for getting action triggers (#30538) +NEW: HOOK FORMCONFIRM IN TICKET (#31321) +NEW: hook on expensereport added (#31380) QUAL line classes for various business object classes have been moved to individual files. +QUAL: #30122 (#30131) +QUAL: AccountancySystem: maintenance work to uniformize and clean up (#31391) +QUAL: All $conf->global->module->enabled are replaced with isModEnabled() +QUAL: bankline category table name (#30419) +QUAL: Clean code +QUAL: conformity PR for data structure of #29964 (#30014) +QUAL: Edition of currency is shared in a common tpl file +QUAL: Ergo btn and fix (#30947) +QUAL: Move function csvClean into functions2.lib.php +QUAL: Move the public css file into the public directory +QUAL: Removed inclusion of the file json.lib.php +QUAL: simplifying readability of sql +QUAL: Standardize name of user cookies +QUAL: Suffix table name to have them created on module install +QUAL: The property ->domiciliation and ->propio on bank accounts has been +QUAL: Update inc.php (#29822) +QUAL: Use archiveOrBackupFile for MAIN_MAIL_DEBUG_LOG_WITH_DATE +QUAL: Use table_element in sql queries (#31355) +QUAL: rename const WORKFLOW_EXPEDITION_CLASSIFY_NEWD_INVOICE to WORKFLOW_RECEPTION_CLASSIFY_NEWD_INVOICE +QUAL: This configuration change in phan will report NEW: array types in phpdoc WARNING: From d3b9a83055ec691b8350972f1ce47692958be331 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 10:56:14 +0100 Subject: [PATCH 065/110] Fix changelog --- ChangeLog | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) diff --git a/ChangeLog b/ChangeLog index d9dc46ca7c4..e498cf31121 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,139 @@ English Dolibarr ChangeLog -------------------------------------------------------------- +***** ChangeLog for 18.0.6 compared to 18.0.5 ***** +FIX: 16.0 - parent company gets emptied when updating a third party from the card in edit mode (#28269) +FIX: 16.0 - the e-mail templates configured in the notification module are not used if the recipient is a fixed e-mail address (#29407) +FIX: 17.0: $num doesn't take trigger-modified newref into account, leading to inconsistencies if BILL_SUPPLIER_VALIDATE changes the invoice's ref (#28684) +FIX: 17.0: fatal when updating recurring supplier invoice line with php8 ($remise_percent is '' instead of 0) (#31713) +FIX: 17.0: supplier invoice template card: buyer and seller swapped in VAT-related function calls (probably a copy-paste from customer invoice templates) (#31446) +FIX: #24265 regression cannot see all product on takepos (#28753) +FIX: #25853 Thirdparty Massaction (#25868) +FIX: #28205 +FIX: #28251 Fixing subpermission name on api_multicurrencies.class.php (#28252) +FIX: #28369 +FIX: #28518 (#28520) +FIX: #28978 FIX: #28976 +FIX: #29029 Impossible to delete an order line +FIX: #29114 Missing contact term in intervention +FIX: #29114 Translate contact term in intervention +FIX: #29439 incomplete API return (#29796) +FIX: #29496 filtering a record should not hide its child not filtered +FIX: #30010 Use conf TICKET_MESSAGE_MAIL_INTRO instead of translation key (#30081) +FIX: #30274 Add the include before executing dolibarr_set_const (#30320) +FIX: #30467 +FIX: #30768 allocate the correct invoice_line_id to the element timespent (#30769) +FIX: Accountancy export with file or not +FIX: Accountancy - Generate entries of expense report with localtax (#30411) +FIX: Accountancy - Not trunc id_import +FIX: accounting FEC import (Issue #28306) (#29414) +FIX: Add new hidden conf "DISABLE_QTY_OVERWRITTEN" (#28523) +FIX: Add same security test whe nuploading files from API than from GUI (#31114) +FIX: Amount of localtaxes in foreign currency was wrong on screen and PDF +FIX: an error in a complex else condition +FIX: ASSET: annual depreciation starting year (Again ;-)) #26084 (#30040) +FIX: avoid error "Column 'entity' in where clause is ambiguous" (#28270) +FIX: avoid from re-initializing array result on nested hook getEntity (#30626) +FIX: avoid php warnings (#29247) +FIX: avoid to delete "lock" and "unlock" files +FIX: avoid Unknown column 'pfp.ref_fourn' (#28145) +FIX: background color for enabled modules (#29378) +FIX: Backport fix fatal error on price with some truncating setup +FIX: Backport page inventory.php from v18 to fix pagination bugs causing data loss (#29688) +FIX: back to page on error in contact card (#29627) +FIX: Bad calculation of $nbtotalofrecord (#30183) +FIX: box_actions.php still uses fk_user_done which no longer exists (#31190) +FIX: can validate shipment without stock movement (#31780) +FIX: Condition on newDateLimReglement +FIX: Conflict with autoload (#30399) +FIX: const WORKFLOW_RECEPTION_CLASSIFY_NEWD_INVOICE (#31601) +FIX: contact/address title is always "New Contact/Address" even if the contact/address already exists (#29581) +FIX: Display the date according to user language on subsitutions (#29510) +FIX: Display the real_PMP on inventory when its value is equal to 0 (#22291) +FIX: Don't display column when it's out of date (#28271) +FIX: email templates for expense report not visible +FIX: Error mesg show untranslated extrafield name (#30227) +FIX: Error message overwrited when a error occurs during update of product multilangs (#30841) +FIX: Error When cloning fourn price no default value for tva_tx (#28368) +FIX: executeHooks $object default value (#29647) +FIX: expedition PDF models using units labels (#30358) +FIX: Extrafield following between rec invoice and classic invoice (#31445) +FIX: fatal error on loading pictures in attached documents of an event (#30553) +FIX: fatal error Unsupported operand types when recording load payment +FIX: Fix bug select columns and acces to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) +FIX: Fix create shipping with product who have negative stocks on warehouse but the negative stock transfert is allowed (#26217) +FIX: Fix save directory for invoice ODT and multientities +FIX: group by qty in product margin tab (#29853) +FIX: Hierarchy Employee view do not filter on employee = 1 (#29496) +FIX: if you call fetchLines several times, your $object->lines contains duplicates (#31167) +FIX: If you have no stock of your product, an error is displayed when you delete the reception. (#31504) +FIX: incorrect page numbering in PDF #29458 (#29476) +FIX: inventoryDeletePermission id define twice +FIX: issue on action set condition in particular when you set a deposi… (#31518) +FIX: issue to get the right files exported in Quadratrus export.php (#30004) +FIX: lang output for sales representative on PDF (#30469) +FIX: late order search option (#30692) and propal (#30687) +FIX: lettering (auto) for invoice deposit with company discount (#29633) +FIX: made invalid code shape error more user friendly (#29498) +FIX: Merge of thirdparties must also move uploaded files +FIX: missing entity parameter for ajax_constantonoff +FIX: missing hide "new" button where "product" or "service" module are disable +FIX: mo cloning (#29686) +FIX: modification date from label in accounting bookkeeping list (#30038) +FIX: Move the trigger for delete order line before the SQL request +FIX: multiple problems with multicompany +FIX: mysql error during dump for enable sandbox M999999 (#31116) +FIX: notification: error 500 in fixed emails due to a bad copy/paste (#29580) +FIX: notification module: for supplier orders (any of the 3 triggers), user can choose an e-mail template in conf, but the conf is not used when sending the notification (#28216) +FIX: Not qualified lines for reception (#29473) +FIX: not redirtect when error occurs on updating card (#29388) +FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211) +FIX: on change ref for bank account attachement are lost (#30529) +FIX: Option MAIN_DOC_USE_TIMING can be a string with date format +FIX: orders to bill menu (#30179) +FIX: Payment on customer invoice - Remove accountid in url if empty for apply default value (#28156) +FIX: PDF Fatal error : Backport fix from #23972 +FIX: PDF Translations Extrafields +FIX: permission on payment file of a tax +FIX: php8: Fatal when empty $tmpvat is an empty string (no silent conversion to '0' when used in arithmetic operations) (#29451) +FIX: PHP 8 warning on output of successful cronjob (#29922) +FIX: PHP exception on getSpecialCode (#29646) +FIX: php warning global conf (#29478) +FIX: pos: invoice date incorrectly set beacause of timezome mismatches (reverts #36e91da) (#30184) +FIX: public project form return an error if SOCIETE_EMAIL_UNIQUE (#29942) +FIX: purge files cron: php warnings when rest module enabled (#30919) +FIX: PUT /thirdparties/{id} and PUT /contacts/{id} should throw exception if update returns < 0 (#29596) +FIX: Regression #29340 +FIX: Repair the replenishment list (#29336) +FIX: REPLENISH MANY FOURN WHEN ORDER ALREADY CREATE (#29710) +FIX: round capital societe (#29211) +FIX: search and add extrafields to tasks when conf disabled (#29542) +FIX: show preview pdf list expensereport (#31694) +FIX: sometimes a string type instead integer is return, why ? +FIX: Special code is now transmitted by args only in order supplier (#28546) (#28619) +FIX: SQL syntax error in DDLUpdateField +FIX: subscription must be editable when accounting isn't reconciled (#28469) +FIX: substitutions THIRDPARTY_XXX are not available for actioncomm reminders (#31385) +FIX: Supplier Order search on date valid (#30448) +FIX: supplier price duplicate entry on update supplier product ref (#29290) +FIX: syntax error +FIX: TakePOS | Add product / Delete line of existing invoice +FIX: Ticket new message notification sent twice +FIX: transfer in accountancy for expense reports. +FIX: Unsigned propal having signing date (#29825) +FIX: Update asset.class.php +FIX: update date_echeance of supplier invoices when we update invoice date in the past (#29886) +FIX: use $conf->browser->os instead +FIX: use price() to display qty on a product's stats tab to avoid showing too many decimals when rounding errors are possible (#31165) +FIX: User List - Function is show in wrong column when module HRM enabled (#30186) +fix: when invoice is created by WORKFLOW_ORDER_AUTOCREATE_INVOICE on ORDER_NEW, the invoice must have the default bank account of the thirdparty is it's empty on order (#29462) +FIX: when qty is not an integer, apply price() (#31138) +FIX: Wrong currency shown in TakePOS payment page +FIX: wrong shortcut key for macintosh +FIX: wrong sql request with product category filter +FIX: wrong stock permission number + + ***** ChangeLog for 18.0.5 compared to 18.0.4 ***** FIX: 17.0: deprecated field should only be a fallback FIX: 17.0 - php8 warnings: test for $field existence before checking if it is null or empty From d5add8aa49d84fb847ccfee6301711785ddc55e4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 10:56:56 +0100 Subject: [PATCH 066/110] typo --- ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e498cf31121..cffd1e583bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -87,7 +87,7 @@ FIX: mysql error during dump for enable sandbox M999999 (#31116) FIX: notification: error 500 in fixed emails due to a bad copy/paste (#29580) FIX: notification module: for supplier orders (any of the 3 triggers), user can choose an e-mail template in conf, but the conf is not used when sending the notification (#28216) FIX: Not qualified lines for reception (#29473) -FIX: not redirtect when error occurs on updating card (#29388) +FIX: not redirect when error occurs on updating card (#29388) FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211) FIX: on change ref for bank account attachement are lost (#30529) FIX: Option MAIN_DOC_USE_TIMING can be a string with date format From 62bff1d070b109d880ea94a0a1a2a717a09d7b83 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 11:02:13 +0100 Subject: [PATCH 067/110] Prepare 19.0.4 --- ChangeLog | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/ChangeLog b/ChangeLog index fe1363763e9..4ecb30ac3f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,58 @@ English Dolibarr ChangeLog -------------------------------------------------------------- +***** ChangeLog for 19.0.4 compared to 19.0.3 ***** +FIX: fatal when updating recurring supplier invoice line with php8 ($remise_percent is '' instead of 0) (#31713) +FIX: supplier invoice template card: buyer and seller swapped in VAT-related function calls (probably a copy-paste from customer invoice templates) (#31446) +FIX: #25853 Thirdparty Massaction (#25868) +FIX: #28505 Blank page from thirparty to projects (#31637) +FIX: #30757 +FIX: #30762 +FIX: #30768 allocate the correct invoice_line_id to the element timespent (#30769) +FIX: #30772 Accountancy document export - The project filter on expenses report don't work (#30824) +FIX: #30836 +FIX: #30960 show and search extrafields (#31026) +FIX: Add same security test whe nuploading files from API than from GUI (#31114) +FIX: ajaxik URL in ExpenseReport to load coef calculation (#30918) +FIX: attached file on first page load (#30694) +FIX: autoselect the fiscal period by default +FIX: avoid from re-initializing array result on nested hook getEntity (#30626) +FIX: avoid odt errors (#31126) +FIX: avoid pgsql error (#30678) +FIX: avoid the return "AND (())" (#30829) +FIX: Backport fix fatal error on price with some truncating setup +FIX: box_actions.php still uses fk_user_done which no longer exists (#31190) +FIX: can validate shipment without stock movement (#31780) +FIX: column position on PDF of payments +FIX: const WORKFLOW_RECEPTION_CLASSIFY_NEWD_INVOICE (#31601) +FIX: Debug extrafields for bank lines +FIX: email templates for expense report not visible +FIX: Error message overwrited when a error occurs during update of product multilangs (#30841) +FIX: error return missing in mo creation when qty to consume is <= 0 (#31134) +FIX: Extrafield following between rec invoice and classic invoice (#31445) +FIX: Fatal error on create loan schedule (#30656) +FIX: Fix bug select columns and acces to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) +FIX: fixed search filter for projects resetting when set to empty (#30902) +FIX: if you call fetchLines several times, your $object->lines contains duplicates (#31167) +FIX: If you have no stock of your product, an error is displayed when you delete the reception. (#31504) +FIX: Invoice unpaid widget - SQL error on group by with constant MAIN_COMPANY_PERENTITY_SHARED (#30866) +FIX: issue on action set condition in particular when you set a deposi… (#31518) +FIX: late order search option (v18+) (#30692) +FIX: late propal search option (v18+) (#30687) +FIX: missing fk_parent_line parameter (#30806) +FIX: mysql error during dump for enable sandbox M999999 (#31116) +FIX: PHP-warning-multiprice-in-liste-product-if-level-is-not-defined-on-product (#31507) +FIX: Protection to avoid an extrafield to be mandatory if computed +FIX: purge files cron: php warnings when rest module enabled (#30919) +FIX: removed unreachable code (#31141) +FIX: show preview pdf list expensereport (#31694) +FIX: Substitution error in ticket emails in the subject (#30778) +FIX: substitutions THIRDPARTY_XXX are not available for actioncomm reminders (#31385) +FIX: use price() to display qty on a product's stats tab to avoid showing too many decimals when rounding errors are possible (#31165) +FIX: Vat code is lost when updating lines in POS +FIX: when qty is not an integer, apply price() (#31138) +FIX: Wrong default PDF model when creating the second situation invoice (#30843) +FIX: wrong subprice if price base type is TTC (#30887) ***** ChangeLog for 19.0.3 compared to 19.0.2 ***** FIX: #29403 HRM - Unable to delete a skill in a job Profile (#29779) From 8f2e041ddab275fb3eec85867792a57d8a946cf6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 11:09:32 +0100 Subject: [PATCH 068/110] Typo --- ChangeLog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 48b7aefb40e..5f3c61cb379 100644 --- a/ChangeLog +++ b/ChangeLog @@ -190,7 +190,7 @@ NEW: Module Website: Can link/unlink translation between web pages NEW: Move dir of cache for widgets NEW: multiselect with checkbox in categories/tags search for thirdparty list (#28335) NEW: new consts to redirect from massaction createbills (#29436) -NEW: new global string to preselect yes for one bill per thirparty in orderlist massaction (#29359) +NEW: new global string to preselect yes for one bill per thirdparty in orderlist massaction (#29359) NEW: notification action triggers for cancelling orders and invoices NEW: now button when editing an event NEW: online signature of shipments (#29559) @@ -353,7 +353,7 @@ The following changes may create regressions for some external modules, but were FIX: fatal when updating recurring supplier invoice line with php8 ($remise_percent is '' instead of 0) (#31713) FIX: supplier invoice template card: buyer and seller swapped in VAT-related function calls (probably a copy-paste from customer invoice templates) (#31446) FIX: #25853 Thirdparty Massaction (#25868) -FIX: #28505 Blank page from thirparty to projects (#31637) +FIX: #28505 Blank page from thirdparty to projects (#31637) FIX: #30757 FIX: #30762 FIX: #30768 allocate the correct invoice_line_id to the element timespent (#30769) @@ -3513,7 +3513,7 @@ FIX: fix checkbox displayed according to module project setup parameters - work FIX: inconsistency in margin recording with option "Force to sale price" FIX: invoice PDF generation after payment FIX: mask selector fournisseur if module not activate -FIX: merge thirparty also work for bank URL entry +FIX: merge thirdparty also work for bank URL entry FIX: Missing extrafields into export of agenda record FIX: missing parameter in select for POP FIX: missing return edit if update error From e78c9d2900747d2c9b4fcd13979ed0a08d9efc7b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 11:15:53 +0100 Subject: [PATCH 069/110] Prepare 20.0.2 --- ChangeLog | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5f3c61cb379..4e9987e8dad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,8 +2,66 @@ English Dolibarr ChangeLog -------------------------------------------------------------- -***** ChangeLog for 20.0.1 compared to 20.0.0 ***** +***** ChangeLog for 20.0.2 compared to 20.0.1 ***** +FIX: fatal when updating recurring supplier invoice line with php8 ($remise_percent is '' instead of 0) (#31713) +FIX: supplier invoice template card: buyer and seller swapped in VAT-related function calls (probably a copy-paste from customer invoice templates) (#31446) +FIX: #25853 Thirdparty Massaction (#25868) +FIX: #28505 Blank page from thirparty to projects (#31637) +FIX: #30432 make thirdparty code_client and code_compta modifiable via API (#31668) +FIX: #31015 +FIX: #31360 delete contact when using pgsql. +FIX: #31365 Bank - Card - Ref haven't max length in edit mode (#31533) +FIX: #31452 Predefined supplier invoice - Language key & link to supplier card (#31514) +FIX: #31538 Addition to EPC-QR values <200b><200b>to correct remittance information (#31557) +FIX: Accountancy - Loan - Error on transfer (#31546) +FIX: a dictionary CANNOT have zero value in entity field (#31625) +FIX: Avoid fatal error when mysqli not available +FIX: Bad balance of td into setup page of shipments +FIX: bad test on permission makes agenda event creation on object not +FIX: can validate shipment without stock movement (#31780) +FIX: Clear of option THEME_ELDY_USEBORDERONTABLE +FIX: column position on PDF of payments +FIX: const WORKFLOW_RECEPTION_CLASSIFY_NEWD_INVOICE (#31601) +FIX: convert amount into text when using numberwords +FIX: Corrected typo preventing data from being saved (#31716) +FIX: CSS +FIX: access to media files +FIX: default visibility +FIX: dol_openinpopup for virtual card +FIX: duplicate answers in list when using global search on proposals +FIX: Edit a link +FIX: email templates for expense report not visible +FIX: Error management on cheque deposit. +FIX: error message in xls import when stream zip is not available. +FIX: Extrafield following between rec invoice and classic invoice (#31445) +FIX: Filter on month of the balance of leaves. +FIX: Fix bug select columns and access to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) +FIX: for #31237 #31524 +FIX: Get number of bank deposit wa not using the date. +FIX: If you have no stock of your product, an error is displayed when you delete the reception. (#31504) +FIX: issue on action set condition in particular when you set a deposi… (#31518) +FIX: open redirection +FIX: pagebreak when option PDF_ADD_POSITION is set +FIX: PHP-warning-multiprice-in-liste-product-if-level-is-not-defined-on-product (#31507) +FIX: Picto menu not visible +FIX: Salary - Payment card - Missing date (#31512) +FIX: Search on batch code +FIX: select variant by attribute. (#31759) +FIX: show preview pdf list expensereport (#31694) +FIX: Show twice the technical ID +FIX: space used by linked elements in PDF notes (#31459) +FIX: substitutions THIRDPARTY_XXX are not available for actioncomm reminders (#31385) +FIX: Support for PDF_ADD_POSITION was not complete +FIX: the autofix corrupted vat value must be triggered only if we are +FIX: the autofix must also fix the multicurrency value. +FIX: this constant break the dictionary admin without Multicompany (#31638) +FIX: uniformize and check delete contact action (#31384) +FIX: Vat code is lost when updating lines in POS +FIX: uniformize and check delete contact action (#31384) +FIX: Vat code is lost when updating lines in POS +FIX: When PDF_ADD_POSITION is on, the number was doing pagebreak before +***** ChangeLog for 20.0.1 compared to 20.0.0 ***** FIX: #30960 show and search extrafields (#31026) FIX: #31076 Bad position of hooks FIX: #31152 From 2eb5bca23ccce4428dc7963a38ca2da17f41e293 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 11:36:05 +0100 Subject: [PATCH 070/110] Fix phan --- build/phpstan/phpstan-baseline.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index 06bd3632cb2..ad46ed29a80 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -6567,7 +6567,7 @@ parameters: - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property - count: 2 + count: 3 path: ../../htdocs/compta/facture/class/facture.class.php - From 29ef86a245740b93b96147cf5bf6a783b24c5c3f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 11:51:32 +0100 Subject: [PATCH 071/110] Typo --- ChangeLog | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index cffd1e583bc..ce5766b2013 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,7 +29,7 @@ FIX: Accountancy - Generate entries of expense report with localtax (#30411) FIX: Accountancy - Not trunc id_import FIX: accounting FEC import (Issue #28306) (#29414) FIX: Add new hidden conf "DISABLE_QTY_OVERWRITTEN" (#28523) -FIX: Add same security test whe nuploading files from API than from GUI (#31114) +FIX: Add same security test when uploading files from API than from GUI (#31114) FIX: Amount of localtaxes in foreign currency was wrong on screen and PDF FIX: an error in a complex else condition FIX: ASSET: annual depreciation starting year (Again ;-)) #26084 (#30040) @@ -49,19 +49,19 @@ FIX: Condition on newDateLimReglement FIX: Conflict with autoload (#30399) FIX: const WORKFLOW_RECEPTION_CLASSIFY_NEWD_INVOICE (#31601) FIX: contact/address title is always "New Contact/Address" even if the contact/address already exists (#29581) -FIX: Display the date according to user language on subsitutions (#29510) +FIX: Display the date according to user language on substitutions (#29510) FIX: Display the real_PMP on inventory when its value is equal to 0 (#22291) FIX: Don't display column when it's out of date (#28271) FIX: email templates for expense report not visible FIX: Error mesg show untranslated extrafield name (#30227) -FIX: Error message overwrited when a error occurs during update of product multilangs (#30841) +FIX: Error message overwrote when a error occurs during update of product multilangs (#30841) FIX: Error When cloning fourn price no default value for tva_tx (#28368) FIX: executeHooks $object default value (#29647) FIX: expedition PDF models using units labels (#30358) FIX: Extrafield following between rec invoice and classic invoice (#31445) FIX: fatal error on loading pictures in attached documents of an event (#30553) FIX: fatal error Unsupported operand types when recording load payment -FIX: Fix bug select columns and acces to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) +FIX: Fix bug select columns and access to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) FIX: Fix create shipping with product who have negative stocks on warehouse but the negative stock transfert is allowed (#26217) FIX: Fix save directory for invoice ODT and multientities FIX: group by qty in product margin tab (#29853) @@ -89,7 +89,7 @@ FIX: notification module: for supplier orders (any of the 3 triggers), user can FIX: Not qualified lines for reception (#29473) FIX: not redirect when error occurs on updating card (#29388) FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211) -FIX: on change ref for bank account attachement are lost (#30529) +FIX: on change ref for bank account attachment are lost (#30529) FIX: Option MAIN_DOC_USE_TIMING can be a string with date format FIX: orders to bill menu (#30179) FIX: Payment on customer invoice - Remove accountid in url if empty for apply default value (#28156) @@ -100,7 +100,7 @@ FIX: php8: Fatal when empty $tmpvat is an empty string (no silent conversion to FIX: PHP 8 warning on output of successful cronjob (#29922) FIX: PHP exception on getSpecialCode (#29646) FIX: php warning global conf (#29478) -FIX: pos: invoice date incorrectly set beacause of timezome mismatches (reverts #36e91da) (#30184) +FIX: pos: invoice date incorrectly set because of timezome mismatches (reverts #36e91da) (#30184) FIX: public project form return an error if SOCIETE_EMAIL_UNIQUE (#29942) FIX: purge files cron: php warnings when rest module enabled (#30919) FIX: PUT /thirdparties/{id} and PUT /contacts/{id} should throw exception if update returns < 0 (#29596) @@ -499,7 +499,7 @@ NEW: No overwrite of optionals during put() contact NEW: Notifications: add Customer Order delivered (ORDER_NEW) in module Notification NEW: Notifications: for Sign or Refused Propal from Online Page NEW: Now we can edit amount on VAT and salaries clone action -NEW: only get openned contact from liste_contact function, to not have acces to closed contact as mail receiver +NEW: only get openned contact from liste_contact function, to not have access to closed contact as mail receiver NEW: Option to manage deposit slips for more payment modes (not only NEW: Option to show column for field and line selection on the left NEW: Orders: add sub total in order list det @@ -2744,7 +2744,7 @@ NEW: add quick dropdown menu in top right menu (experimental with MAIN_USE_TOP_M NEW: add region in export companies and contacts NEW: add rights on margin info on invoice list NEW: add search param for close date on order list -NEW: add show preview for mail attachement on form mail +NEW: add show preview for mail attachment on form mail NEW: add State/Province origin for products NEW: add the workflow interaction close intervention on closing ticket NEW: add tracking number in list and search_all items @@ -4129,7 +4129,7 @@ FIX: access to public interface when origin email has an alias. FIX: Alias name is not into the email recipient label. FIX: allow standalone credit note even if no invoice FIX: an admin can not access his own permissions after enabling advanced permissions -FIX: Attachement of linked files on ticket when sending a message +FIX: Attachment of linked files on ticket when sending a message FIX: avoid non numeric warning FIX: Bad currency var used in stripe for connect FIX: Bad list of ticket on public interface for ticket emailcollector @@ -4925,7 +4925,7 @@ NEW: hidden option to define an invoice template for each invoice type NEW: Highlight lines on lists when they are checked NEW: Notification module support expense report+holiday validation and approval NEW: On customer/supplier card, add simple tooltip to amount boxes -NEW: Page to check if the operations/items created between two dates have attached item(s) and possibility to download all attachements +NEW: Page to check if the operations/items created between two dates have attached item(s) and possibility to download all attachments NEW: possibility to add all rights of all modules in one time NEW: redirect if only one result on global search on card NEW: Permission to ignore price min @@ -6369,7 +6369,7 @@ NEW: No external check of version without explicit click in about page. NEW: ODT docs for USER USERGROUP CONTRACT and PRODUCT class NEW: odt usergroup NEW: On invoices generated by template, we save if invoice come from a source template. -NEW: option to copy into attachement files of events, files send by mail (with auto event creation) +NEW: option to copy into attachment files of events, files send by mail (with auto event creation) NEW: PDF with numbertoword NEW: Permit multiple file upload in linked documents NEW: PHP 7.1 compatibility From 792ff4044effcf84c9e4496e8599b90118ef0c14 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 12:08:46 +0100 Subject: [PATCH 072/110] Typo --- ChangeLog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce5766b2013..a222f2206ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -62,7 +62,7 @@ FIX: Extrafield following between rec invoice and classic invoice (#31445) FIX: fatal error on loading pictures in attached documents of an event (#30553) FIX: fatal error Unsupported operand types when recording load payment FIX: Fix bug select columns and access to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) -FIX: Fix create shipping with product who have negative stocks on warehouse but the negative stock transfert is allowed (#26217) +FIX: Fix create shipping with product who have negative stocks on warehouse but the negative stock transfer is allowed (#26217) FIX: Fix save directory for invoice ODT and multientities FIX: group by qty in product margin tab (#29853) FIX: Hierarchy Employee view do not filter on employee = 1 (#29496) @@ -499,7 +499,7 @@ NEW: No overwrite of optionals during put() contact NEW: Notifications: add Customer Order delivered (ORDER_NEW) in module Notification NEW: Notifications: for Sign or Refused Propal from Online Page NEW: Now we can edit amount on VAT and salaries clone action -NEW: only get openned contact from liste_contact function, to not have access to closed contact as mail receiver +NEW: only get open contact from liste_contact function, to not have access to closed contact as mail receiver NEW: Option to manage deposit slips for more payment modes (not only NEW: Option to show column for field and line selection on the left NEW: Orders: add sub total in order list det From a0ef0f2de5f68a5413f80cc74ba29950c7cade33 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 12:37:28 +0100 Subject: [PATCH 073/110] Try to run windows-ci only if travis ok first. --- .github/workflows/gh-travis.yml | 1 + .github/workflows/phan.yml | 1 + .github/workflows/phpstan.yml | 4 ++-- .github/workflows/pre-commit.yml | 1 + .github/workflows/windows-ci.yml | 7 +++++++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-travis.yml b/.github/workflows/gh-travis.yml index 30c10765f07..529e261cf18 100644 --- a/.github/workflows/gh-travis.yml +++ b/.github/workflows/gh-travis.yml @@ -10,6 +10,7 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: diff --git a/.github/workflows/phan.yml b/.github/workflows/phan.yml index 56a33ef76c7..66faba3a577 100644 --- a/.github/workflows/phan.yml +++ b/.github/workflows/phan.yml @@ -10,6 +10,7 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index c638ee83e50..e1f2749566d 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -10,11 +10,11 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: - group: stan-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref - }} + group: stan-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true env: gh_event: ${{ inputs.gh_event || github.event_name }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8adc5051bc2..da71822c32b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,6 +8,7 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index e7d330324dd..daa81ada250 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -9,7 +9,13 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: + # Run if workflow is Travis is ok only + workflow_run: + workflows: ["Travis"] + types: + - completed concurrency: group: win-ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref @@ -27,6 +33,7 @@ env: GITHUB_JSON: ${{ toJSON(github) }} # Helps in debugging Github Action jobs: win-test: + if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: matrix: os: [windows-latest] From 786472febf44dad9155fb354f02bf1441b1e56d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 12:38:21 +0100 Subject: [PATCH 074/110] fix windows-ci.yml (#31791) * fix windows-ci.yml * Update windows-ci.yml --- .github/workflows/windows-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index 976a5415a42..a73f283e2b0 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -57,7 +57,7 @@ jobs: id: cache uses: actions/cache/restore@v4 env: - HASH: ${{ hashFiles('htdocs/install/**') }} + HASH: ${{ hashFiles('htdocs/install/**', 'htdocs/filefunc.inc.php') }} KEY_ROOT: ${{ matrix.os }}-${{ env.ckey }}-${{ matrix.php_version }} with: # See https://github.com/actions/cache/issues/1275#issuecomment-1925217178 @@ -72,7 +72,7 @@ jobs: ${{ env.KEY_ROOT }}-${{ env.HASH }}-${{ github.head_ref }}- ${{ env.KEY_ROOT }}-${{ env.HASH }}-${{ github.base_ref }}- ${{ env.KEY_ROOT }}-${{ env.HASH }}- - ${{ env.KEY_ROOT }}- + # ${{ env.KEY_ROOT }}- - name: Setup MariaDB uses: frederic34/setup-mariadb@v1 From 67c2a48fc9862f31f215da4f4e0be0d6c3ce7abf Mon Sep 17 00:00:00 2001 From: Eric - CAP-REL <1468823+rycks@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:39:10 +0100 Subject: [PATCH 075/110] Add missing extrafields on strato pdf model (#31790) * undef var * add main extrafields on object * remove dev debug sorry ! --------- Co-authored-by: Laurent Destailleur --- .../contract/doc/pdf_strato.modules.php | 18 ++++++++++++++++-- .../core/modules/contract/modules_contract.php | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php index fe6f77b9b9a..52834189978 100644 --- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php +++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php @@ -7,6 +7,7 @@ * Copyright (C) 2013-2020 Philippe Grand * Copyright (C) 2015 Marcos García * Copyright (C) 2018-2020 Frédéric France + * Copyright (C) 2024 Éric Seigne * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -300,11 +301,24 @@ class pdf_strato extends ModelePDFContract $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 : 10); // Display notes - if (!empty($object->note_public)) { + $notetoshow = empty($object->note_public) ? '' : $object->note_public; + + // Extrafields in note + $extranote = $this->getExtrafieldsInHtml($object, $outputlangs); + if (!empty($extranote)) { + $notetoshow = dol_concatdesc($notetoshow, $extranote); + } + + if (!empty($notetoshow)) { $tab_top -= 2; + $substitutionarray = pdf_getSubstitutionArray($outputlangs, null, $object); + complete_substitutions_array($substitutionarray, $outputlangs, $object); + $notetoshow = make_substitutions($notetoshow, $substitutionarray, $outputlangs); + $notetoshow = convertBackOfficeMediasLinksToPublicLinks($notetoshow); + $pdf->SetFont('', '', $default_font_size - 1); - $pdf->writeHTMLCell(190, 3, $this->posxdesc - 1, $tab_top - 1, dol_htmlentitiesbr($object->note_public), 0, 1); + $pdf->writeHTMLCell(190, 3, $this->posxdesc - 1, $tab_top - 1, dol_htmlentitiesbr($notetoshow), 0, 1); $nexY = $pdf->GetY(); $height_note = $nexY - $tab_top; diff --git a/htdocs/core/modules/contract/modules_contract.php b/htdocs/core/modules/contract/modules_contract.php index 577ec4be5d9..2089736b5c2 100644 --- a/htdocs/core/modules/contract/modules_contract.php +++ b/htdocs/core/modules/contract/modules_contract.php @@ -41,6 +41,7 @@ abstract class ModelePDFContract extends CommonDocGenerator * @var string Error code (or message) */ public $error = ''; + public $posxdesc; // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps From e04ca761032e4ca5b891facfb3db95724405c3a7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 12:49:30 +0100 Subject: [PATCH 076/110] Doc github actions --- .github/workflows/gh-travis.yml | 3 +-- .github/workflows/phan.yml | 6 +----- .github/workflows/phpstan.yml | 3 +-- .github/workflows/pre-commit.yml | 3 +-- .github/workflows/windows-ci.yml | 9 +-------- 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/gh-travis.yml b/.github/workflows/gh-travis.yml index 529e261cf18..9d1d6aa4de0 100644 --- a/.github/workflows/gh-travis.yml +++ b/.github/workflows/gh-travis.yml @@ -3,8 +3,7 @@ name: Travis # Controls when the workflow will run on: - # push: - # pull_request: + # workflow called by the parent workflow ci.yml workflow_call: inputs: gh_event: diff --git a/.github/workflows/phan.yml b/.github/workflows/phan.yml index 66faba3a577..e2ce5a75443 100644 --- a/.github/workflows/phan.yml +++ b/.github/workflows/phan.yml @@ -1,10 +1,6 @@ --- on: - # pull_request: - # push: - # schedule: - # # execute once a day, the 1st - # - cron: 10 9 * * * + # workflow called by the parent workflow ci.yml workflow_call: inputs: gh_event: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e1f2749566d..83f070aba44 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -3,8 +3,7 @@ name: PHPStan # Controls when the workflow will run on: - # push: - # pull_request: + # workflow called by the parent workflow ci.yml workflow_call: inputs: gh_event: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index da71822c32b..e07dfabf259 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,8 +1,7 @@ --- name: pre-commit on: - # pull_request: - # push: + # workflow called by the parent workflow ci.yml workflow_call: inputs: gh_event: diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index daa81ada250..50d9d4386f9 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -2,8 +2,7 @@ name: Win CI # yamllint disable-line rule:truthy on: - # push: - # pull_request: + # workflow called by the parent workflow ci.yml workflow_call: inputs: gh_event: @@ -11,11 +10,6 @@ on: type: string # can run job manually workflow_dispatch: - # Run if workflow is Travis is ok only - workflow_run: - workflows: ["Travis"] - types: - - completed concurrency: group: win-ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref @@ -33,7 +27,6 @@ env: GITHUB_JSON: ${{ toJSON(github) }} # Helps in debugging Github Action jobs: win-test: - if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: matrix: os: [windows-latest] From 85108b974f17e13f47c9beeb8ef6699c5b26a265 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 12:54:42 +0100 Subject: [PATCH 077/110] Split ci sheduler in 2 files --- .github/workflows/ci-on-pull_request.yml | 39 ++++++++++++++++++++ .github/workflows/{ci.yml => ci-on-push.yml} | 3 +- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-on-pull_request.yml rename .github/workflows/{ci.yml => ci-on-push.yml} (97%) diff --git a/.github/workflows/ci-on-pull_request.yml b/.github/workflows/ci-on-pull_request.yml new file mode 100644 index 00000000000..79f6ee9a2a5 --- /dev/null +++ b/.github/workflows/ci-on-pull_request.yml @@ -0,0 +1,39 @@ +name: "CI" + +on: [pull_request] +jobs: + pre-commit: + uses: ./.github/workflows/pre-commit.yml + secrets: inherit + with: + gh_event: ${{ github.event_name }} + phan: + uses: ./.github/workflows/phan.yml + secrets: inherit + with: + gh_event: ${{ github.event_name }} + phpstan: + uses: ./.github/workflows/phpstan.yml + secrets: inherit + needs: [pre-commit, phan] + with: + gh_event: ${{ github.event_name }} + #windows-ci: + # needs: [pre-commit, phan] + # secrets: inherit + # uses: ./.github/workflows/windows-ci.yml + # with: + # gh_event: ${{ github.event_name }} + gh-travis: # Runs travis script on github runner (not on travis) + if: false + # needs: [pre-commit, phan] + # needs: [windows-ci] + secrets: inherit + uses: ./.github/workflows/gh-travis.yml + with: + gh_event: ${{ github.event_name }} + +# Note (not tested, from https://github.com/orgs/community/discussions/38361) +# To cancel jobs if one failes, the following action may help +# - if: "failure()" +# uses: "andymckay/cancel-action@0.3" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-on-push.yml similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/ci-on-push.yml index 39edbc3496b..69582c7f927 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-on-push.yml @@ -1,6 +1,6 @@ name: "CI" -on: [push, pull_request] +on: [push] jobs: pre-commit: uses: ./.github/workflows/pre-commit.yml @@ -33,7 +33,6 @@ jobs: with: gh_event: ${{ github.event_name }} - # Note (not tested, from https://github.com/orgs/community/discussions/38361) # To cancel jobs if one failes, the following action may help # - if: "failure()" From bc118020b37dde021b904881965c3c490f4e4dcb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 13:03:33 +0100 Subject: [PATCH 078/110] Rename CI main jobs --- .github/workflows/ci-on-pull_request.yml | 2 +- .github/workflows/ci-on-push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-on-pull_request.yml b/.github/workflows/ci-on-pull_request.yml index 79f6ee9a2a5..4b01f56162b 100644 --- a/.github/workflows/ci-on-pull_request.yml +++ b/.github/workflows/ci-on-pull_request.yml @@ -1,4 +1,4 @@ -name: "CI" +name: "CI-PULL-REQUEST" on: [pull_request] jobs: diff --git a/.github/workflows/ci-on-push.yml b/.github/workflows/ci-on-push.yml index 69582c7f927..9c30edea31b 100644 --- a/.github/workflows/ci-on-push.yml +++ b/.github/workflows/ci-on-push.yml @@ -1,4 +1,4 @@ -name: "CI" +name: "CI-PUSH" on: [push] jobs: From 301d83edbf2a10160ecea2aed2971e100440eced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:22:10 +0100 Subject: [PATCH 079/110] qty must be float (not int) (#31792) Co-authored-by: Laurent Destailleur --- htdocs/mrp/mo_production.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 5d0fddd1963..8f5e4080fa7 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -197,7 +197,7 @@ if (empty($reshook)) { // Line to produce $moline->fk_mo = $object->id; - $moline->qty = GETPOSTINT('qtytoadd'); + $moline->qty = GETPOSTFLOAT('qtytoadd'); $moline->fk_product = GETPOSTINT('productidtoadd'); if (GETPOST('addconsumelinebutton')) { $moline->role = 'toconsume'; @@ -493,7 +493,7 @@ if (empty($reshook)) { $value = GETPOST('options_'.$key, 'alphanohtml'); $moline->array_options["options_".$key] = $value; } - $moline->qty = GETPOSTINT('qty_lineProduce'); + $moline->qty = GETPOSTFLOAT('qty_lineProduce'); $res = $moline->update($user); if ($res < 0) { setEventMessages($moline->error, $moline->errors, 'errors'); From ea1c4cca06a9a1175f40c04a0ef9f1538f479840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:22:10 +0100 Subject: [PATCH 080/110] qty must be float (not int) (#31792) Co-authored-by: Laurent Destailleur --- htdocs/mrp/mo_production.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 752dafff080..b7a0c189b5b 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -188,7 +188,7 @@ if (empty($reshook)) { // Line to produce $moline->fk_mo = $object->id; - $moline->qty = GETPOSTINT('qtytoadd'); + $moline->qty = GETPOSTFLOAT('qtytoadd'); $moline->fk_product = GETPOSTINT('productidtoadd'); if (GETPOST('addconsumelinebutton')) { $moline->role = 'toconsume'; @@ -484,7 +484,7 @@ if (empty($reshook)) { $value = GETPOST('options_'.$key, 'alphanohtml'); $moline->array_options["options_".$key] = $value; } - $moline->qty = GETPOSTINT('qty_lineProduce'); + $moline->qty = GETPOSTFLOAT('qty_lineProduce'); $res = $moline->update($user); if ($res < 0) { setEventMessages($moline->error, $moline->errors, 'errors'); From 214642f60323bce431d23311c2638cf58b1e7899 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 13:32:30 +0100 Subject: [PATCH 081/110] Do not run windows-ci is phpstan is ko --- .github/workflows/ci-on-pull_request.yml | 3 ++- .github/workflows/ci-on-push.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-on-pull_request.yml b/.github/workflows/ci-on-pull_request.yml index 4b01f56162b..7b3fff88c7d 100644 --- a/.github/workflows/ci-on-pull_request.yml +++ b/.github/workflows/ci-on-pull_request.yml @@ -10,6 +10,7 @@ jobs: phan: uses: ./.github/workflows/phan.yml secrets: inherit + needs: [pre-commit] with: gh_event: ${{ github.event_name }} phpstan: @@ -19,7 +20,7 @@ jobs: with: gh_event: ${{ github.event_name }} #windows-ci: - # needs: [pre-commit, phan] + # needs: [pre-commit, phan, phpstan] # secrets: inherit # uses: ./.github/workflows/windows-ci.yml # with: diff --git a/.github/workflows/ci-on-push.yml b/.github/workflows/ci-on-push.yml index 9c30edea31b..45137e8ed7a 100644 --- a/.github/workflows/ci-on-push.yml +++ b/.github/workflows/ci-on-push.yml @@ -10,6 +10,7 @@ jobs: phan: uses: ./.github/workflows/phan.yml secrets: inherit + needs: [pre-commit] with: gh_event: ${{ github.event_name }} phpstan: @@ -19,7 +20,7 @@ jobs: with: gh_event: ${{ github.event_name }} windows-ci: - needs: [pre-commit, phan] + needs: [pre-commit, phan, phpstan] secrets: inherit uses: ./.github/workflows/windows-ci.yml with: From 6065b605d43ce4f37094d90dddb4c0eaf7ad653c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 13:41:03 +0100 Subject: [PATCH 082/110] Fix phpstan --- htdocs/asset/card.php | 2 +- htdocs/asset/class/assetdepreciationoptions.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/asset/card.php b/htdocs/asset/card.php index 6f89e4a3442..7bc0f6bab3e 100644 --- a/htdocs/asset/card.php +++ b/htdocs/asset/card.php @@ -188,7 +188,7 @@ if ($action == 'create') { print ''; } if (GETPOSTISSET('supplier_invoice_id')) { - $object->fields['supplier_invoice_id'] = array('type' => 'integer:FactureFournisseur:fourn/class/fournisseur.facture.class.php:1:entity IN (__SHARED_ENTITIES__)', 'label' => 'SupplierInvoice', 'enabled' => '1', 'noteditable' => '1', 'position' => 280, 'notnull' => 0, 'visible' => 1, 'index' => 1, 'validate' => '1',); + $object->fields['supplier_invoice_id'] = array('type' => 'integer:FactureFournisseur:fourn/class/fournisseur.facture.class.php:1:entity IN (__SHARED_ENTITIES__)', 'label' => 'SupplierInvoice', 'enabled' => '1', 'noteditable' => 1, 'position' => 280, 'notnull' => 0, 'visible' => 1, 'index' => 1, 'validate' => '1',); print ''; } diff --git a/htdocs/asset/class/assetdepreciationoptions.class.php b/htdocs/asset/class/assetdepreciationoptions.class.php index e11ecfb9321..9657eb669b7 100644 --- a/htdocs/asset/class/assetdepreciationoptions.class.php +++ b/htdocs/asset/class/assetdepreciationoptions.class.php @@ -179,7 +179,7 @@ class AssetDepreciationOptions extends CommonObject $this->{$field_key} = $this->deprecation_options[$mode][$field_key] ?? null; } - $this->fields['rowid'] = array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => '1', 'position' => 1, 'notnull' => 1, 'visible' => 0, 'noteditable' => '1', 'index' => 1, 'css' => 'left', 'comment' => "Id"); + $this->fields['rowid'] = array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => '1', 'position' => 1, 'notnull' => 1, 'visible' => 0, 'noteditable' => 1, 'index' => 1, 'css' => 'left', 'comment' => "Id"); if (empty($class_type)) { $this->fields['fk_asset'] = array('type' => 'integer:Asset:asset/class/asset.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label' => 'Asset', 'enabled' => '1', 'position' => 0, 'notnull' => 0, 'visible' => 0, 'index' => 1, 'validate' => '1',); } else { From 16fcb19072e2cd9544d650851df264474ce7f70c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 13:42:03 +0100 Subject: [PATCH 083/110] Fix phpstan --- htdocs/asset/class/asset.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/asset/class/asset.class.php b/htdocs/asset/class/asset.class.php index 35fb04647dd..eae77489859 100644 --- a/htdocs/asset/class/asset.class.php +++ b/htdocs/asset/class/asset.class.php @@ -355,12 +355,12 @@ class Asset extends CommonObject if ($res < 0) { return -1; } elseif ($res > 0) { - $this->fields['date_acquisition']['noteditable'] = '1'; - $this->fields['date_start']['noteditable'] = '1'; - $this->fields['acquisition_value_ht']['noteditable'] = '1'; - $this->fields['recovered_vat']['noteditable'] = '1'; - $this->fields['reversal_date']['noteditable'] = '1'; - $this->fields['reversal_amount_ht']['noteditable'] = '1'; + $this->fields['date_acquisition']['noteditable'] = 1; + $this->fields['date_start']['noteditable'] = 1; + $this->fields['acquisition_value_ht']['noteditable'] = 1; + $this->fields['recovered_vat']['noteditable'] = 1; + $this->fields['reversal_date']['noteditable'] = 1; + $this->fields['reversal_amount_ht']['noteditable'] = 1; } } return $result; From 6a89a906e0fdb6378b68c47c0dacde89bd996168 Mon Sep 17 00:00:00 2001 From: daGrumpf <64209003+daGrumpf-bxp@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:57:56 +0100 Subject: [PATCH 084/110] =?UTF-8?q?Correction=20suite=20PR#28448=20possibi?= =?UTF-8?q?lit=C3=A9=20de=20r=C3=A9utiliser=20des=20quantit=C3=A9=20d?= =?UTF-8?q?=C3=A9cimales=20(#31794)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 2b19f6e065373f12f64aa56b0015ee5d9e3b08e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 14:29:03 +0100 Subject: [PATCH 085/110] Trans --- htdocs/compta/prelevement/create.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php index 65f175f1c94..fe9494fb256 100644 --- a/htdocs/compta/prelevement/create.php +++ b/htdocs/compta/prelevement/create.php @@ -630,6 +630,7 @@ if ($resql) { print img_warning($langs->trans("IBANNotDefined")); } } else { + $langs->load("banks"); print img_warning($langs->trans("NoBankAccountDefined")); } print ''; @@ -650,6 +651,7 @@ if ($resql) { } } } else { + $langs->load("banks"); print img_warning($langs->trans("NoBankAccountDefined")); } } From 072683ffe7c52b605516ad3f4fdbb9da3b2ee98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 15:26:29 +0100 Subject: [PATCH 086/110] Update phpstan.neon.dist for branch 20.0 (#31795) * Update phpstan.neon.dist * Update phpstan.yml --------- Co-authored-by: Laurent Destailleur --- .github/workflows/phpstan.yml | 2 +- phpstan.neon.dist | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 83f070aba44..24a12cecd4b 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -43,7 +43,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - tools: phpstan, cs2pr + tools: phpstan:1, cs2pr extensions: calendar, json, imagick, gd, zip, mbstring, intl, opcache, imap, mysql, pgsql, sqlite3, ldap, xml, mcrypt diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 6b2dbf737ab..030b3a69a16 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -25,9 +25,9 @@ parameters: - htdocs/support/* analyse: - htdocs/includes/* - checkAlwaysTrueCheckTypeFunctionCall: false - checkAlwaysTrueInstanceof: false - checkAlwaysTrueStrictComparison: false + # checkAlwaysTrueCheckTypeFunctionCall: false + # checkAlwaysTrueInstanceof: false + # checkAlwaysTrueStrictComparison: false checkClassCaseSensitivity: true checkFunctionArgumentTypes: false checkFunctionNameCase: true @@ -62,7 +62,7 @@ parameters: - '#.*phan-var-force #' internalErrorsCountLimit: 50 cache: - nodesByFileCountMax: 512 + # nodesByFileCountMax: 512 nodesByStringCountMax: 512 reportUnmatchedIgnoredErrors: false universalObjectCratesClasses: From 8c0c033e49e62bc55d6bc6c4bfec2e7bba22039e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 15:27:26 +0100 Subject: [PATCH 087/110] add phpdoc in mailing modules (#31786) * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * test * test * test * test --- .github/workflows/phpstan_baseline.yml | 7 +- .pre-commit-config.yaml | 4 +- build/phpstan/phpstan-baseline.neon | 66 ------------------- htdocs/core/class/commonobject.class.php | 6 +- .../mailings/advthirdparties.modules.php | 25 +++++-- .../modules/mailings/contacts1.modules.php | 4 ++ .../mailings/eventorganization.modules.php | 20 ++++-- .../core/modules/mailings/fraise.modules.php | 7 +- .../modules/mailings/partnership.modules.php | 29 ++++++-- .../core/modules/mailings/pomme.modules.php | 25 +++++-- .../modules/mailings/thirdparties.modules.php | 23 ++++++- .../thirdparties_services_expired.modules.php | 22 ++++++- .../task/doc/doc_generic_task_odt.modules.php | 4 +- 13 files changed, 140 insertions(+), 102 deletions(-) diff --git a/.github/workflows/phpstan_baseline.yml b/.github/workflows/phpstan_baseline.yml index 54791225558..1ad3a0b49f7 100644 --- a/.github/workflows/phpstan_baseline.yml +++ b/.github/workflows/phpstan_baseline.yml @@ -1,9 +1,9 @@ -name: 'PHPStan' +name: 'PHPStan baseline' on: - # Every Monday we want to refresh the baseline + # Every Thursday we want to refresh the baseline schedule: - - cron: '0 6 * * 1' + - cron: '0 6 * * 4' # We want to be able to manually refresh the baseline too workflow_dispatch: @@ -61,6 +61,7 @@ jobs: commit_message: PHPStan > Update baseline target_branch: develop pr_create: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && 1 || 0 }} + # pr_create: 1 pr_title: PHPStan > Update baseline pr_reviewer: eldy pr_body: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 01430ba7212..e6953f04578 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - id: end-of-file-fixer # Check that there are no completely merged file conflicts - id: check-merge-conflict - stages: [commit, pre-rebase, pre-commit, pre-merge-commit] + stages: [pre-rebase, pre-commit, pre-merge-commit] # Check that files with shebangs have the executable bit set (in git) - id: check-executables-have-shebangs # Check that shell files are executables @@ -252,7 +252,7 @@ repos: rev: 3.1.0 hooks: - id: sqlfluff-lint - stages: [commit, manual] # manual needed for ci + stages: [pre-commit, manual] # manual needed for ci exclude: (?x)^ (dev/initdemo/mysqldump_.*\.sql |htdocs/core/menus/init_menu_auguria\.sql diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index ad46ed29a80..e198622d685 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -15450,18 +15450,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/import/import_xlsx.modules.php - - - message: '#^Property mailing_advthirdparties\:\:\$require_admin has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/advthirdparties.modules.php - - - - message: '#^Property mailing_advthirdparties\:\:\$require_module has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/advthirdparties.modules.php - - message: '#^Property mailing_contacts1\:\:\$require_admin has no type specified\.$#' identifier: missingType.property @@ -15522,60 +15510,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/mailings/modules_mailings.php - - - message: '#^Property mailing_partnership\:\:\$require_admin has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/partnership.modules.php - - - - message: '#^Property mailing_partnership\:\:\$require_module has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/partnership.modules.php - - - - message: '#^Property mailing_pomme\:\:\$require_admin has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/pomme.modules.php - - - - message: '#^Property mailing_pomme\:\:\$require_module has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/pomme.modules.php - - - - message: '#^Property mailing_thirdparties\:\:\$require_admin has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/thirdparties.modules.php - - - - message: '#^Property mailing_thirdparties\:\:\$require_module has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/thirdparties.modules.php - - - - message: '#^Property mailing_thirdparties_services_expired\:\:\$arrayofproducts has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/thirdparties_services_expired.modules.php - - - - message: '#^Property mailing_thirdparties_services_expired\:\:\$require_admin has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/thirdparties_services_expired.modules.php - - - - message: '#^Property mailing_thirdparties_services_expired\:\:\$require_module has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/thirdparties_services_expired.modules.php - - message: '#^Property mailing_xinputfile\:\:\$require_admin has no type specified\.$#' identifier: missingType.property diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index cc406277aef..e8a2c0986ff 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -571,19 +571,19 @@ abstract class CommonObject public $fk_account; /** - * @var string Public note + * @var ?string Public note * @see update_note() */ public $note_public; /** - * @var string Private note + * @var ?string Private note * @see update_note() */ public $note_private; /** - * @var string + * @var ?string * @deprecated Use $note_private instead. * @see $note_private */ diff --git a/htdocs/core/modules/mailings/advthirdparties.modules.php b/htdocs/core/modules/mailings/advthirdparties.modules.php index e7903ba6b36..8844c96a874 100644 --- a/htdocs/core/modules/mailings/advthirdparties.modules.php +++ b/htdocs/core/modules/mailings/advthirdparties.modules.php @@ -1,7 +1,8 @@ - * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2024 MDW +/* Copyright (C) 2005-2010 Laurent Destailleur + * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This file is an example to follow to add your own email selector inside * the Dolibarr email tool. @@ -26,11 +27,24 @@ include_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; */ class mailing_advthirdparties extends MailingTargets { + /** + * @var string name of mailing module + */ public $name = 'ThirdPartyAdvancedTargeting'; - // This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + + /** + * @var string This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + */ public $desc = "Third parties"; + + /** + * @var int + */ public $require_admin = 0; + /** + * @var string[] + */ public $require_module = array("none"); // This module should not be displayed as Selector in mailing /** @@ -38,6 +52,9 @@ class mailing_advthirdparties extends MailingTargets */ public $picto = 'company'; + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("societe")'; diff --git a/htdocs/core/modules/mailings/contacts1.modules.php b/htdocs/core/modules/mailings/contacts1.modules.php index 00229230540..e8eca88cf4f 100644 --- a/htdocs/core/modules/mailings/contacts1.modules.php +++ b/htdocs/core/modules/mailings/contacts1.modules.php @@ -3,6 +3,7 @@ * Copyright (C) 2005-2009 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,6 +40,9 @@ class mailing_contacts1 extends MailingTargets public $require_module = array("societe"); // Module mailing actif si modules require_module actifs public $require_admin = 0; // Module mailing actif pour user admin ou non + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("societe")'; /** diff --git a/htdocs/core/modules/mailings/eventorganization.modules.php b/htdocs/core/modules/mailings/eventorganization.modules.php index 444b8e8402b..528072d76e9 100644 --- a/htdocs/core/modules/mailings/eventorganization.modules.php +++ b/htdocs/core/modules/mailings/eventorganization.modules.php @@ -1,8 +1,9 @@ - * Copyright (C) 2005-2010 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2024 MDW +/* Copyright (C) 2018-2018 Andre Schild + * Copyright (C) 2005-2010 Laurent Destailleur + * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This file is an example to follow to add your own email selector inside * the Dolibarr email tool. @@ -31,15 +32,24 @@ class mailing_eventorganization extends MailingTargets public $name = 'AttendeesOfOrganizedEvent'; public $desc = "Attendees of an organized event"; + /** + * @var int + */ public $require_admin = 0; - public $require_module = array(); // This module allows to select by categories must be also enabled if category module is not activated + /** + * @var string[] This module allows to select by categories must be also enabled if category module is not activated + */ + public $require_module = array(); /** * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png */ public $picto = 'conferenceorbooth'; + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("eventorganization")'; diff --git a/htdocs/core/modules/mailings/fraise.modules.php b/htdocs/core/modules/mailings/fraise.modules.php index f8e72582e53..a551cebab49 100644 --- a/htdocs/core/modules/mailings/fraise.modules.php +++ b/htdocs/core/modules/mailings/fraise.modules.php @@ -1,8 +1,8 @@ * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2018-2023 Frédéric France - * Copyright (C) 2024 MDW + * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,6 +42,9 @@ class mailing_fraise extends MailingTargets public $require_module = array('adherent'); + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("member")'; /** diff --git a/htdocs/core/modules/mailings/partnership.modules.php b/htdocs/core/modules/mailings/partnership.modules.php index 0835fc313bd..cbfe9ec60a1 100644 --- a/htdocs/core/modules/mailings/partnership.modules.php +++ b/htdocs/core/modules/mailings/partnership.modules.php @@ -1,8 +1,9 @@ - * Copyright (C) 2005-2010 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2024 MDW +/* Copyright (C) 2018-2018 Andre Schild + * Copyright (C) 2005-2010 Laurent Destailleur + * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This file is an example to follow to add your own email selector inside * the Dolibarr email tool. @@ -27,12 +28,25 @@ include_once DOL_DOCUMENT_ROOT.'/core/modules/mailings/modules_mailings.php'; */ class mailing_partnership extends MailingTargets { - // This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + /** + * @var string name of mailing module + */ public $name = 'PartnershipThirdpartiesOrMembers'; + + /** + * @var string This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + */ public $desc = "Thirdparties or members included into a partnership program"; + /** + * @var int + */ public $require_admin = 0; + /** + * @var string[] + * + */ public $require_module = array('partnership'); // This module allows to select by categories must be also enabled if category module is not activated /** @@ -40,6 +54,9 @@ class mailing_partnership extends MailingTargets */ public $picto = 'partnership'; + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("partnership")'; @@ -50,7 +67,7 @@ class mailing_partnership extends MailingTargets */ public function __construct($db) { - global $conf, $langs; + global $langs; $langs->load('companies'); $this->db = $db; diff --git a/htdocs/core/modules/mailings/pomme.modules.php b/htdocs/core/modules/mailings/pomme.modules.php index eecf2411887..7597b2c2ce3 100644 --- a/htdocs/core/modules/mailings/pomme.modules.php +++ b/htdocs/core/modules/mailings/pomme.modules.php @@ -2,6 +2,7 @@ /* Copyright (C) 2005-2011 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,11 +32,25 @@ include_once DOL_DOCUMENT_ROOT.'/core/modules/mailings/modules_mailings.php'; */ class mailing_pomme extends MailingTargets { - public $name = 'DolibarrUsers'; // Identifiant du module mailing - // This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found - public $desc = 'Dolibarr users with emails'; // Libelle utilise si aucune traduction pour MailingModuleDescXXX ou XXX=name trouv�e - public $require_module = array(); // Module mailing actif si modules require_module actifs - public $require_admin = 1; // Module mailing actif pour user admin ou non + /** + * @var string name of mailing module + */ + public $name = 'DolibarrUsers'; + + /** + * @var string This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + */ + public $desc = 'Dolibarr users with emails'; // Libelle utilise si aucune traduction pour MailingModuleDescXXX ou XXX=name trouvée + + /** + * @var string[] Module mailing actif si modules require_module actifs + */ + public $require_module = array(); + + /** + * @var int Module mailing actif pour user admin ou non + */ + public $require_admin = 1; /** * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png diff --git a/htdocs/core/modules/mailings/thirdparties.modules.php b/htdocs/core/modules/mailings/thirdparties.modules.php index 51328c68620..583d0aec206 100644 --- a/htdocs/core/modules/mailings/thirdparties.modules.php +++ b/htdocs/core/modules/mailings/thirdparties.modules.php @@ -3,6 +3,7 @@ * Copyright (C) 2005-2010 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This file is an example to follow to add your own email selector inside * the Dolibarr email tool. @@ -25,13 +26,29 @@ include_once DOL_DOCUMENT_ROOT.'/core/modules/mailings/modules_mailings.php'; */ class mailing_thirdparties extends MailingTargets { + /** + * @var string name of mailing module + */ public $name = 'ThirdPartiesByCategories'; - // This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + + /** + * @var string This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + */ public $desc = "Third parties (by categories)"; + + /** + * @var int + */ public $require_admin = 0; - public $require_module = array("societe"); // This module allows to select by categories must be also enabled if category module is not activated + /** + * @var string[] This module allows to select by categories must be also enabled if category module is not activated + */ + public $require_module = array("societe"); + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("societe")'; /** @@ -47,7 +64,7 @@ class mailing_thirdparties extends MailingTargets */ public function __construct($db) { - global $conf, $langs; + global $langs; $langs->load("companies"); $this->db = $db; diff --git a/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php b/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php index 4a76510e55c..32154603dad 100644 --- a/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php +++ b/htdocs/core/modules/mailings/thirdparties_services_expired.modules.php @@ -1,6 +1,7 @@ * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This file is an example to follow to add your own email selector inside * the Dolibarr email tool. @@ -23,13 +24,29 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; */ class mailing_thirdparties_services_expired extends MailingTargets { + /** + * @var string name of mailing module + */ public $name = 'DolibarrContractsLinesExpired'; - // This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + + /** + * @var string This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found + */ public $desc = 'Third parties with expired contract\'s lines'; + + /** + * @var int + */ public $require_admin = 0; + /** + * @var string[] This module allows to select by categories must be also enabled if category module is not activated + */ public $require_module = array('contrat'); + /** + * @var string condition to enable module + */ public $enabled = 'isModEnabled("societe")'; /** @@ -37,6 +54,9 @@ class mailing_thirdparties_services_expired extends MailingTargets */ public $picto = 'company'; + /** + * @var array + */ public $arrayofproducts = array(); diff --git a/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php b/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php index aeb0576cc6f..a20c933500a 100644 --- a/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php +++ b/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php @@ -208,8 +208,8 @@ class doc_generic_task_odt extends ModelePDFTask 'task_public' => $task->public, 'task_date_start' => dol_print_date($task->date_start, 'day'), 'task_date_end' => dol_print_date($task->date_end, 'day'), - 'task_note_private' => $task->note_private, - 'task_note_public' => $task->note_public + 'task_note_private' => (string) $task->note_private, + 'task_note_public' => (string) $task->note_public ); // Retrieve extrafields From 1f0048576395342f404f802e3d56ffe5eaadd4ef Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 16:14:26 +0100 Subject: [PATCH 088/110] Doc --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index a2ac4e4213e..18080ab0b96 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1641,7 +1641,7 @@ function dol_sanitizeFileName($str, $newstr = '_', $unaccent = 1) /** * Clean a string to use it as a path name. Similar to dol_sanitizeFileName but accept / and \ chars. - * Replace also '--' and ' -' strings, they are used for parameters separation (Note: ' - ' is allowed). + * Replace also '--' and ' -' strings, they are used for parameters separation (Note: ' - ' and 'x-y' is allowed). * * @param string $str String to clean * @param string $newstr String to replace bad chars with From e30692cb55862b4687131c35ef3edd458b82a7be Mon Sep 17 00:00:00 2001 From: Ferran Marcet Date: Wed, 13 Nov 2024 16:17:08 +0100 Subject: [PATCH 089/110] Fix: Closed invoices are not considered as issued (#31789) * Fix: Grand total correction * Fix: Does not filter correctly by project contacts * Fix: Closed invoices are not considered as issued --------- Co-authored-by: Laurent Destailleur --- .../interface_20_modWorkflow_WorkflowManager.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php index a816a83a428..5f291b9e5bd 100644 --- a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php +++ b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php @@ -2,7 +2,7 @@ /* Copyright (C) 2010 Regis Houssin * Copyright (C) 2011-2017 Laurent Destailleur * Copyright (C) 2014 Marcos García - * Copyright (C) 2022 Ferran Marcet + * Copyright (C) 2022-2024 Ferran Marcet * Copyright (C) 2023 Alexandre Janniaux * Copyright (C) 2024 MDW * @@ -248,7 +248,7 @@ class InterfaceWorkflowManager extends DolibarrTriggers $totalHTInvoices = 0; $areAllInvoicesValidated = true; foreach ($orderLinked->linkedObjects['facture'] as $key => $invoice) { - if ($invoice->statut == Facture::STATUS_VALIDATED || $object->id == $invoice->id) { + if ($invoice->statut == Facture::STATUS_VALIDATED || $invoice->statut == Facture::STATUS_CLOSED || $object->id == $invoice->id) { $totalHTInvoices += (float) $invoice->total_ht; } else { $areAllInvoicesValidated = false; From 93f23fe452c20d75d87c220b5fdee1559f092534 Mon Sep 17 00:00:00 2001 From: thomas-Ngr Date: Wed, 13 Nov 2024 16:18:08 +0100 Subject: [PATCH 090/110] ODF : fix : escape specials chars in IF ELSE ENDIF $key (#31796) * ODF : fix : escape specials chars in IF ELSE ENDIF $key * fix missing brackets * add delimiter to preg_quote --------- Co-authored-by: Brice Werry --- htdocs/includes/odtphp/Segment.php | 4 ++-- htdocs/includes/odtphp/odf.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/odtphp/Segment.php b/htdocs/includes/odtphp/Segment.php index ca8797ba577..f8539e6187c 100644 --- a/htdocs/includes/odtphp/Segment.php +++ b/htdocs/includes/odtphp/Segment.php @@ -117,14 +117,14 @@ class Segment implements IteratorAggregate, Countable // Remove the IF tag $this->xml = str_replace('[!-- IF '.$key.' --]', '', $this->xml); // Remove everything between the ELSE tag (if it exists) and the ENDIF tag - $reg = '@(\[!--\sELSE\s' . $key . '\s--\](.*))?\[!--\sENDIF\s' . $key . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy + $reg = '@(\[!--\sELSE\s' . preg_quote($key, '@') . '\s--\](.*))?\[!--\sENDIF\s' . preg_quote($key, '@') . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy $this->xml = preg_replace($reg, '', $this->xml); } // Else the value is false, then two cases: no ELSE and we're done, or there is at least one place where there is an ELSE clause, then we replace it else { // Find all conditional blocks for this variable: from IF to ELSE and to ENDIF - $reg = '@\[!--\sIF\s' . $key . '\s--\](.*)(\[!--\sELSE\s' . $key . '\s--\](.*))?\[!--\sENDIF\s' . $key . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy + $reg = '@\[!--\sIF\s' . preg_quote($key, '@') . '\s--\](.*)(\[!--\sELSE\s' . preg_quote($key, '@') . '\s--\](.*))?\[!--\sENDIF\s' . preg_quote($key, '@') . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy preg_match_all($reg, $this->xml, $matches, PREG_SET_ORDER); foreach($matches as $match) { // For each match, if there is an ELSE clause, we replace the whole block by the value in the ELSE clause if (!empty($match[3])) $this->xml = str_replace($match[0], $match[3], $this->xml); diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index b780b550b6d..019d162be00 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -539,7 +539,8 @@ IMG; private function _parse($type='content') { // Search all tags fou into condition to complete $this->vars, so we will proceed all tests even if not defined - $reg='@\[!--\sIF\s([{}a-zA-Z0-9\.\,_]+)\s--\]@smU'; + $reg='@\[!--\sIF\s([\[\]{}a-zA-Z0-9\.\,_]+)\s--\]@smU'; + $matches = array(); preg_match_all($reg, $this->contentXml, $matches, PREG_SET_ORDER); //var_dump($this->vars);exit; @@ -564,7 +565,7 @@ IMG; // Remove the IF tag $this->contentXml = str_replace('[!-- IF '.$key.' --]', '', $this->contentXml); // Remove everything between the ELSE tag (if it exists) and the ENDIF tag - $reg = '@(\[!--\sELSE\s' . $key . '\s--\](.*))?\[!--\sENDIF\s' . $key . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy + $reg = '@(\[!--\sELSE\s' . preg_quote($key, '@') . '\s--\](.*))?\[!--\sENDIF\s' . preg_quote($key, '@') . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy $this->contentXml = preg_replace($reg, '', $this->contentXml); /*if ($sav != $this->contentXml) { @@ -578,7 +579,7 @@ IMG; //dol_syslog("Var ".$key." is not defined, we remove the IF, ELSE and ENDIF "); //$sav=$this->contentXml; // Find all conditional blocks for this variable: from IF to ELSE and to ENDIF - $reg = '@\[!--\sIF\s' . $key . '\s--\](.*)(\[!--\sELSE\s' . $key . '\s--\](.*))?\[!--\sENDIF\s' . $key . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy + $reg = '@\[!--\sIF\s' . preg_quote($key, '@') . '\s--\](.*)(\[!--\sELSE\s' . preg_quote($key, '@') . '\s--\](.*))?\[!--\sENDIF\s' . preg_quote($key, '@') . '\s--\]@smU'; // U modifier = all quantifiers are non-greedy preg_match_all($reg, $this->contentXml, $matches, PREG_SET_ORDER); foreach($matches as $match) { // For each match, if there is an ELSE clause, we replace the whole block by the value in the ELSE clause if (!empty($match[3])) $this->contentXml = str_replace($match[0], $match[3], $this->contentXml); From 3c10ef7acff04aba75b6ea95e0383cdc0d046e16 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 18:54:04 +0100 Subject: [PATCH 091/110] Debug v21 --- htdocs/includes/parsedown/Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/parsedown/Parsedown.php b/htdocs/includes/parsedown/Parsedown.php index 2a00db26087..b7777327658 100644 --- a/htdocs/includes/parsedown/Parsedown.php +++ b/htdocs/includes/parsedown/Parsedown.php @@ -894,7 +894,7 @@ class Parsedown # # Table - protected function blockTable($Line, ?array $Block = null) + protected function blockTable($Line, array $Block = null) { if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted'])) { From a3bea77898cb5dd1ca25a55d54cbcaaa8edafd93 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 19:27:02 +0100 Subject: [PATCH 092/110] Log --- htdocs/stripe/class/stripe.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index bc089e5d609..a76b244a69c 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -1011,7 +1011,9 @@ class Stripe extends CommonObject if ($num) { $obj = $this->db->fetch_object($resql); $cardref = $obj->stripe_card_ref; + dol_syslog(get_class($this)."::sepaStripe paymentmode=".$cardref); + if ($cardref) { try { if (empty($stripeacc)) { // If the Stripe connect account not set, we use common API usage From 2b26521e322f99588e8ef45ed3d8a9dd2118c9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 21:20:12 +0100 Subject: [PATCH 093/110] Fix typo in ChangeLog (#31802) --- ChangeLog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d46b3a112a..2e13f51fa5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,7 +13,7 @@ FIX: #30768 allocate the correct invoice_line_id to the element timespent (#3076 FIX: #30772 Accountancy document export - The project filter on expenses report don't work (#30824) FIX: #30836 FIX: #30960 show and search extrafields (#31026) -FIX: Add same security test whe nuploading files from API than from GUI (#31114) +FIX: Add same security test when uploading files from API than from GUI (#31114) FIX: ajaxik URL in ExpenseReport to load coef calculation (#30918) FIX: attached file on first page load (#30694) FIX: autoselect the fiscal period by default @@ -28,11 +28,11 @@ FIX: column position on PDF of payments FIX: const WORKFLOW_RECEPTION_CLASSIFY_NEWD_INVOICE (#31601) FIX: Debug extrafields for bank lines FIX: email templates for expense report not visible -FIX: Error message overwrited when a error occurs during update of product multilangs (#30841) +FIX: Error message overwritten when a error occurs during update of product multilangs (#30841) FIX: error return missing in mo creation when qty to consume is <= 0 (#31134) FIX: Extrafield following between rec invoice and classic invoice (#31445) FIX: Fatal error on create loan schedule (#30656) -FIX: Fix bug select columns and acces to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) +FIX: Fix bug select columns and access to the public ticket list from the public ticket card (case when we have connected to another client before, the track id stocked in session overwrite the new track id from the public ticket card) (#31000) FIX: fixed search filter for projects resetting when set to empty (#30902) FIX: if you call fetchLines several times, your $object->lines contains duplicates (#31167) FIX: If you have no stock of your product, an error is displayed when you delete the reception. (#31504) From 3cd1ab2c5e44c61fccda032b61ae40a2c85a7721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 21:20:27 +0100 Subject: [PATCH 094/110] Update windows-ci.yml for branch 20 (#31800) --- .github/workflows/windows-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index 50d9d4386f9..0343ec771b4 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -57,7 +57,7 @@ jobs: id: cache uses: actions/cache/restore@v4 env: - HASH: ${{ hashFiles('htdocs/install/**') }} + HASH: ${{ hashFiles('htdocs/install/**', 'htdocs/filefunc.inc.php') }} KEY_ROOT: ${{ matrix.os }}-${{ env.ckey }}-${{ matrix.php_version }} with: # See https://github.com/actions/cache/issues/1275#issuecomment-1925217178 @@ -72,7 +72,7 @@ jobs: ${{ env.KEY_ROOT }}-${{ env.HASH }}-${{ github.head_ref }}- ${{ env.KEY_ROOT }}-${{ env.HASH }}-${{ github.base_ref }}- ${{ env.KEY_ROOT }}-${{ env.HASH }}- - ${{ env.KEY_ROOT }}- + # ${{ env.KEY_ROOT }}- - name: Setup MariaDB uses: frederic34/setup-mariadb@v1 From e5320c2302d58bf5cf4cd0ba5250bee0047b62a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 21:21:15 +0100 Subject: [PATCH 095/110] fix phpstan (#31801) * fix phpstan * fix phpstan * fix phpstan * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc --- build/phpstan/phpstan-baseline.neon | 444 ------------------ dev/examples/zapier/package.json | 2 +- .../core/boxes/box_dolibarr_state_board.php | 10 +- htdocs/core/boxes/box_factures_imp.php | 12 +- .../core/class/commondocgenerator.class.php | 2 +- .../browser/default/frmactualfolder.php | 3 + .../browser/default/frmcreatefolder.php | 4 + .../browser/default/frmfolders.php | 3 + .../browser/default/frmresourceslist.php | 3 + .../browser/default/frmupload.php | 3 + .../core/modules/asset/mod_asset_standard.php | 4 +- htdocs/core/modules/modBookCal.class.php | 4 +- .../core/modules/modStockTransfer.class.php | 4 +- htdocs/core/modules/modWebhook.class.php | 2 +- htdocs/core/modules/modZapier.class.php | 2 +- .../modules/printing/printipp.modules.php | 4 +- .../product_batch/mod_lot_advanced.php | 2 +- .../mod_facture_fournisseur_cactus.php | 9 + test/phpunit/FactureTest.php | 10 +- test/phpunit/InventoryTest.php | 8 +- 20 files changed, 58 insertions(+), 477 deletions(-) diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index e198622d685..98753b00b96 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -2622,12 +2622,6 @@ parameters: count: 1 path: ../../htdocs/asset/class/asset.class.php - - - message: '#^Property Asset\:\:\$fields \(array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept non\-empty\-array\\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: ''1''\|int\<0, 1\>, default\?\: string, \.\.\.\}\>\.$#' - identifier: assign.propertyType - count: 6 - path: ../../htdocs/asset/class/asset.class.php - - message: '#^Property Asset\:\:\$status \(int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -4062,12 +4056,6 @@ parameters: count: 2 path: ../../htdocs/comm/action/class/actioncomm.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/comm/action/class/actioncomm.class.php - - message: '#^Right side of && is always true\.$#' identifier: booleanAnd.rightAlwaysTrue @@ -4824,24 +4812,6 @@ parameters: count: 2 path: ../../htdocs/comm/propal/class/propal.class.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/comm/propal/class/propal.class.php - - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/comm/propal/class/propal.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/comm/propal/class/propal.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -4920,12 +4890,6 @@ parameters: count: 1 path: ../../htdocs/comm/propal/class/propal.class.php - - - message: '#^Result of \|\| is always true\.$#' - identifier: booleanOr.alwaysTrue - count: 1 - path: ../../htdocs/comm/propal/class/propal.class.php - - message: '#^Right side of && is always true\.$#' identifier: booleanAnd.rightAlwaysTrue @@ -5268,24 +5232,6 @@ parameters: count: 2 path: ../../htdocs/commande/class/commande.class.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/commande/class/commande.class.php - - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/commande/class/commande.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/commande/class/commande.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -5334,12 +5280,6 @@ parameters: count: 1 path: ../../htdocs/commande/class/commande.class.php - - - message: '#^Result of \|\| is always true\.$#' - identifier: booleanOr.alwaysTrue - count: 1 - path: ../../htdocs/commande/class/commande.class.php - - message: '#^Right side of && is always true\.$#' identifier: booleanAnd.rightAlwaysTrue @@ -6552,24 +6492,6 @@ parameters: count: 3 path: ../../htdocs/compta/facture/class/facture.class.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 4 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 5 - path: ../../htdocs/compta/facture/class/facture.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/compta/facture/class/facture.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -6654,12 +6576,6 @@ parameters: count: 3 path: ../../htdocs/compta/facture/class/facture.class.php - - - message: '#^Result of \|\| is always true\.$#' - identifier: booleanOr.alwaysTrue - count: 2 - path: ../../htdocs/compta/facture/class/facture.class.php - - message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' identifier: empty.variable @@ -7842,18 +7758,6 @@ parameters: count: 1 path: ../../htdocs/compta/sociales/class/chargesociales.class.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php - - message: '#^Property PaymentSocialContribution\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -8250,12 +8154,6 @@ parameters: count: 4 path: ../../htdocs/compta/tva/card.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/compta/tva/class/paymentvat.class.php - - message: '#^Property PaymentVAT\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -8706,18 +8604,6 @@ parameters: count: 2 path: ../../htdocs/contact/class/contact.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/contact/class/contact.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/contact/class/contact.class.php - - message: '#^Property Contact\:\:\$email \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -8988,18 +8874,6 @@ parameters: count: 2 path: ../../htdocs/contrat/class/contrat.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/contrat/class/contrat.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/contrat/class/contrat.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -10542,12 +10416,6 @@ parameters: count: 1 path: ../../htdocs/core/class/comment.class.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, CommonObject\|stdClass given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/class/commondocgenerator.class.php - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, CommonObject given\.$#' identifier: argument.type @@ -12660,42 +12528,6 @@ parameters: count: 1 path: ../../htdocs/core/filemanagerdol/browser/default/browser.php - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../htdocs/core/filemanagerdol/browser/default/frmactualfolder.php - - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php - - - - message: '#^Variable \$langs might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php - - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../htdocs/core/filemanagerdol/browser/default/frmfolders.php - - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../htdocs/core/filemanagerdol/browser/default/frmresourceslist.php - - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../htdocs/core/filemanagerdol/browser/default/frmupload.php - - message: '#^Variable \$_FILES in isset\(\) always exists and is not nullable\.$#' identifier: isset.variable @@ -13842,12 +13674,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Asset given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php - - message: '#^Property pdf_standard_asset\:\:\$cols \(array\\) does not accept non\-empty\-array\\.$#' identifier: assign.propertyType @@ -14100,12 +13926,6 @@ parameters: count: 2 path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Commande given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -14160,12 +13980,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Commande given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - - message: '#^Parameter \#3 \$posy of method pdf_eratosthene\:\:drawInfoTable\(\) expects int, float given\.$#' identifier: argument.type @@ -14352,12 +14166,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Delivery given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php - - message: '#^Parameter \#3 \$posy of method pdf_storm\:\:_tableau_info\(\) expects int, float given\.$#' identifier: argument.type @@ -14496,12 +14304,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Expedition given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php - - message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float given\.$#' identifier: argument.type @@ -14742,12 +14544,6 @@ parameters: count: 6 path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - - message: '#^Parameter \#3 \$posy of method pdf_crabe\:\:_tableau_info\(\) expects int, float given\.$#' identifier: argument.type @@ -14808,12 +14604,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -15012,12 +14802,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -15462,18 +15246,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/mailings/contacts1.modules.php - - - message: '#^Property mailing_eventorganization\:\:\$require_admin has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/eventorganization.modules.php - - - - message: '#^Property mailing_eventorganization\:\:\$require_module has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/mailings/eventorganization.modules.php - - message: '#^Property mailing_fraise\:\:\$require_admin has no type specified\.$#' identifier: missingType.property @@ -16404,12 +16176,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Entrepot\|MouvementStock given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php - - message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#' identifier: argument.type @@ -16488,12 +16254,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Mo given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -16932,12 +16692,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Propal given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -16986,12 +16740,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Propal given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -17346,12 +17094,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, StockTransfer given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php - - message: '#^Parameter \#4 \$posy of method pdf_eagle_proforma\:\:drawTotalTable\(\) expects int, float given\.$#' identifier: argument.type @@ -17490,12 +17232,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, FactureFournisseur given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -17538,24 +17274,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php - - - message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixcreditnote has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php - - - - message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixdeposit has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php - - - - message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixinvoice has no type specified\.$#' - identifier: missingType.property - count: 1 - path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\, CommandeFournisseur given\.$#' identifier: argument.type @@ -17598,12 +17316,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, CommandeFournisseur given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -17862,12 +17574,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, SupplierProposal given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -17898,12 +17604,6 @@ parameters: count: 1 path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, SupplierProposal given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php - - message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#' identifier: argument.type @@ -19248,12 +18948,6 @@ parameters: count: 1 path: ../../htdocs/cron/class/cronjob.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 4 - path: ../../htdocs/cron/class/cronjob.class.php - - message: '#^Property Cronjob\:\:\$command \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -19698,12 +19392,6 @@ parameters: count: 5 path: ../../htdocs/don/class/paymentdonation.class.php - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/don/class/paymentdonation.class.php - - message: '#^Property PaymentDonation\:\:\$amount \(float\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -20742,18 +20430,6 @@ parameters: count: 1 path: ../../htdocs/expedition/class/expedition.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/expedition/class/expedition.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/expedition/class/expedition.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -21324,24 +21000,6 @@ parameters: count: 1 path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/expensereport/class/paymentexpensereport.class.php - - message: '#^Property PaymentExpenseReport\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -22182,18 +21840,6 @@ parameters: count: 2 path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/fourn/class/fournisseur.commande.class.php - - message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -25572,18 +25218,6 @@ parameters: count: 1 path: ../../htdocs/loan/class/loan.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/loan/class/loan.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../htdocs/loan/class/loan.class.php - - message: '#^Property Loan\:\:\$account_capital \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -25632,18 +25266,6 @@ parameters: count: 1 path: ../../htdocs/loan/class/loanschedule.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/loan/class/loanschedule.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/loan/class/loanschedule.class.php - - message: '#^Property LoanSchedule\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -25692,18 +25314,6 @@ parameters: count: 1 path: ../../htdocs/loan/class/paymentloan.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/loan/class/paymentloan.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/loan/class/paymentloan.class.php - - message: '#^Property PaymentLoan\:\:\$amount_capital \(float\|int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -26466,12 +26076,6 @@ parameters: count: 1 path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, MyObject given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php - - message: '#^Parameter \#3 \$tab_height of method pdf_standard_myobject\:\:_tableau\(\) expects int, float given\.$#' identifier: argument.type @@ -28128,18 +27732,6 @@ parameters: count: 1 path: ../../htdocs/product/class/product.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/product/class/product.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/product/class/product.class.php - - message: '#^Property Product\:\:\$accountancy_code_buy \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -30468,18 +30060,6 @@ parameters: count: 2 path: ../../htdocs/projet/class/task.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/projet/class/task.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/projet/class/task.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -32772,18 +32352,6 @@ parameters: count: 1 path: ../../htdocs/reception/class/reception.class.php - - - message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/reception/class/reception.class.php - - - - message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../htdocs/reception/class/reception.class.php - - message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -33432,12 +33000,6 @@ parameters: count: 1 path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php - - - message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, RecruitmentJobPosition given\.$#' - identifier: argument.type - count: 1 - path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php - - message: '#^Variable \$outputlangsbis might not be defined\.$#' identifier: variable.undefined @@ -33942,12 +33504,6 @@ parameters: count: 2 path: ../../htdocs/salaries/class/paymentsalary.class.php - - - message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../htdocs/salaries/class/paymentsalary.class.php - - message: '#^Property PaymentSalary\:\:\$amount \(float\) in isset\(\) is not nullable\.$#' identifier: isset.property diff --git a/dev/examples/zapier/package.json b/dev/examples/zapier/package.json index ef70b2af8fd..896c305761f 100644 --- a/dev/examples/zapier/package.json +++ b/dev/examples/zapier/package.json @@ -4,7 +4,7 @@ "description": "An app for connecting Dolibarr to the Zapier platform.", "repository": "Dolibarr/dolibarr", "homepage": "https://www.dolibarr.org/", - "author": "Frédéric France ", + "author": "Frédéric France ", "license": "BSD-3-Clause", "main": "index.js", "scripts": { diff --git a/htdocs/core/boxes/box_dolibarr_state_board.php b/htdocs/core/boxes/box_dolibarr_state_board.php index d5b47a101f9..13d563c60dc 100644 --- a/htdocs/core/boxes/box_dolibarr_state_board.php +++ b/htdocs/core/boxes/box_dolibarr_state_board.php @@ -1,9 +1,9 @@ - * Copyright (C) 2004-2010 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2015-2024 Frederic France - * Copyright (C) 2024 MDW +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2010 Laurent Destailleur + * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2015-2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php index cf4d4967a16..fb7e8f914ea 100644 --- a/htdocs/core/boxes/box_factures_imp.php +++ b/htdocs/core/boxes/box_factures_imp.php @@ -1,10 +1,10 @@ - * Copyright (C) 2004-2007 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2015-2019 Frederic France - * Copyright (C) 2024 MDW - * Copyright (C) 2024 Alexandre Spangaro +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2015-2024 Frédéric France + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Alexandre Spangaro * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index bb2dcaf25dd..6514a722bc1 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -1586,7 +1586,7 @@ abstract class CommonDocGenerator /** * display extrafields columns content * - * @param CommonObjectLine $object line of common object + * @param CommonObject|CommonObjectLine $object line of common object * @param Translate $outputlangs Output language * @param array $params array of additional parameters * @return string Html string diff --git a/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php b/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php index 1304afa1754..819d4ba69a7 100644 --- a/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php +++ b/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php @@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal // Load Dolibarr environment require '../../../../main.inc.php'; +/** + * @var Conf $conf + */ top_httphead(); diff --git a/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php b/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php index 3189ae92ee8..fa64d6fbc1d 100644 --- a/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php +++ b/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php @@ -23,6 +23,10 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal // Load Dolibarr environment require '../../../../main.inc.php'; +/** + * @var Conf $conf + * @var Translate $langs + */ $langs->load("ecm"); diff --git a/htdocs/core/filemanagerdol/browser/default/frmfolders.php b/htdocs/core/filemanagerdol/browser/default/frmfolders.php index b2ef70c2374..174ca34897a 100644 --- a/htdocs/core/filemanagerdol/browser/default/frmfolders.php +++ b/htdocs/core/filemanagerdol/browser/default/frmfolders.php @@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal // Load Dolibarr environment require '../../../../main.inc.php'; +/** + * @var Conf $conf + */ top_httphead(); diff --git a/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php b/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php index 560df302066..fdc551e9339 100644 --- a/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php +++ b/htdocs/core/filemanagerdol/browser/default/frmresourceslist.php @@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal // Load Dolibarr environment require '../../../../main.inc.php'; +/** + * @var Conf $conf + */ top_httphead(); diff --git a/htdocs/core/filemanagerdol/browser/default/frmupload.php b/htdocs/core/filemanagerdol/browser/default/frmupload.php index e5807bd41c7..17a2be8725b 100644 --- a/htdocs/core/filemanagerdol/browser/default/frmupload.php +++ b/htdocs/core/filemanagerdol/browser/default/frmupload.php @@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal // Load Dolibarr environment require '../../../../main.inc.php'; +/** + * @var Conf $conf + */ top_httphead(); diff --git a/htdocs/core/modules/asset/mod_asset_standard.php b/htdocs/core/modules/asset/mod_asset_standard.php index 90ea78e7027..d3db8afc832 100644 --- a/htdocs/core/modules/asset/mod_asset_standard.php +++ b/htdocs/core/modules/asset/mod_asset_standard.php @@ -2,8 +2,8 @@ /* Copyright (C) 2005-2010 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2022-2024 Frédéric France - * Copyright (C) 2022 Frédéric France - * Copyright (C) 2024 MDW + * Copyright (C) 2022 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/modules/modBookCal.class.php b/htdocs/core/modules/modBookCal.class.php index 43210e6dfe9..9bd1f57ca29 100644 --- a/htdocs/core/modules/modBookCal.class.php +++ b/htdocs/core/modules/modBookCal.class.php @@ -1,8 +1,8 @@ * Copyright (C) 2018-2019 Nicolas ZABOURI - * Copyright (C) 2019-2024 Frédéric France - * Copyright (C) 2024 MDW + * Copyright (C) 2019-2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/modules/modStockTransfer.class.php b/htdocs/core/modules/modStockTransfer.class.php index c797136b335..88cc66384f4 100644 --- a/htdocs/core/modules/modStockTransfer.class.php +++ b/htdocs/core/modules/modStockTransfer.class.php @@ -1,9 +1,9 @@ * Copyright (C) 2018-2019 Nicolas ZABOURI - * Copyright (C) 2019-2022 Frédéric France + * Copyright (C) 2019-2024 Frédéric France * Copyright (C) 2021 Gauthier VERDOL - * Copyright (C) 2024 MDW + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/modules/modWebhook.class.php b/htdocs/core/modules/modWebhook.class.php index 26ffcb1044b..c3a64bfd42d 100644 --- a/htdocs/core/modules/modWebhook.class.php +++ b/htdocs/core/modules/modWebhook.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2018-2019 Nicolas ZABOURI - * Copyright (C) 2019-2020 Frédéric France + * Copyright (C) 2019-2024 Frédéric France * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify diff --git a/htdocs/core/modules/modZapier.class.php b/htdocs/core/modules/modZapier.class.php index b732329f166..7f316917a61 100644 --- a/htdocs/core/modules/modZapier.class.php +++ b/htdocs/core/modules/modZapier.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2019 Frédéric France + * Copyright (C) 2019-2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/modules/printing/printipp.modules.php b/htdocs/core/modules/printing/printipp.modules.php index 88dd5f7efbb..2ea6a82d57d 100644 --- a/htdocs/core/modules/printing/printipp.modules.php +++ b/htdocs/core/modules/printing/printipp.modules.php @@ -1,7 +1,7 @@ - * Copyright (C) 2024 MDW + * Copyright (C) 2014-2024 Frédéric France + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/modules/product_batch/mod_lot_advanced.php b/htdocs/core/modules/product_batch/mod_lot_advanced.php index 91f68ac8a7f..35fa10f867e 100644 --- a/htdocs/core/modules/product_batch/mod_lot_advanced.php +++ b/htdocs/core/modules/product_batch/mod_lot_advanced.php @@ -3,7 +3,7 @@ * Copyright (C) 2004-2007 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2008 Raphael Bertrand (Resultic) - * Copyright (C) 2019 Frédéric France + * Copyright (C) 2019-2024 Frédéric France * Copyright (C) 2021 Christophe Battarel * Copyright (C) 2024 MDW * diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php index 5f57fc3d1fa..aa760b7c50d 100644 --- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php +++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php @@ -58,10 +58,19 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices */ public $name = 'Cactus'; + /** + * @var string + */ public $prefixinvoice = 'SI'; + /** + * @var string + */ public $prefixcreditnote = 'SA'; + /** + * @var string + */ public $prefixdeposit = 'SD'; diff --git a/test/phpunit/FactureTest.php b/test/phpunit/FactureTest.php index 2fc0bb6d67d..169ae9c5132 100644 --- a/test/phpunit/FactureTest.php +++ b/test/phpunit/FactureTest.php @@ -1,8 +1,8 @@ - * Copyright (C) 2018 Frédéric France - * Copyright (C) 2023 Alexandre Janniaux - * Copyright (C) 2024 MDW +/* Copyright (C) 2010 Laurent Destailleur + * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2023 Alexandre Janniaux + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,7 +36,7 @@ require_once dirname(__FILE__).'/CommonClassTest.class.php'; if (empty($user->id)) { print "Load permissions for admin user nb 1\n"; $user->fetch(1); - $user->getrights(); + $user->loadRights(); } $conf->global->MAIN_DISABLE_ALL_MAILS = 1; diff --git a/test/phpunit/InventoryTest.php b/test/phpunit/InventoryTest.php index 7761608d1a6..57b416ee04b 100644 --- a/test/phpunit/InventoryTest.php +++ b/test/phpunit/InventoryTest.php @@ -1,8 +1,8 @@ - * Copyright (C) 2018 Frédéric France - * Copyright (C) 2023 Alexandre Janniaux - * Copyright (C) 2024 MDW +/* Copyright (C) 2010 Laurent Destailleur + * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2023 Alexandre Janniaux + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by From 8443ec649d4ca0896114b78230c5d56e6a707ee2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 21:28:25 +0100 Subject: [PATCH 096/110] Fix phan --- htdocs/core/class/commondocgenerator.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index bb2dcaf25dd..c574c2be541 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -1586,10 +1586,10 @@ abstract class CommonDocGenerator /** * display extrafields columns content * - * @param CommonObjectLine $object line of common object - * @param Translate $outputlangs Output language - * @param array $params array of additional parameters - * @return string Html string + * @param CommonObject|CommonObjectLine $object line of common object + * @param Translate $outputlangs Output language + * @param array $params array of additional parameters + * @return string Html string */ public function getExtrafieldsInHtml($object, $outputlangs, $params = array()) { From 2b764e52b12b0239358a0bcff45a2e530a770c2c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 21:37:55 +0100 Subject: [PATCH 097/110] Add assertion on this test --- test/phpunit/AccountingAccountTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/phpunit/AccountingAccountTest.php b/test/phpunit/AccountingAccountTest.php index a7fb41157e3..5ed9dd36151 100644 --- a/test/phpunit/AccountingAccountTest.php +++ b/test/phpunit/AccountingAccountTest.php @@ -200,6 +200,9 @@ class AccountingAccountTest extends CommonClassTest print __METHOD__." date_start = ".dol_print_date($result['date_start'], 'dayhour', 'gmt')."\n"; print __METHOD__." date_end = ".dol_print_date($result['date_end'], 'dayhour', 'gmt')."\n"; + $this->assertArrayHasKey('date_start', $result); + $this->assertArrayHasKey('date_end', $result); + $result = getCurrentPeriodOfFiscalYear($db, $conf, null, 'gmt'); var_dump($result); @@ -207,6 +210,9 @@ class AccountingAccountTest extends CommonClassTest print __METHOD__." date_start = ".dol_print_date($result['date_start'], 'dayhour', 'gmt')."\n"; print __METHOD__." date_end = ".dol_print_date($result['date_end'], 'dayhour', 'gmt')."\n"; + $this->assertArrayHasKey('date_start', $result); + $this->assertArrayHasKey('date_end', $result); + return $result; } } From 7e283c29cf8875fa1404a328521ff34b1de5fe6b Mon Sep 17 00:00:00 2001 From: lamrani abdelwadoud Date: Wed, 13 Nov 2024 22:19:40 +0100 Subject: [PATCH 098/110] NEW funclionality to Clone user with permissions and categories (#29773) * first clone confirm * complete the cloning functionality * Fix phan error * Fix php phan errors * fix sanitized varible * Fix error CTI * variable undeclared * initialise variable --------- Co-authored-by: Laurent Destailleur --- htdocs/langs/en_US/errors.lang | 3 + htdocs/langs/en_US/users.lang | 5 ++ htdocs/user/card.php | 105 ++++++++++++++++++++++++++++++- htdocs/user/class/user.class.php | 84 ++++++++++++++++++++++++- 4 files changed, 195 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang index f16a3d46048..1c6073a0189 100644 --- a/htdocs/langs/en_US/errors.lang +++ b/htdocs/langs/en_US/errors.lang @@ -343,6 +343,9 @@ ErrorEndHourIsNull=End date field cannot be empty ErrorStartHourIsNull=Start date field cannot be empty ErrorTooManyLinesToProcessPleaseUseAMoreSelectiveFilter=Too many lines to process. Please use a more selective filter. ErrorEmptyValueForQty=Quantity cannot be zero. +ErrorNoCloneWithoutName=The new user must have a name +ErrorNoCloneWithoutEmail=The new user must have a email +ErrorUserClone=Error when clone categories user ErrorQtyOrderedLessQtyShipped = The quantity ordered cannot be less than the quantity shipped. ErrorVariousPaymentOnBankAccountWithADifferentCurrencyNotYetSupported=Error, creating a various payment on a bank account with a currency different than the currency of the company is not yet supported. ErrorStreamMustBeEnabled=The PHP stream %s is not available. Check your PHP modules and Dolibarr parameter $dolibarr_main_stream_to_disable. diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang index 0b5f9fb69db..6ccfc3b9f19 100644 --- a/htdocs/langs/en_US/users.lang +++ b/htdocs/langs/en_US/users.lang @@ -138,4 +138,9 @@ ExcludedByFilter=Non qualified by filters but shown to see its hierarchy UserEnabledDisabled=User status changed: %s AlternativeEmailForOAuth2=Alternative Email for OAuth2 login ErrorUpdateCanceledDueToDuplicatedUniqueValue=Error, The update was canceled because one of the pieces of data, that should be unique, already exists +NewNameUserClone=Full name of the new user +CloneUserRights=Clone the user's permissions +CloneCategoriesUser=Clone the user's categories +ConfirmUserClone=Are you sure you want to clone the user: %s? +NewEmailUserClone=Email address of the new user SocialNetworksUser=Social networks for user diff --git a/htdocs/user/card.php b/htdocs/user/card.php index f5eaa1b2318..83566e92ba2 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -771,6 +771,77 @@ if (empty($reshook)) { } } + if ($action == 'confirm_clone' && $confirm != 'yes') { + $action = ''; + } + if ($action == 'confirm_clone' && $confirm == 'yes' && $user->hasRight("user", "user", "write")) { + if (!GETPOST('clone_name')) { + setEventMessages($langs->trans('ErrorNoCloneWithoutName'), null, 'errors'); + } elseif (getDolGlobalString('USER_MAIL_REQUIRED') && !GETPOST('new_email')) { + setEventMessages($langs->trans('ErrorNoCloneWithoutEmail'), null, 'errors'); + } else { + if ($object->id > 0) { + $error = 0; + $clone = dol_clone($object, 1); + + $clone->id = 0; + $clone->email = (getDolGlobalString('USER_MAIL_REQUIRED') ? GETPOST('new_email', 'alphanohtml') : ''); + $clone->entity = 1; + $clone->api_key = ''; + + $parts = explode(' ', GETPOST('clone_name'), 2); + $clone->firstname = $parts[0]; + $clone->lastname = isset($parts[1]) ? $parts[1] : ''; + + $clone->login = substr($parts[0], 0, 1).$parts[1]; + + $db->begin(); + $clone->context['createfromclone'] = 'createfromclone'; + $id = $clone->create($user); + $refalreadyexists = 0; + if ($id > 0) { + if (GETPOST('clone_rights')) { + $result = $clone->cloneRights($object->id, $id); + } + + if (GETPOST('clone_categories')) { + $result = $clone->cloneCategories($object->id, $id); + if ($result < 1) { + setEventMessages($langs->trans('ErrorUserClone'), null, 'errors'); + setEventMessages($clone->error, $clone->errors, 'errors'); + $error++; + } + } + } else { + if ($clone->error == 'ErrorProductAlreadyExists') { + $refalreadyexists++; + $action = ""; + + $mesg = $langs->trans("ErrorProductAlreadyExists", $clone->ref); + $mesg .= ' ' . $langs->trans("ShowCardHere") . '.'; + setEventMessages($mesg, null, 'errors'); + } else { + setEventMessages(empty($clone->error) ? '' : $langs->trans($clone->error), $clone->errors, 'errors'); + } + $error++; + } + unset($clone->context['createfromclone']); + + if ($error) { + $db->rollback(); + } else { + $db->commit(); + $db->close(); + header("Location: " . $_SERVER["PHP_SELF"] . "?id=" . $id); + exit; + } + } else { + dol_print_error($db, $object->error, $object->errors); + } + } + $action = 'clone'; + } + // Actions to send emails $triggersendname = 'USER_SENTBYMAIL'; $paramname = 'id'; // Name of param key to open the card @@ -1538,7 +1609,29 @@ if ($action == 'create' || $action == 'adduserldap') { print $form->formconfirm($_SERVER['PHP_SELF']."?id=$object->id", $langs->trans("DeleteAUser"), $langs->trans("ConfirmDeleteUser", $object->login), "confirm_delete", '', 0, 1); } - // View mode + /** + * Confirmation clone + */ + if (($action == 'clone' && (empty($conf->use_javascript_ajax) || !empty($conf->dol_use_jmobile))) // Output when action = clone if jmobile or no js + || (!empty($conf->use_javascript_ajax) && empty($conf->dol_use_jmobile))) { // Always output when not jmobile nor js + // Define confirmation messages + $formquestionclone = array( + 'text' => $langs->trans("ConfirmClone"), + 0 => array('type' => 'text', 'name' => 'clone_name', 'label' => $langs->trans("NewNameUserClone"), 'morecss' => 'width200'), + 1 => array('type' => 'checkbox', 'name' => 'clone_rights', 'label' => $langs->trans("CloneUserRights"), 'value' => 0), + 2 => array('type' => 'checkbox', 'name' => 'clone_categories', 'label' => $langs->trans("CloneCategoriesProduct"), 'value' => 0), + ); + if (getDolGlobalString('USER_MAIL_REQUIRED')) { + $newElement = array('type' => 'text', 'name' => 'new_email', 'label' => $langs->trans("NewEmailUserClone"), 'morecss' => 'width200'); + array_splice($formquestionclone, 2, 0, array($newElement)); + } + print $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ToClone'), $langs->trans('ConfirmUserClone', $object->firstname.' '.$object->lastname), 'confirm_clone', $formquestionclone, 'yes', 'action-clone', 350, 600); + } + + + /* + * View mode + */ if ($action != 'edit') { print dol_get_fiche_head($head, 'user', $title, -1, 'user'); @@ -2039,6 +2132,16 @@ if ($action == 'create' || $action == 'adduserldap') { 'class' => 'classfortooltip' ) ); + //clone user + $cloneButtonId = ''; + $cloneUserUrl = ''; + + if (!empty($conf->use_javascript_ajax) && empty($conf->dol_use_jmobile)) { + $cloneUserUrl = ''; + $cloneButtonId = 'action-clone'; + } + print dolGetButtonAction($langs->trans('ToClone'), '', 'default', $cloneUserUrl, $cloneButtonId, $user->hasRight('user', 'user', 'write')); + if (getDolGlobalString('USER_PASSWORD_GENERATED') != 'none') { if ($object->status == $object::STATUS_DISABLED) { $params['attr']['title'] = $langs->trans('UserDisabled'); diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 80732291bd4..a230763a1ab 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1742,7 +1742,6 @@ class User extends CommonObject if (!isset($this->entity)) { $this->entity = $conf->entity; // If not defined, we use default value } - dol_syslog(get_class($this)."::create login=".$this->login.", user=".(is_object($user) ? $user->id : ''), LOG_DEBUG); $badCharUnauthorizedIntoLoginName = getDolGlobalString('MAIN_LOGIN_BADCHARUNAUTHORIZED', ',@<>"\''); @@ -4324,4 +4323,87 @@ class User extends CommonObject return $this->findUserIdByEmailCache[$email]; } + + /** + * Clone permissions of user + * @param int $fromId User ID from whom to clone rights + * @param int $toId User ID + * @return int Return integer<0 if KO, >0 if OK + */ + public function cloneRights($fromId, $toId) + { + if (empty($fromId) || empty($toId)) { + return -1; + } + + $this->db->begin(); + + // delete default rights for UserTo + $sqlDelete = "DELETE FROM ".$this->db->prefix()."user_rights"; + $sqlDelete .= " WHERE fk_user = ".((int) $toId); + + dol_syslog(get_class($this)."::clone_rights (delete default permissions)", LOG_DEBUG); + + if (!$this->db->query($sqlDelete)) { + $this->db->rollback(); + return -1; + } + + // Construction of the insertion request + $sql = "INSERT INTO ".$this->db->prefix()."user_rights (entity, fk_user, fk_id)"; + $sql .= " SELECT entity, ".((int) $toId).", fk_id"; + $sql .= " FROM ".$this->db->prefix()."user_rights src"; + $sql .= " WHERE fk_user = ".((int) $fromId); + $sql .= " AND NOT EXISTS ("; + $sql .= " SELECT 1"; + $sql .= " FROM ".$this->db->prefix()."user_rights dest"; + $sql .= " WHERE dest.entity = src.entity"; + $sql .= " AND dest.fk_user = ".((int) $toId); + $sql .= " AND dest.fk_id = src.fk_id"; + $sql .= " )"; + + dol_syslog(get_class($this)."::clone_rights", LOG_DEBUG); + + // Execute request + if (!$this->db->query($sql)) { + $this->db->rollback(); + return -1; + } + + $this->db->commit(); + return 1; + } + + /** + * Copy related categories to another object + * + * @param int $fromId Id user source + * @param int $toId Id user cible + * @param string $type Type of category ('user', ...) + * @return int Return integer < 0 if error, > 0 if ok + */ + public function cloneCategories($fromId, $toId, $type = 'user') + { + $this->db->begin(); + + if (empty($type)) { + $type = $this->table_element; + } + + require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; + $categorystatic = new Categorie($this->db); + + $sql = "INSERT INTO ".$this->db->prefix()."categorie_".(empty($categorystatic->MAP_CAT_TABLE[$type]) ? $type : $categorystatic->MAP_CAT_TABLE[$type])." (fk_categorie, fk_user)"; + $sql .= " SELECT fk_categorie, ".((int) $toId)." FROM ".$this->db->prefix()."categorie_".(empty($categorystatic->MAP_CAT_TABLE[$type]) ? $type : $categorystatic->MAP_CAT_TABLE[$type]); + $sql .= " WHERE fk_user = ".((int) $fromId); + + if (!$this->db->query($sql)) { + $this->error = $this->db->lasterror(); + $this->db->rollback(); + return -1; + } + + $this->db->commit(); + return 1; + } } From c845cc337c7d8186e57ee4444b2210a1daee621d Mon Sep 17 00:00:00 2001 From: accellier-dev Date: Thu, 14 Nov 2024 02:57:31 +0530 Subject: [PATCH 099/110] Fixed: #30976 (#30979) * Fixed: #30976 * Update odf.php --------- Co-authored-by: Pratush Raj --- htdocs/includes/odtphp/odf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index 2f6ce236cda..4b70d54e93e 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -925,7 +925,7 @@ IMG; if (!empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) { $name=preg_replace('/\.od(x|t)/i', '', $name); header('Content-type: application/pdf'); - header('Content-Disposition: attachment; filename="'.$name.'.pdf"'); + header('Content-Disposition: attachment; filename="'.basename($name).'.pdf"'); readfile($name.".pdf"); } } From e20d1f08960865e869f76d025025369cf691c607 Mon Sep 17 00:00:00 2001 From: atm-jonathan <146709163+atm-jonathan@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:36:26 +0100 Subject: [PATCH 100/110] NEW multiselect search_sale in list societe (#29110) * multiselect commerciaux * retour Wysy * retour pr * retour PR * retour PR * retour PR * retour PR * retour PR * retour PR * count > 0 * GETPOSTISARRAY() $search_sale * pre-commit --------- Co-authored-by: Laurent Destailleur --- htdocs/core/class/html.form.class.php | 1 - htdocs/societe/list.php | 35 ++++++++++++++++++++------- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index ab6f9fdf462..c471ea18b23 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -9228,7 +9228,6 @@ class Form public static function multiselectarray($htmlname, $array, $selected = array(), $key_in_label = 0, $value_as_key = 0, $morecss = '', $translate = 0, $width = 0, $moreattrib = '', $elemtype = '', $placeholder = '', $addjscombo = -1) { global $conf, $langs; - $out = ''; if ($addjscombo < 0) { diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 5dafaa0b4c6..35731af11f2 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -107,7 +107,11 @@ $search_idprof4 = trim(GETPOST('search_idprof4', 'alpha')); $search_idprof5 = trim(GETPOST('search_idprof5', 'alpha')); $search_idprof6 = trim(GETPOST('search_idprof6', 'alpha')); $search_vat = trim(GETPOST('search_vat', 'alpha')); -$search_sale = GETPOSTINT("search_sale"); +if (GETPOSTISARRAY('search_sale')) { + $search_sale = GETPOST('search_sale', 'array:int'); +} elseif (GETPOSTISSET('search_sale')) { + $search_sale = array(GETPOSTINT('search_sale')); +} $search_categ_cus = GETPOSTINT("search_categ_cus"); $search_categ_sup = GETPOSTINT("search_categ_sup"); $searchCategoryCustomerOperator = GETPOSTINT('search_category_customer_operator'); @@ -605,11 +609,21 @@ if (!$user->hasRight('fournisseur', 'lire')) { $sql .= " AND (s.fournisseur <> 1 OR s.client <> 0)"; // client=0, fournisseur=0 must be visible } // Search on sale representative -if ($search_sale && $search_sale != '-1') { - if ($search_sale == -2) { +if (!empty($search_sale) && $search_sale != '-1') { + $search_sale_req = array_filter($search_sale, function (string $value): bool { + $value = intval($value); + return $value >= 0; + }); + + $search_sale_req = implode(',', $search_sale_req); + + if (count($search_sale) == 1 && in_array('-2', $search_sale)) { $sql .= " AND NOT EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = s.rowid)"; - } elseif ($search_sale > 0) { - $sql .= " AND EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = s.rowid AND sc.fk_user = ".((int) $search_sale).")"; + } elseif (count($search_sale) > 0 && !in_array('-2', $search_sale)) { + $sql .= " AND EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = s.rowid AND sc.fk_user IN (".$db->sanitize($search_sale_req)."))"; + } elseif (count($search_sale) > 0 && in_array('-2', $search_sale)) { + $sql .= " AND (EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = s.rowid AND sc.fk_user IN (".$db->sanitize($search_sale_req)."))"; + $sql .= " OR NOT EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = s.rowid))"; } } @@ -856,7 +870,6 @@ $sql .= $db->order($sortfield, $sortorder); if ($limit) { $sql .= $db->plimit($limit + 1, $offset); } - $resql = $db->query($sql); if (!$resql) { dol_print_error($db); @@ -935,8 +948,10 @@ foreach ($searchCategoryCustomerList as $searchCategoryCustomer) { foreach ($searchCategorySupplierList as $searchCategorySupplier) { $param .= "&search_category_supplier_list[]=".urlencode($searchCategorySupplier); } -if ($search_sale > 0) { - $param .= '&search_sale='.((int) $search_sale); +if (is_array($search_sale)) { + foreach ($search_sale as $sale_id) { + $param .= '&search_sale[]=' . urlencode($sale_id); + } } if ($search_id > 0) { $param .= "&search_id=".((int) $search_id); @@ -1258,11 +1273,13 @@ if (empty($type) || $type == 'f') { } // If the user can view prospects other than his' +$userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, 'AND u.statut = 1', 0, '', '', 0, 1); +$userlist[-2] = $langs->trans("NoSalesRepresentativeAffected"); if ($user->hasRight("societe", "client", "voir") || $socid) { $moreforfilter .= '
'; $tmptitle = $langs->trans('SalesRepresentatives'); $moreforfilter .= img_picto($tmptitle, 'user', 'class="pictofixedwidth"'); - $moreforfilter .= $formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, $langs->trans('SalesRepresentatives'), ($conf->dol_optimize_smallscreen ? 'maxwidth200' : 'maxwidth300'), 1); + $moreforfilter .= $form->multiselectarray('search_sale', $userlist, $search_sale, 0, 0, '', 0, 300, '', '', $langs->trans('SalesRepresentatives'), 1); $moreforfilter .= '
'; } if (!empty($moreforfilter)) { From 2c4d1038d00fb7fb4581f568c1328aead4220236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 22:37:17 +0100 Subject: [PATCH 101/110] fix phpstan (#31805) * fix * fix * fix * fix * fix --- build/phpstan/phpstan-baseline.neon | 6 ------ htdocs/accountancy/bookkeeping/export.php | 6 +++--- htdocs/adherents/list.php | 11 ++++------- htdocs/compta/paiement/rapport.php | 2 +- .../core/modules/contract/doc/pdf_strato.modules.php | 4 ++-- 5 files changed, 10 insertions(+), 19 deletions(-) diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon index 98753b00b96..e8a67614512 100644 --- a/build/phpstan/phpstan-baseline.neon +++ b/build/phpstan/phpstan-baseline.neon @@ -7296,12 +7296,6 @@ parameters: count: 1 path: ../../htdocs/compta/paiement/list.php - - - message: '#^Right side of && is always true\.$#' - identifier: booleanAnd.rightAlwaysTrue - count: 1 - path: ../../htdocs/compta/paiement/rapport.php - - message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' identifier: greater.alwaysFalse diff --git a/htdocs/accountancy/bookkeeping/export.php b/htdocs/accountancy/bookkeeping/export.php index 16af1560704..67a6155ef7c 100644 --- a/htdocs/accountancy/bookkeeping/export.php +++ b/htdocs/accountancy/bookkeeping/export.php @@ -487,9 +487,9 @@ if (empty($reshook)) { // Mass actions $objectclass = 'Bookkeeping'; $objectlabel = 'Bookkeeping'; - $permissiontoread = $user->hasRight('societe', 'lire'); - $permissiontodelete = $user->hasRight('societe', 'supprimer'); - $permissiontoadd = $user->hasRight('societe', 'creer'); + $permissiontoread = ($user->hasRight('societe', 'lire') == 1); + $permissiontodelete = ($user->hasRight('societe', 'supprimer') == 1); + $permissiontoadd = ($user->hasRight('societe', 'creer') == 1); $uploaddir = $conf->societe->dir_output; include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php'; } diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index dea345e776d..8769e9916cc 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -235,9 +235,10 @@ if (!GETPOST('confirmmassaction', 'alpha') && $massaction != 'presend' && $massa $massaction = ''; } -$permissiontoread = 0; -$permissiontodelete = 0; -$permissiontoadd = 0; +$permissiontoread = ($user->hasRight('adherent', 'lire') == 1); +$permissiontodelete = ($user->hasRight('adherent', 'supprimer') == 1); +$permissiontoadd = ($user->hasRight('adherent', 'creer') == 1); +$uploaddir = $conf->adherent->dir_output; $error = 0; $parameters = array('socid' => isset($socid) ? $socid : null, 'arrayfields' => &$arrayfields); @@ -387,10 +388,6 @@ if (empty($reshook)) { // Mass actions $objectclass = 'Adherent'; $objectlabel = 'Members'; - $permissiontoread = $user->hasRight('adherent', 'lire'); - $permissiontodelete = $user->hasRight('adherent', 'supprimer'); - $permissiontoadd = $user->hasRight('adherent', 'creer'); - $uploaddir = $conf->adherent->dir_output; include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php'; } diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index 5c3d9959154..735dcaa5db3 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -64,7 +64,7 @@ if (!$user->hasRight('facture', 'lire')) { accessforbidden(); } -$permissiontoread = $user->hasRight('facture', 'lire'); +$permissiontoread = ($user->hasRight('facture', 'lire') == 1); /* diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php index 3a7b80f0e9d..658a1104a31 100644 --- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php +++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php @@ -163,7 +163,7 @@ class pdf_strato extends ModelePDFContract $outputlangs->loadLangs(array("main", "dict", "companies", "contracts", "compta")); // Show Draft Watermark - if ($object->statut == $object::STATUS_DRAFT && (getDolGlobalString('CONTRACT_DRAFT_WATERMARK'))) { + if ($object->status == $object::STATUS_DRAFT && (getDolGlobalString('CONTRACT_DRAFT_WATERMARK'))) { $this->watermark = getDolGlobalString('CONTRACT_DRAFT_WATERMARK'); } @@ -672,7 +672,7 @@ class pdf_strato extends ModelePDFContract $pdf->SetTextColor(0, 0, 60); $title = $outputlangs->transnoentities($titlekey); $title .= ' '.$outputlangs->convToOutputCharset($object->ref); - if ($object->statut == $object::STATUS_DRAFT) { + if ($object->status == $object::STATUS_DRAFT) { $pdf->SetTextColor(128, 0, 0); $title .= ' - '.$outputlangs->transnoentities("NotValidated"); } From 1f2bb2969a1de0b7690f0d1be247486db3a9fe7f Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:41:00 +0200 Subject: [PATCH 102/110] NEW: PDF Invoice show vat analysis per rate (#31381) * Show vat analysis * Show vat analysis * Show vat analysis * fix white space * Update main.lang * Show vat analysis * Show vat analysis * add copyright * fix pre-commit * fix pre-commit * fix pre-commit * fix php-stan (8.2) * fix php-stan (8.2) * fix php-stan (8.2) * fix pre-commit tab * Update pdf_other.php --------- Co-authored-by: Laurent Destailleur --- htdocs/admin/pdf_other.php | 39 +++-- .../modules/facture/doc/pdf_crabe.modules.php | 133 +++++++++++--- .../facture/doc/pdf_octopus.modules.php | 162 ++++++++++++----- .../facture/doc/pdf_sponge.modules.php | 163 +++++++++++++----- htdocs/langs/en_US/admin.lang | 1 + htdocs/langs/en_US/main.lang | 2 + 6 files changed, 377 insertions(+), 123 deletions(-) diff --git a/htdocs/admin/pdf_other.php b/htdocs/admin/pdf_other.php index dd552151738..8b9badab823 100644 --- a/htdocs/admin/pdf_other.php +++ b/htdocs/admin/pdf_other.php @@ -6,7 +6,7 @@ * Copyright (C) 2019 Ferran Marcet * Copyright (C) 2021-2024 Anthony Berton * Copyright (C) 2022 Alexandre Spangaro - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 Frédéric France * Copyright (C) 2024 Nick Fragoulis * * This program is free software; you can redistribute it and/or modify @@ -128,6 +128,20 @@ if ($action == 'update') { dolibarr_set_const($db, "INVOICE_SHOW_SHIPPING_ADDRESS", GETPOSTINT("INVOICE_SHOW_SHIPPING_ADDRESS"), 'chaine', 0, '', $conf->entity); dolibarr_del_const($db, "INVOICE_SHOW_SHIPPING_ADDRESS", $conf->entity); } + if (GETPOSTISSET('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + dolibarr_set_const($db, "PDF_INVOICE_SHOW_VAT_ANALYSIS", GETPOSTINT("PDF_INVOICE_SHOW_VAT_ANALYSIS"), 'chaine', 0, '', $conf->entity); + dolibarr_del_const($db, "PDF_INVOICE_SHOW_VAT_ANALYSIS", $conf->entity); + } + if (GETPOSTISSET('BARCODE_ON_SHIPPING_PDF')) { + dolibarr_set_const($db, "BARCODE_ON_SHIPPING_PDF", GETPOSTINT("BARCODE_ON_SHIPPING_PDF"), 'chaine', 0, '', $conf->entity); + } + if (GETPOSTISSET('BARCODE_ON_RECEPTION_PDF')) { + dolibarr_set_const($db, "BARCODE_ON_RECEPTION_PDF", GETPOSTINT("BARCODE_ON_RECEPTION_PDF"), 'chaine', 0, '', $conf->entity); + } + if (GETPOSTISSET('BARCODE_ON_STOCKTRANSFER_PDF')) { + dolibarr_set_const($db, "BARCODE_ON_STOCKTRANSFER_PDF", GETPOSTINT("BARCODE_ON_STOCKTRANSFER_PDF"), 'chaine', 0, '', $conf->entity); + } + // Terms of sale if ($_FILES['termsofsale']["name"]) { if (!preg_match('/(\.pdf)$/i', $_FILES['termsofsale']["name"])) { // Document can be used on a lot of different places. Only pdf can be supported. @@ -143,16 +157,6 @@ if ($action == 'update') { } } - if (GETPOSTISSET('BARCODE_ON_SHIPPING_PDF')) { - dolibarr_set_const($db, "BARCODE_ON_SHIPPING_PDF", GETPOSTINT("BARCODE_ON_SHIPPING_PDF"), 'chaine', 0, '', $conf->entity); - } - if (GETPOSTISSET('BARCODE_ON_RECEPTION_PDF')) { - dolibarr_set_const($db, "BARCODE_ON_RECEPTION_PDF", GETPOSTINT("BARCODE_ON_RECEPTION_PDF"), 'chaine', 0, '', $conf->entity); - } - if (GETPOSTISSET('BARCODE_ON_STOCKTRANSFER_PDF')) { - dolibarr_set_const($db, "BARCODE_ON_STOCKTRANSFER_PDF", GETPOSTINT("BARCODE_ON_STOCKTRANSFER_PDF"), 'chaine', 0, '', $conf->entity); - } - setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup"); @@ -437,6 +441,19 @@ if (isModEnabled('invoice')) { } print ''; + /* too late to have it enabled by default in v21 + print ''; + print $form->textwithpicto($langs->trans("PDF_INVOICE_SHOW_VAT_ANALYSIS"), ''); + print ''; + if ($conf->use_javascript_ajax) { + print ajax_constantonoff('PDF_INVOICE_SHOW_VAT_ANALYSIS'); + } else { + $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes")); + print $form->selectarray("PDF_INVOICE_SHOW_VAT_ANALYSIS", $arrval, $conf->global->PDF_INVOICE_SHOW_VAT_ANALYSIS); + } + print ''; + */ + /* Keep this option hidden for the moment to avoid options inflation. We'll see later if it is used enough... print ''; print $form->textwithpicto($langs->trans("SUPPLIER_PROPOSAL_ADD_BILLING_CONTACT"), $langs->trans("SUPPLIER_PROPOSAL_ADD_BILLING_CONTACTMore")); diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 255aa356a73..6594616134b 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -796,10 +796,17 @@ class pdf_crabe extends ModelePDFFactures } $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete $vatcode = $object->lines[$i]->vat_src_code; - if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) { - $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0; + if (getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['tot_ht'])) { + $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['tot_ht'] = 0; + } + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate'=>$vatrate, 'vatcode'=>$vatcode, 'amount'=> $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne, 'tot_ht'=> $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['tot_ht'] + $object->lines[$i]->total_ht); + } else { + if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) { + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0; + } + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate' => $vatrate, 'vatcode' => $vatcode, 'amount' => $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne); } - $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate' => $vatrate, 'vatcode' => $vatcode, 'amount' => $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne); if ($posYAfterImage > $posYAfterDescription) { $nexY = $posYAfterImage; @@ -1161,6 +1168,65 @@ class pdf_crabe extends ModelePDFFactures $pdf->SetFont('', '', $default_font_size - 1); + krsort($this->tva_array); + + // Show VAT details + if ($object->total_tva != 0 && getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + $pdf->SetFillColor(224, 224, 224); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche, $posy); + $titre = $outputlangs->transnoentities("VAT"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 25, $posy); + $titre = $outputlangs->transnoentities("NetTotal"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 50, $posy); + $titre = $outputlangs->transnoentities("VATAmount"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 75, $posy); + $titre = $outputlangs->transnoentities("AmountTotal"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $posy = $pdf->GetY(); + $tot_ht = 0; + $tot_tva = 0; + $tot_ttc = 0; + + foreach ($this->tva_array as $tvakey => $tvaval) { + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche, $posy); + $titre = round((float) $tvakey, 2) . "%"; + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 25, $posy); + $titre = price($tvaval['tot_ht']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_ht += $tvaval['tot_ht']; + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 50, $posy); + $titre = price($tvaval['amount']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_tva += $tvaval['amount']; + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 75, $posy); + $titre = price($tvaval['tot_ht'] + $tvaval['amount']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_ttc += ($tvaval['tot_ht'] + $tvaval['amount']); + + $posy = $pdf->GetY(); + } + } + // If France, show VAT mention if not applicable if ($this->emetteur->country_code == 'FR' && empty($mysoc->tva_assuj)) { $pdf->SetFont('', 'B', $default_font_size - 2); @@ -1456,6 +1522,16 @@ class pdf_crabe extends ModelePDFFactures $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); $pdf->MultiCell($largcol2, $tab2_hl, price($sign * ($total_ht + (!empty($object->remise) ? $object->remise : 0)), 0, $outputlangs), 0, 'R', 1); + if (getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + $index++; + $pdf->SetFillColor(255, 255, 255); + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $outputlangs->transnoentities("TotalVAT"), 0, 'L', 1); + + $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($largcol2, $tab2_hl, price($sign * $object->total_tva), 0, 'R', 1); + } + // Show VAT by rates and total $pdf->SetFillColor(248, 248, 248); @@ -1542,34 +1618,35 @@ class pdf_crabe extends ModelePDFFactures } } - // VAT - foreach ($this->tva_array as $tvakey => $tvaval) { - if ($tvakey != 0) { // On affiche pas taux 0 - $this->atleastoneratenotnull++; + if (!getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + // VAT + foreach ($this->tva_array as $tvakey => $tvaval) { + if ($tvakey != 0) { // On affiche pas taux 0 + $this->atleastoneratenotnull++; - $index++; - $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + $index++; + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); - $tvacompl = ''; - if (preg_match('/\*/', $tvakey)) { - $tvakey = str_replace('*', '', $tvakey); - $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; + $tvacompl = ''; + if (preg_match('/\*/', $tvakey)) { + $tvakey = str_replace('*', '', $tvakey); + $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; + } + $totalvat = $outputlangs->transcountrynoentities("TotalVAT", $mysoc->country_code).(is_object($outputlangsbis) ? ' / '.$outputlangsbis->transcountrynoentities("TotalVAT", $mysoc->country_code) : ''); + $totalvat .= ' '; + if (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'rateonly') { + $totalvat .= vatrate($tvaval['vatrate'], true).$tvacompl; + } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'codeonly') { + $totalvat .= $tvaval['vatcode'].$tvacompl; + } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'nocodenorate') { + $totalvat .= $tvacompl; + } else { + $totalvat .= vatrate($tvaval['vatrate'], true).($tvaval['vatcode'] ? ' ('.$tvaval['vatcode'].')' : '').$tvacompl; + } + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $totalvat, 0, 'L', 1); + $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($largcol2, $tab2_hl, price(price2num($tvaval['amount'], 'MT'), 0, $outputlangs), 0, 'R', 1); } - $totalvat = $outputlangs->transcountrynoentities("TotalVAT", $mysoc->country_code).(is_object($outputlangsbis) ? ' / '.$outputlangsbis->transcountrynoentities("TotalVAT", $mysoc->country_code) : ''); - $totalvat .= ' '; - if (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'rateonly') { - $totalvat .= vatrate($tvaval['vatrate'], true).$tvacompl; - } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'codeonly') { - $totalvat .= $tvaval['vatcode'].$tvacompl; - } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'nocodenorate') { - $totalvat .= $tvacompl; - } else { - $totalvat .= vatrate($tvaval['vatrate'], true).($tvaval['vatcode'] ? ' ('.$tvaval['vatcode'].')' : '').$tvacompl; - } - $pdf->MultiCell($col2x - $col1x, $tab2_hl, $totalvat, 0, 'L', 1); - - $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); - $pdf->MultiCell($largcol2, $tab2_hl, price(price2num($tvaval['amount'], 'MT'), 0, $outputlangs), 0, 'R', 1); } } diff --git a/htdocs/core/modules/facture/doc/pdf_octopus.modules.php b/htdocs/core/modules/facture/doc/pdf_octopus.modules.php index 9ec9d52a63e..8559501ab01 100644 --- a/htdocs/core/modules/facture/doc/pdf_octopus.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_octopus.modules.php @@ -1042,10 +1042,17 @@ class pdf_octopus extends ModelePDFFactures } $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete $vatcode = $object->lines[$i]->vat_src_code; - if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) { - $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0; + if (getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['tot_ht'])) { + $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['tot_ht'] = 0; + } + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate'=>$vatrate, 'vatcode'=>$vatcode, 'amount'=> $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne, 'tot_ht'=> $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['tot_ht'] + $object->lines[$i]->total_ht); + } else { + if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) { + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0; + } + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate' => $vatrate, 'vatcode' => $vatcode, 'amount' => $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne); } - $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate' => $vatrate, 'vatcode' => $vatcode, 'amount' => $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne); $nexY = max($nexY, $posYAfterImage); @@ -1328,6 +1335,65 @@ class pdf_octopus extends ModelePDFFactures $pdf->SetFont('', '', $default_font_size - 1); + krsort($this->tva_array); + + // Show VAT details + if ($object->total_tva != 0 && getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + $pdf->SetFillColor(224, 224, 224); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche, $posy); + $titre = $outputlangs->transnoentities("VAT"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 25, $posy); + $titre = $outputlangs->transnoentities("NetTotal"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 50, $posy); + $titre = $outputlangs->transnoentities("VATAmount"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 75, $posy); + $titre = $outputlangs->transnoentities("AmountTotal"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $posy = $pdf->GetY(); + $tot_ht = 0; + $tot_tva = 0; + $tot_ttc = 0; + + foreach ($this->tva_array as $tvakey => $tvaval) { + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche, $posy); + $titre = round((float) $tvakey, 2) . "%"; + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 25, $posy); + $titre = price($tvaval['tot_ht']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_ht += $tvaval['tot_ht']; + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 50, $posy); + $titre = price($tvaval['amount']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_tva += $tvaval['amount']; + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 75, $posy); + $titre = price($tvaval['tot_ht'] + $tvaval['amount']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_ttc += ($tvaval['tot_ht'] + $tvaval['amount']); + + $posy = $pdf->GetY(); + } + } + // If France, show VAT mention if not applicable if ($this->emetteur->country_code == 'FR' && empty($mysoc->tva_assuj)) { $pdf->SetFont('', 'B', $default_font_size - 2); @@ -1617,6 +1683,16 @@ class pdf_octopus extends ModelePDFFactures $pdf->MultiCell($largcol2, $tab2_hl, price($total_ht - $remise, 0, $outputlangs), 0, 'R', 1); } + if (getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + $index++; + $pdf->SetFillColor(255, 255, 255); + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $outputlangs->transnoentities("TotalVAT"), 0, 'L', 1); + + $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($largcol2, $tab2_hl, price($sign * $object->total_tva), 0, 'R', 1); + } + // Show VAT by rates and total $pdf->SetFillColor(248, 248, 248); @@ -1704,49 +1780,51 @@ class pdf_octopus extends ModelePDFFactures } //} - // VAT - $tvas = array(); - $nblines = count($object->lines); - for ($i = 0; $i < $nblines; $i++) { - $tvaligne = $object->lines[$i]->total_tva; - $vatrate = (string) $object->lines[$i]->tva_tx; + if (!getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + // VAT + $tvas = array(); + $nblines = count($object->lines); + for ($i = 0; $i < $nblines; $i++) { + $tvaligne = $object->lines[$i]->total_tva; + $vatrate = (string) $object->lines[$i]->tva_tx; - if (($object->lines[$i]->info_bits & 0x01) == 0x01) { - $vatrate .= '*'; - } - if (! isset($tvas[$vatrate])) { - $tvas[$vatrate] = 0; - } - $tvas[$vatrate] += $tvaligne; - } - - foreach ($tvas as $tvakey => $tvaval) { - if ($tvakey != 0) { // On affiche pas taux 0 - $this->atleastoneratenotnull++; - - $index++; - $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); - - $tvacompl = ''; - if (preg_match('/\*/', $tvakey)) { - $tvakey = str_replace('*', '', $tvakey); - $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; + if (($object->lines[$i]->info_bits & 0x01) == 0x01) { + $vatrate .= '*'; } - $totalvat = $outputlangs->transcountrynoentities("TotalVAT", $mysoc->country_code).(is_object($outputlangsbis) ? ' / '.$outputlangsbis->transcountrynoentities("TotalVAT", $mysoc->country_code) : ''); - $totalvat .= ' '; - if (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'rateonly') { - $totalvat .= vatrate($tvaval['vatrate'], 1).$tvacompl; - } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'codeonly') { - $totalvat .= $tvaval['vatcode'].$tvacompl; - } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'nocodenorate') { - $totalvat .= $tvacompl; - } else { - $totalvat .= vatrate($tvaval['vatrate'], 1).($tvaval['vatcode'] ? ' ('.$tvaval['vatcode'].')' : '').$tvacompl; + if (! isset($tvas[$vatrate])) { + $tvas[$vatrate] = 0; } - $pdf->MultiCell($col2x - $col1x, $tab2_hl, $totalvat, 0, 'L', 1); + $tvas[$vatrate] += $tvaligne; + } - $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); - $pdf->MultiCell($largcol2, $tab2_hl, price(price2num($tvaval['amount'], 'MT'), 0, $outputlangs), 0, 'R', 1); + foreach ($tvas as $tvakey => $tvaval) { + if ($tvakey != 0) { // On affiche pas taux 0 + $this->atleastoneratenotnull++; + + $index++; + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + + $tvacompl = ''; + if (preg_match('/\*/', $tvakey)) { + $tvakey = str_replace('*', '', $tvakey); + $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; + } + $totalvat = $outputlangs->transcountrynoentities("TotalVAT", $mysoc->country_code).(is_object($outputlangsbis) ? ' / '.$outputlangsbis->transcountrynoentities("TotalVAT", $mysoc->country_code) : ''); + $totalvat .= ' '; + if (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'rateonly') { + $totalvat .= vatrate($tvaval['vatrate'], 1).$tvacompl; + } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'codeonly') { + $totalvat .= $tvaval['vatcode'].$tvacompl; + } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'nocodenorate') { + $totalvat .= $tvacompl; + } else { + $totalvat .= vatrate($tvaval['vatrate'], 1).($tvaval['vatcode'] ? ' ('.$tvaval['vatcode'].')' : '').$tvacompl; + } + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $totalvat, 0, 'L', 1); + + $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($largcol2, $tab2_hl, price(price2num($tvaval['amount'], 'MT'), 0, $outputlangs), 0, 'R', 1); + } } } diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index 9a361ab0ce4..7fb66eb5ae3 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -1,18 +1,19 @@ - * Copyright (C) 2005-2012 Regis Houssin - * Copyright (C) 2008 Raphael Bertrand - * Copyright (C) 2010-2014 Juanjo Menent - * Copyright (C) 2012 Christophe Battarel - * Copyright (C) 2012 Cédric Salvador - * Copyright (C) 2012-2014 Raphaël Doursenaud - * Copyright (C) 2015 Marcos García - * Copyright (C) 2017 Ferran Marcet - * Copyright (C) 2018-2024 Frédéric France - * Copyright (C) 2021-2024 Anthony Berton - * Copyright (C) 2022-2024 Alexandre Spangaro - * Copyright (C) 2024 MDW - * Copyright (C) 2024 Nick Fragoulis +/* Copyright (C) 2004-2024 Laurent Destailleur + * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2008 Raphael Bertrand + * Copyright (C) 2010-2014 Juanjo Menent + * Copyright (C) 2012 Christophe Battarel + * Copyright (C) 2012 Cédric Salvador + * Copyright (C) 2012-2014 Raphaël Doursenaud + * Copyright (C) 2015 Marcos García + * Copyright (C) 2017 Ferran Marcet + * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2018-2024 Anthony Berton + * Copyright (C) 2022-2024 Alexandre Spangaro + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Nick Fragoulis + * Copyright (C) 2024 Franck Moreau * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -961,10 +962,17 @@ class pdf_sponge extends ModelePDFFactures } $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete $vatcode = $object->lines[$i]->vat_src_code; - if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) { - $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0; + if (getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['tot_ht'])) { + $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['tot_ht'] = 0; + } + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate'=>$vatrate, 'vatcode'=>$vatcode, 'amount'=> $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne, 'tot_ht'=> $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['tot_ht'] + $object->lines[$i]->total_ht); + } else { + if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) { + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0; + } + $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate' => $vatrate, 'vatcode' => $vatcode, 'amount' => $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne); } - $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')] = array('vatrate' => $vatrate, 'vatcode' => $vatcode, 'amount' => $this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] + $tvaligne); $nexY = max($nexY, $posYAfterImage); @@ -1260,6 +1268,65 @@ class pdf_sponge extends ModelePDFFactures $pdf->SetFont('', '', $default_font_size - 1); + krsort($this->tva_array); + + // Show VAT details + if ($object->total_tva != 0 && getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + $pdf->SetFillColor(224, 224, 224); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche, $posy); + $titre = $outputlangs->transnoentities("VAT"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 25, $posy); + $titre = $outputlangs->transnoentities("NetTotal"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 50, $posy); + $titre = $outputlangs->transnoentities("VATAmount"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 75, $posy); + $titre = $outputlangs->transnoentities("AmountTotal"); + $pdf->MultiCell(25, 4, $titre, 0, 'L', true); + + $posy = $pdf->GetY(); + $tot_ht = 0; + $tot_tva = 0; + $tot_ttc = 0; + + foreach ($this->tva_array as $tvakey => $tvaval) { + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche, $posy); + $titre = round((float) $tvakey, 2) . "%"; + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 25, $posy); + $titre = price($tvaval['tot_ht']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_ht += $tvaval['tot_ht']; + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 50, $posy); + $titre = price($tvaval['amount']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_tva += $tvaval['amount']; + + $pdf->SetFont('', '', $default_font_size - 2); + $pdf->SetXY($this->marge_gauche + 75, $posy); + $titre = price($tvaval['tot_ht'] + $tvaval['amount']); + $pdf->MultiCell(25, 4, $titre, 0, 'L'); + $tot_ttc += ($tvaval['tot_ht'] + $tvaval['amount']); + + $posy = $pdf->GetY(); + } + } + // If France, show VAT mention if not applicable if ($this->emetteur->country_code == 'FR' && empty($mysoc->tva_assuj)) { $pdf->SetFont('', '', $default_font_size - 2); @@ -1711,6 +1778,16 @@ class pdf_sponge extends ModelePDFFactures $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); $pdf->MultiCell($largcol2, $tab2_hl, price($sign * ($total_ht + (!empty($object->remise) ? $object->remise : 0)), 0, $outputlangs), 0, 'R', 1); + if (getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + $index++; + $pdf->SetFillColor(255, 255, 255); + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $outputlangs->transnoentities("TotalVAT"), 0, 'L', 1); + + $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($largcol2, $tab2_hl, price($sign * $object->total_tva), 0, 'R', 1); + } + // Show VAT by rates and total $pdf->SetFillColor(248, 248, 248); @@ -1821,34 +1898,36 @@ class pdf_sponge extends ModelePDFFactures } } - // VAT - foreach ($this->tva_array as $tvakey => $tvaval) { - if ($tvakey != 0) { // On affiche pas taux 0 - $this->atleastoneratenotnull++; + if (!getDolGlobalInt('PDF_INVOICE_SHOW_VAT_ANALYSIS')) { + // VAT + foreach ($this->tva_array as $tvakey => $tvaval) { + if ($tvakey != 0) { // On affiche pas taux 0 + $this->atleastoneratenotnull++; - $index++; - $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + $index++; + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); - $tvacompl = ''; - if (preg_match('/\*/', $tvakey)) { - $tvakey = str_replace('*', '', $tvakey); - $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; + $tvacompl = ''; + if (preg_match('/\*/', $tvakey)) { + $tvakey = str_replace('*', '', $tvakey); + $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; + } + $totalvat = $outputlangs->transcountrynoentities("TotalVAT", $mysoc->country_code).(is_object($outputlangsbis) ? ' / '.$outputlangsbis->transcountrynoentities("TotalVAT", $mysoc->country_code) : ''); + $totalvat .= ' '; + if (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'rateonly') { + $totalvat .= vatrate($tvaval['vatrate'], 1).$tvacompl; + } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'codeonly') { + $totalvat .= $tvaval['vatcode'].$tvacompl; + } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'nocodenorate') { + $totalvat .= $tvacompl; + } else { + $totalvat .= vatrate($tvaval['vatrate'], 1).($tvaval['vatcode'] ? ' ('.$tvaval['vatcode'].')' : '').$tvacompl; + } + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $totalvat, 0, 'L', 1); + + $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($largcol2, $tab2_hl, price(price2num($tvaval['amount'], 'MT'), 0, $outputlangs), 0, 'R', 1); } - $totalvat = $outputlangs->transcountrynoentities("TotalVAT", $mysoc->country_code).(is_object($outputlangsbis) ? ' / '.$outputlangsbis->transcountrynoentities("TotalVAT", $mysoc->country_code) : ''); - $totalvat .= ' '; - if (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'rateonly') { - $totalvat .= vatrate($tvaval['vatrate'], 1).$tvacompl; - } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'codeonly') { - $totalvat .= $tvaval['vatcode'].$tvacompl; - } elseif (getDolGlobalString('PDF_VAT_LABEL_IS_CODE_OR_RATE') == 'nocodenorate') { - $totalvat .= $tvacompl; - } else { - $totalvat .= vatrate($tvaval['vatrate'], 1).($tvaval['vatcode'] ? ' ('.$tvaval['vatcode'].')' : '').$tvacompl; - } - $pdf->MultiCell($col2x - $col1x, $tab2_hl, $totalvat, 0, 'L', 1); - - $pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index); - $pdf->MultiCell($largcol2, $tab2_hl, price(price2num($tvaval['amount'], 'MT'), 0, $outputlangs), 0, 'R', 1); } } diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 93102fb68a0..fc741b99509 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -2579,6 +2579,7 @@ CaptchaDesc=If you want to protect your login page with a Captcha, you can choos DolibarrStandardCaptcha=A native captcha generated by Dolibarr SALES_ORDER_SHOW_SHIPPING_ADDRESS=Show shipping address SALES_ORDER_SHOW_SHIPPING_ADDRESSMore=Compulsory indication in some countries (France, ...) +PDF_INVOICE_SHOW_VAT_ANALYSIS=Show vat analysis per rate MaxNbOfRecordOnListIsOk=You have a max size for lists is set to %s lines. This is a good value. YouHaveALargeAmountOfRecordOnLists=You have a default max size for lists set to %s lines. This is a large value that need scrolling to see all answers. It is better to have a value lower than %s and use pagination to see record over this number. Change this in menu Home - Setup - Display. RoundBorders=Round borders diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index ba2c0596421..41860b95bbd 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -1317,6 +1317,8 @@ NbRecordQualified=Number of qualified records auto=auto UploadFile=Direct import of document OrClickToSelectAFile=or click to select a file on disk +NetTotal=Net total +VATAmount=VAT amount TotalDiscount=Total discount TotalHTBeforeDiscount=Total net before discount Contains=Contains From 439741d145846077a7d4b4585857f911d0a58776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:44:14 +0100 Subject: [PATCH 103/110] NEW : add fichinter category - define new table (#31234) * New ; add fichinter categories * Create llx_categorie_fichinter.key.sql * Update 20.0.0-21.0.0.sql * Rename llx_categorie_fichinter.key.sql to llx_categorie_fichinter-fichinter.key.sql * Rename llx_categorie_fichinter.sql to llx_categorie_fichinter-fichinter.sql --------- Co-authored-by: Laurent Destailleur --- .../install/mysql/migration/20.0.0-21.0.0.sql | 15 +++++++++++ .../llx_categorie_fichinter-fichinter.key.sql | 26 ++++++++++++++++++ .../llx_categorie_fichinter-fichinter.sql | 27 +++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.key.sql create mode 100644 htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.sql diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index 5281bc760f1..c67c210e06b 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -32,6 +32,20 @@ -- -- VPGSQL8.2 SELECT dol_util_rebuild_sequences(); +-- new fichinter categorie +create table llx_categorie_fichinter +( + fk_categorie integer NOT NULL, + fk_fichinter integer NOT NULL, + import_key varchar(14) +)ENGINE=innodb; + +ALTER TABLE llx_categorie_fichinter ADD PRIMARY KEY pk_categorie_fichinter (fk_categorie, fk_fichinter); +ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_categorie (fk_categorie); +ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_fichinter (fk_fichinter); +ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); +ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_fk_fichinter FOREIGN KEY (fk_fichinter) REFERENCES llx_fichinter (rowid); + -- Clean very old temporary tables (created during v9 migration or repair) DROP TABLE tmp_llx_accouting_account; @@ -331,3 +345,4 @@ INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ALTER TABLE llx_facture_rec ADD COLUMN fk_societe_rib integer DEFAULT NULL; ALTER TABLE llx_facture ADD COLUMN is_also_delivery_note tinyint DEFAULT 0 NOT NULL; + diff --git a/htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.key.sql b/htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.key.sql new file mode 100644 index 00000000000..4659805efb9 --- /dev/null +++ b/htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.key.sql @@ -0,0 +1,26 @@ +-- ============================================================================ +-- Copyright (C) 2012 Laurent Destailleur +-- Copyright (C) 2012 Regis Houssin +-- Copyright (C) 2023-2024 Charlene Benke +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- ============================================================================ + +ALTER TABLE llx_categorie_fichinter ADD PRIMARY KEY pk_categorie_fichinter (fk_categorie, fk_fichinter); +ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_categorie (fk_categorie); +ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_fichinter (fk_fichinter); + +ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); +ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_fk_fichinter FOREIGN KEY (fk_fichinter) REFERENCES llx_fichinter (rowid); diff --git a/htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.sql b/htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.sql new file mode 100644 index 00000000000..89158976c25 --- /dev/null +++ b/htdocs/install/mysql/tables/llx_categorie_fichinter-fichinter.sql @@ -0,0 +1,27 @@ +-- ============================================================================ +-- Copyright (C) 2005 Brice Davoleau +-- Copyright (C) 2005 Matthieu Valleton +-- Copyright (C) 2012 Juanjo Menent +-- Copyright (C) 2024 Charlene Benke +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- ============================================================================ + +create table llx_categorie_fichinter +( + fk_categorie integer NOT NULL, + fk_fichinter integer NOT NULL, + import_key varchar(14) +)ENGINE=innodb; From aa5f526ae182e25c4baa37d41a2ae6cf918d75c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Nov 2024 22:57:07 +0100 Subject: [PATCH 104/110] fix link if subdirectory to remove contains numbers (#31797) * fix link if subdirectory to remove contains numbers * Update ecmfiles.class.php --- htdocs/ecm/class/ecmfiles.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ecm/class/ecmfiles.class.php b/htdocs/ecm/class/ecmfiles.class.php index 45a27366028..cb94fad5e2e 100644 --- a/htdocs/ecm/class/ecmfiles.class.php +++ b/htdocs/ecm/class/ecmfiles.class.php @@ -1007,7 +1007,7 @@ class EcmFiles extends CommonObject } if ($option) { - $url = DOL_URL_ROOT.'/document.php?modulepart='.$option.'&file='.urlencode(preg_replace('/[a-zA-Z]+\//', '', $this->filepath).'/'.$this->filename).'&entity='.$this->entity; + $url = DOL_URL_ROOT.'/document.php?modulepart='.$option.'&file='.urlencode(preg_replace('/^[^\/]+\//', '', $this->filepath).'/'.$this->filename).'&entity='.$this->entity; } else { $url = DOL_URL_ROOT.'/ecm/file_card.php?id='.$this->id; } From e259ffb2a0a4f1e0cc67c8b20ff9263a3d7f8e4d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 23:10:18 +0100 Subject: [PATCH 105/110] Clean code --- .../install/mysql/migration/20.0.0-21.0.0.sql | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index c67c210e06b..922cd4e5254 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -32,20 +32,6 @@ -- -- VPGSQL8.2 SELECT dol_util_rebuild_sequences(); --- new fichinter categorie -create table llx_categorie_fichinter -( - fk_categorie integer NOT NULL, - fk_fichinter integer NOT NULL, - import_key varchar(14) -)ENGINE=innodb; - -ALTER TABLE llx_categorie_fichinter ADD PRIMARY KEY pk_categorie_fichinter (fk_categorie, fk_fichinter); -ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_categorie (fk_categorie); -ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_fichinter (fk_fichinter); -ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_fk_fichinter FOREIGN KEY (fk_fichinter) REFERENCES llx_fichinter (rowid); - -- Clean very old temporary tables (created during v9 migration or repair) DROP TABLE tmp_llx_accouting_account; @@ -65,6 +51,23 @@ ALTER TABLE llx_hrm_evaluation MODIFY COLUMN modelpdf varchar(255) DEFAULT NULL; -- V21 migration +CREATE TABLE llx_categorie_fichinter +( + fk_categorie integer NOT NULL, + fk_fichinter integer NOT NULL, + import_key varchar(14) +)ENGINE=innodb; + +-- VMYSQL4.3 ALTER TABLE llx_categorie_fichinter ADD PRIMARY KEY pk_categorie_fichinter(fk_categorie, fk_fichinter); +-- VPGSQL8.2 ALTER TABLE llx_categorie_fichinter ADD PRIMARY KEY pk_categorie_fichinter (fk_categorie, fk_fichinter); + +ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_categorie (fk_categorie); +ALTER TABLE llx_categorie_fichinter ADD INDEX idx_categorie_fichinter_fk_fichinter (fk_fichinter); + +ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); +ALTER TABLE llx_categorie_fichinter ADD CONSTRAINT fk_categorie_fichinter_fk_fichinter FOREIGN KEY (fk_fichinter) REFERENCES llx_fichinter (rowid); + + ALTER TABLE llx_blockedlog DROP INDEX entity_action; ALTER TABLE llx_blockedlog ADD INDEX entity_rowid (entity, rowid); @@ -345,4 +348,3 @@ INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ALTER TABLE llx_facture_rec ADD COLUMN fk_societe_rib integer DEFAULT NULL; ALTER TABLE llx_facture ADD COLUMN is_also_delivery_note tinyint DEFAULT 0 NOT NULL; - From 185c703c64e36f96f8deab5c17c0694e4361aae7 Mon Sep 17 00:00:00 2001 From: Anthony Damhet <73399671+EchoLoGeek@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:15:52 +0100 Subject: [PATCH 106/110] NEW Reminder Mail by Adherent Type (#30142) * Reminder Mail by Adherent Type In order to restrict the sending of emails only to this type of member * String to Int --------- Co-authored-by: Laurent Destailleur --- htdocs/adherents/class/adherent.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index a113d6f0970..63ec5e4c772 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -3028,9 +3028,10 @@ class Adherent extends CommonObject * CAN BE A CRON TASK * * @param string $daysbeforeendlist Nb of days before end of subscription (negative number = after subscription). Can be a list of delay, separated by a semicolon, for example '10;5;0;-5' + * @param int $fk_adherent_type Type of Member (In order to restrict the sending of emails only to this type of member) * @return int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK) */ - public function sendReminderForExpiredSubscription($daysbeforeendlist = '10') + public function sendReminderForExpiredSubscription($daysbeforeendlist = '10', $fk_adherent_type = 0) { global $conf, $langs, $mysoc, $user; @@ -3075,6 +3076,9 @@ class Adherent extends CommonObject $sql .= " WHERE entity = ".((int) $conf->entity); // Do not use getEntity('adherent').")" here, we want the batch to be on its entity only; $sql .= " AND statut = 1"; $sql .= " AND datefin = '".$this->db->idate($datetosearchfor)."'"; + if ((int) $fk_adherent_type > 0) { + $sql .= " AND fk_adherent_type = ".((int) $fk_adherent_type); + } //$sql .= " LIMIT 10000"; $resql = $this->db->query($sql); From c8dd1fbd72959e04300c1d2a89e5165028b90f46 Mon Sep 17 00:00:00 2001 From: Nicolas Domenech <52404047+nicolas-eoxia@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:21:33 +0100 Subject: [PATCH 107/110] New hook beforeRunCronJob and afterRunCronJob (#29884) --- scripts/cron/cron_run_jobs.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/cron/cron_run_jobs.php b/scripts/cron/cron_run_jobs.php index 303c8d6b979..49da9149aff 100755 --- a/scripts/cron/cron_run_jobs.php +++ b/scripts/cron/cron_run_jobs.php @@ -281,6 +281,10 @@ if (is_array($object->lines) && (count($object->lines) > 0)) { dol_syslog("cron_run_jobs.php::fetch Error ".$cronjob->error, LOG_ERR); exit(1); } + + $parameters = array('cronjob' => $cronjob, 'line' => $line); + $reshook = $hookmanager->executeHooks('beforeRunCronJob', $parameters, $object); + // Execute job $result = $cronjob->run_jobs($userlogin); if ($result < 0) { @@ -307,6 +311,9 @@ if (is_array($object->lines) && (count($object->lines) > 0)) { } echo "Job re-scheduled\n"; + + $parameters = array('cronjob' => $cronjob, 'line' => $line); + $reshook = $hookmanager->executeHooks('afterRunCronJob', $parameters, $object); } else { echo " - not qualified (datenextrunok=".($datenextrunok ?: 0).", datestartok=".($datestartok ?: 0).", dateendok=".($dateendok ?: 0).")\n"; From fc7d1c6553fbfc6f36afa051e2bdb2aba2cb0c73 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 23:22:26 +0100 Subject: [PATCH 108/110] Fix phan --- htdocs/admin/pdf_other.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/pdf_other.php b/htdocs/admin/pdf_other.php index 8b9badab823..21596154a0e 100644 --- a/htdocs/admin/pdf_other.php +++ b/htdocs/admin/pdf_other.php @@ -453,7 +453,7 @@ if (isModEnabled('invoice')) { } print ''; */ - + /* Keep this option hidden for the moment to avoid options inflation. We'll see later if it is used enough... print ''; print $form->textwithpicto($langs->trans("SUPPLIER_PROPOSAL_ADD_BILLING_CONTACT"), $langs->trans("SUPPLIER_PROPOSAL_ADD_BILLING_CONTACTMore")); From e6e3112ee24a531762580a339516290a89f2147a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 23:37:41 +0100 Subject: [PATCH 109/110] Exclude admin tools ui --- phpstan.neon.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f7cddb38941..5d7e7bd30f1 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -19,6 +19,7 @@ parameters: - scripts excludePaths: analyseAndScan: + - htdocs/admin/tools/ui/* - htdocs/custom/* - htdocs/documents/* - htdocs/install/doctemplates/* From 8c9a1c2bfcb41e67d436df0c69c7bba47dad98ac Mon Sep 17 00:00:00 2001 From: Alexis Thietard <100410633+Al-thi@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:42:07 +0100 Subject: [PATCH 110/110] fix #24780 change default isolation method in dol_clone (#29391) This fixes serialization error when attempting to update a custom field value. This change is made globally because the previous native = 0 default isolation method is labeled as `deprecated` in the code and therefore shouldn't be used anymore. Signed-off-by: Alexis Thietard --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 18080ab0b96..0dced127de7 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1555,7 +1555,7 @@ function dol_get_object_properties($obj, $properties = []) * @see https://php.net/manual/language.oop5.cloning.php * @phan-suppress PhanTypeExpectedObjectPropAccess */ -function dol_clone($object, $native = 0) +function dol_clone($object, $native = 2) { if ($native == 0) { // deprecated method, use the method with native = 2 instead