From 70e37e3cefeb0342f10c9caaf339f93b6c05d628 Mon Sep 17 00:00:00 2001 From: Dolibot Date: Sat, 1 Mar 2025 12:06:11 +0000 Subject: [PATCH] PHPStan > Update baseline --- dev/build/phpstan/phpstan-baseline.neon | 106 +----------------------- 1 file changed, 2 insertions(+), 104 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 75bc6eacba8..ea8caf60a69 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -54,12 +54,6 @@ parameters: 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 @@ -102,12 +96,6 @@ parameters: count: 1 path: ../../../htdocs/accountancy/admin/journals_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/journals_list.php - - message: '#^Ternary operator condition is always true\.$#' identifier: ternary.alwaysTrue @@ -144,12 +132,6 @@ parameters: 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 @@ -1164,12 +1146,6 @@ parameters: count: 1 path: ../../../htdocs/admin/dict.php - - - 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 @@ -19896,12 +19872,6 @@ parameters: count: 1 path: ../../../htdocs/master.inc.php - - - message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' - identifier: function.alreadyNarrowedType - count: 1 - path: ../../../htdocs/modulebuilder/index.php - - message: '#^Call to function is_array\(\) with non\-empty\-array\ will always evaluate to true\.$#' identifier: function.alreadyNarrowedType @@ -19914,12 +19884,6 @@ parameters: count: 2 path: ../../../htdocs/modulebuilder/index.php - - - 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 @@ -26631,7 +26595,7 @@ parameters: - message: '#^Variable \$prodcustprice might not be defined\.$#' identifier: variable.undefined - count: 36 + count: 3 path: ../../../htdocs/societe/price.php - @@ -28464,12 +28428,6 @@ parameters: 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\:\:\$description \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -28548,12 +28506,6 @@ parameters: 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 @@ -28569,7 +28521,7 @@ parameters: - message: '#^Negated boolean expression is always false\.$#' identifier: booleanNot.alwaysFalse - count: 2 + count: 1 path: ../../../htdocs/website/index.php - @@ -28590,30 +28542,12 @@ parameters: count: 1 path: ../../../htdocs/website/index.php - - - message: '#^Variable \$cate_arbo might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/website/index.php - - - - message: '#^Variable \$containertype might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/website/index.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable count: 1 path: ../../../htdocs/website/index.php - - - 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 @@ -28626,36 +28560,6 @@ parameters: 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 \$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: '#^If condition is always false\.$#' identifier: if.alwaysFalse @@ -28704,12 +28608,6 @@ parameters: count: 1 path: ../../../htdocs/website/websiteaccount_card.php - - - 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: '#^Call to function method_exists\(\) with \$this\(Workstation\) and ''getLibStatut'' will always evaluate to true\.$#' identifier: function.alreadyNarrowedType