PHPStan > Update baseline

This commit is contained in:
Dolibot 2025-03-01 12:06:11 +00:00
parent 8bec32aff2
commit 70e37e3cef

View file

@ -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\<string, array\<string, array\<string, string\>\>\>, array\<int, 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\<string, array\<string, array\<string, string\>\>\>, array\<int, 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\<string, array\<string, array\<string, string\>\>\>, array\<int, 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\<string, array\<string, array\<string, string\>\>\>, array\<string, array\<string, array\<string, string\>\|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\<array\{modulenamewithcase\: mixed, moduledescriptorrelpath\: string, moduledescriptorfullpath\: mixed, moduledescriptorrootpath\: mixed, moduletype\?\: ''external''\|''internal''\}\> 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\<mixed\> 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\<string, string\>, array\<int\|string, array\<mixed\>\|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\<string, string\>, array\<string, int\|string\> 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