From 0bb8c4fe11badbd8a7c75e753dfaca3ada74a1f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:45:03 +0200 Subject: [PATCH] PHPStan > Update baseline (#33795) Co-authored-by: Dolibot --- dev/build/phpstan/phpstan-baseline.neon | 73 ------------------------- 1 file changed, 73 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 1eeb4cece72..34d7221c578 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -163,7 +163,6 @@ parameters: path: ../../../htdocs/accountancy/bookkeeping/balance.php - - message: '#^If condition is always true\.$#' identifier: if.alwaysTrue count: 1 @@ -1441,12 +1440,6 @@ parameters: count: 2 path: ../../../htdocs/admin/menus/edit.php - - - message: '#^Property Menubase\:\:\$target \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 2 - path: ../../../htdocs/admin/menus/edit.php - - message: '#^If condition is always true\.$#' identifier: if.alwaysTrue @@ -4645,12 +4638,6 @@ parameters: 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\.$#' identifier: smaller.alwaysTrue @@ -10153,12 +10140,6 @@ parameters: count: 4 path: ../../../htdocs/core/lib/pdf.lib.php - - - message: '#^Ternary operator condition is always true\.$#' - identifier: ternary.alwaysTrue - count: 12 - path: ../../../htdocs/core/lib/pdf.lib.php - - message: '#^Variable \$refListsTxt in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -10213,12 +10194,6 @@ parameters: count: 6 path: ../../../htdocs/core/lib/tax.lib.php - - - 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\.$#' identifier: empty.variable @@ -10375,12 +10350,6 @@ parameters: count: 1 path: ../../../htdocs/core/menus/standard/auguria.lib.php - - - 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\.$#' identifier: booleanAnd.rightAlwaysTrue @@ -10411,12 +10380,6 @@ parameters: count: 4 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: '#^Right side of && is always true\.$#' identifier: booleanAnd.rightAlwaysTrue @@ -15055,24 +15018,12 @@ parameters: count: 1 path: ../../../htdocs/fourn/facture/agenda.php - - - 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\.$#' identifier: variable.undefined count: 1 path: ../../../htdocs/fourn/facture/card-rec.php - - - message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#' - identifier: empty.variable - count: 2 - path: ../../../htdocs/fourn/facture/card-rec.php - - message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#' identifier: greater.alwaysFalse @@ -20569,12 +20520,6 @@ parameters: count: 11 path: ../../../htdocs/public/bookcal/bookcalAjax.php - - - message: '#^Ternary operator condition is always true\.$#' - identifier: ternary.alwaysTrue - count: 1 - path: ../../../htdocs/public/bookcal/index.php - - message: '#^Variable \$user might not be defined\.$#' identifier: variable.undefined @@ -20737,12 +20682,6 @@ parameters: count: 1 path: ../../../htdocs/public/members/new.php - - - 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 @@ -20815,12 +20754,6 @@ parameters: count: 1 path: ../../../htdocs/public/partnership/new.php - - - 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 @@ -20977,12 +20910,6 @@ parameters: count: 1 path: ../../../htdocs/public/project/new.php - - - 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