From 30577d167245eebcd0ccc34e8e2e6ed379862092 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Jun 2025 15:24:38 +0200 Subject: [PATCH] PHPStan > Update baseline (#34658) Co-authored-by: Dolibot --- dev/build/phpstan/phpstan-baseline.neon | 26 +------------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 2f11583f5f8..a079a1d0cc9 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -972,12 +972,6 @@ parameters: count: 1 path: ../../../htdocs/adherents/list.php - - - message: '#^Variable \$diroutputmassaction might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/adherents/list.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -1860,12 +1854,6 @@ parameters: count: 2 path: ../../../htdocs/api/class/api_documents.class.php - - - message: '#^Loose comparison using \!\= between ''adherent''\|''agenda''\|''commande''\|''contact''\|''contrat''\|''expensereport''\|''facture''\|''fichinter''\|''mrp''\|''product''\|''produit''\|''produit\|service''\|''project''\|''project_task''\|''projet''\|''propale''\|''service''\|''supplier_invoice''\|''supplier_order'' and ''ecm'' will always evaluate to true\.$#' - identifier: notEqual.alwaysTrue - count: 1 - path: ../../../htdocs/api/class/api_documents.class.php - - message: '#^Negated boolean expression is always true\.$#' identifier: booleanNot.alwaysTrue @@ -3273,7 +3261,7 @@ parameters: - message: '#^Ternary operator condition is always true\.$#' identifier: ternary.alwaysTrue - count: 6 + count: 4 path: ../../../htdocs/comm/action/peruser.php - @@ -6678,12 +6666,6 @@ parameters: count: 1 path: ../../../htdocs/core/actions_setmoduleoptions.inc.php - - - message: '#^Variable \$modulepart might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/core/actions_setmoduleoptions.inc.php - - message: '#^Variable \$result might not be defined\.$#' identifier: variable.undefined @@ -19368,12 +19350,6 @@ parameters: count: 1 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