PHPStan > Update baseline

This commit is contained in:
Dolibot 2025-02-11 12:06:50 +00:00
parent a4e39ba1be
commit 9264608bb5

View File

@ -9627,7 +9627,7 @@ parameters:
-
message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#'
identifier: argument.unresolvableType
count: 4
count: 3
path: ../../../htdocs/core/class/html.form.class.php
-
@ -9660,12 +9660,6 @@ parameters:
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
@ -9711,7 +9705,7 @@ parameters:
-
message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#'
identifier: function.unresolvableReturnType
count: 4
count: 3
path: ../../../htdocs/core/class/html.form.class.php
-
@ -9762,12 +9756,6 @@ parameters:
count: 1
path: ../../../htdocs/core/class/html.formcompany.class.php
-
message: '#^Call to function is_numeric\(\) with float\|int\<min, \-1\>\|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: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#'
identifier: argument.unresolvableType
@ -13410,12 +13398,6 @@ parameters:
count: 2
path: ../../../htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.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\.$#'
identifier: missingType.iterableValue
@ -13440,12 +13422,6 @@ parameters:
count: 1
path: ../../../htdocs/core/modules/project/doc/pdf_baleine.modules.php
-
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\.$#'
identifier: if.alwaysTrue
@ -21618,12 +21594,6 @@ parameters:
count: 2
path: ../../../htdocs/product/admin/product.php
-
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\.$#'
identifier: variable.undefined
@ -21684,12 +21654,6 @@ parameters:
count: 1
path: ../../../htdocs/product/card.php
-
message: '#^Variable \$prod might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/card.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
@ -22218,18 +22182,6 @@ parameters:
count: 1
path: ../../../htdocs/product/document.php
-
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\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/product/document.php
-
message: '#^Negated boolean expression is always true\.$#'
identifier: booleanNot.alwaysTrue
@ -22308,12 +22260,6 @@ parameters:
count: 1
path: ../../../htdocs/product/inventory/card.php
-
message: '#^Variable \$text might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/inventory/card.php
-
message: '#^Call to function method_exists\(\) with \$this\(Inventory\) and ''getLibStatut'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -22338,18 +22284,6 @@ parameters:
count: 2
path: ../../../htdocs/product/list.php
-
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\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/product/list.php
-
message: '#^Loose comparison using \=\= between ''add_customer_price'' and ''add_customer_price'' will always evaluate to true\.$#'
identifier: equal.alwaysTrue
@ -22374,12 +22308,6 @@ parameters:
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
@ -22410,24 +22338,12 @@ parameters:
count: 1
path: ../../../htdocs/product/price.php
-
message: '#^Variable \$ii might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/product/price.php
-
message: '#^Variable \$lineid might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/price.php
-
message: '#^Variable \$maxpricesupplier might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/product/price.php
-
message: '#^Variable \$obj might not be defined\.$#'
identifier: variable.undefined
@ -22446,12 +22362,6 @@ parameters:
count: 2
path: ../../../htdocs/product/price.php
-
message: '#^Variable \$soc might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/price.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
@ -22662,24 +22572,6 @@ parameters:
count: 1
path: ../../../htdocs/product/stats/supplier_proposal.php
-
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\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/stock/card.php
-
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\.$#'
identifier: missingType.iterableValue
@ -22866,12 +22758,6 @@ parameters:
count: 2
path: ../../../htdocs/product/stock/info.php
-
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\.$#'
identifier: variable.undefined
@ -22986,12 +22872,6 @@ parameters:
count: 1
path: ../../../htdocs/product/stock/movement_card.php
-
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\.$#'
identifier: variable.undefined
@ -23016,18 +22896,6 @@ parameters:
count: 1
path: ../../../htdocs/product/stock/movement_card.php
-
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\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/stock/movement_card.php
-
message: '#^Variable \$massaction might not be defined\.$#'
identifier: variable.undefined
@ -23040,36 +22908,12 @@ parameters:
count: 3
path: ../../../htdocs/product/stock/movement_card.php
-
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\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/stock/movement_card.php
-
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\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/product/stock/movement_card.php
-
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\.$#'
identifier: variable.undefined
@ -23184,42 +23028,6 @@ parameters:
count: 1
path: ../../../htdocs/product/stock/product.php
-
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\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/product/stock/product.php
-
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\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/stock/product.php
-
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\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/product/stock/product.php
-
message: '#^Variable \$sortfield might not be defined\.$#'
identifier: variable.undefined
@ -23232,18 +23040,6 @@ parameters:
count: 1
path: ../../../htdocs/product/stock/product.php
-
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\.$#'
identifier: variable.undefined
count: 3
path: ../../../htdocs/product/stock/product.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
@ -23268,36 +23064,18 @@ parameters:
count: 1
path: ../../../htdocs/product/stock/replenish.php
-
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\.$#'
identifier: empty.variable
count: 1
path: ../../../htdocs/product/stock/replenishorders.php
-
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\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/product/stock/stockatdate.php
-
message: '#^Variable \$virtualstock might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/product/stock/stockatdate.php
-
message: '#^Call to function property_exists\(\) with \$this\(StockTransfer\) and ''socid'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -23466,42 +23244,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Parameter \#11 \$isavailable of function projectLinesPerDay expects array\<int, array\{morning\: int\<0, 1\>, afternoon\: int\<0, 1\>\}\>, non\-empty\-array\<int\|string, array\{morning\: false, afternoon\: false, morning_reason\: ''public_holiday'', afternoon_reason\: ''public_holiday''\}\|array\{morning_reason\?\: string, afternoon_reason\?\: string\}\> given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 4
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 4
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Parameter \#6 \$projectsrole of function projectLinesPerDay expects string, array\<int, string\>\|int given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 4
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Parameter \#7 \$tasksrole of function projectLinesPerDay expects string, array\<int, string\>\|int given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/perday.php
-
message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse
@ -23538,18 +23280,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/activity/permonth.php
-
message: '#^Parameter \#7 \$projectsrole of function projectLinesPerMonth expects string, array\<int, string\>\|int given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/permonth.php
-
message: '#^Parameter \#8 \$tasksrole of function projectLinesPerMonth expects string, array\<int, string\>\|int given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/permonth.php
-
message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse
@ -23586,24 +23316,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/activity/perweek.php
-
message: '#^Parameter \#11 \$isavailable of function projectLinesPerWeek expects array\<int, array\{morning\: int\<0, 1\>, afternoon\: int\<0, 1\>\}\>, non\-empty\-array\<int, array\{morning\: false, afternoon\: false, morning_reason\: ''public_holiday'', afternoon_reason\: ''public_holiday''\}\|array\{morning_reason\?\: string, afternoon_reason\?\: string\}\> given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/perweek.php
-
message: '#^Parameter \#7 \$projectsrole of function projectLinesPerWeek expects string, array\<int, string\>\|int given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/perweek.php
-
message: '#^Parameter \#8 \$tasksrole of function projectLinesPerWeek expects string, array\<int, string\>\|int given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/projet/activity/perweek.php
-
message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse
@ -23934,12 +23646,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/contact.php
-
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
@ -24012,12 +23718,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/ganttview.php
-
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