PHPStan > Update baseline

This commit is contained in:
Dolibot 2025-02-03 12:06:55 +00:00
parent 671c1252fa
commit ed2a013da3

View File

@ -15882,12 +15882,6 @@ parameters:
count: 1
path: ../../../htdocs/ecm/dir_card.php
-
message: '#^Variable \$oldlabel might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/ecm/dir_card.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
@ -15924,12 +15918,6 @@ parameters:
count: 2
path: ../../../htdocs/ecm/file_card.php
-
message: '#^Variable \$relativepath might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/ecm/index.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
@ -16260,12 +16248,6 @@ parameters:
count: 1
path: ../../../htdocs/eventorganization/conferenceorboothattendee_card.php
-
message: '#^Variable \$confOrBooth might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/eventorganization/conferenceorboothattendee_card.php
-
message: '#^Variable \$text might not be defined\.$#'
identifier: variable.undefined
@ -16680,48 +16662,18 @@ parameters:
count: 8
path: ../../../htdocs/expedition/contact.php
-
message: '#^Variable \$typeobject might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/expedition/contact.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
count: 1
path: ../../../htdocs/expedition/dispatch.php
-
message: '#^Variable \$modebatch might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/expedition/dispatch.php
-
message: '#^Variable \$nbproduct might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expedition/dispatch.php
-
message: '#^Variable \$objectsrc might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../../htdocs/expedition/dispatch.php
-
message: '#^Variable \$objsearchdet might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expedition/dispatch.php
-
message: '#^Variable \$typeobject might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/expedition/dispatch.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
@ -16734,12 +16686,6 @@ parameters:
count: 2
path: ../../../htdocs/expedition/document.php
-
message: '#^Variable \$typeobject might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/expedition/document.php
-
message: '#^Call to function method_exists\(\) with Expedition and ''fetch_lines'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -16782,12 +16728,6 @@ parameters:
count: 1
path: ../../../htdocs/expedition/list.php
-
message: '#^Variable \$search_shipping_method_id might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expedition/list.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
@ -16800,12 +16740,6 @@ parameters:
count: 2
path: ../../../htdocs/expedition/note.php
-
message: '#^Variable \$typeobject might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/expedition/note.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
@ -16842,12 +16776,6 @@ parameters:
count: 6
path: ../../../htdocs/expedition/shipment.php
-
message: '#^Variable \$toBeShippedTotal might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/expedition/shipment.php
-
message: '#^Variable \$socid might not be defined\.$#'
identifier: variable.undefined
@ -16908,18 +16836,6 @@ parameters:
count: 10
path: ../../../htdocs/expensereport/card.php
-
message: '#^Variable \$remaintopay might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expensereport/card.php
-
message: '#^Variable \$userauthor might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/expensereport/card.php
-
message: '#^Method ExpenseReports\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
@ -17148,12 +17064,6 @@ parameters:
count: 1
path: ../../../htdocs/expensereport/payment/card.php
-
message: '#^Variable \$title_button might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expensereport/payment/card.php
-
message: '#^Variable \$linkback might not be defined\.$#'
identifier: variable.undefined
@ -17184,30 +17094,12 @@ parameters:
count: 1
path: ../../../htdocs/expensereport/payment/payment.php
-
message: '#^Variable \$sumpaid might not be defined\.$#'
identifier: variable.undefined
count: 5
path: ../../../htdocs/expensereport/payment/payment.php
-
message: '#^Variable \$fileurl_avg might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expensereport/stats/index.php
-
message: '#^Variable \$action might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php
-
message: '#^Variable \$colspan might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/expensereport/tpl/expensereport_addfile.tpl.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
@ -17238,12 +17130,6 @@ parameters:
count: 2
path: ../../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php
-
message: '#^Variable \$colspan might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
@ -17262,12 +17148,6 @@ parameters:
count: 1
path: ../../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php
-
message: '#^Variable \$minifile might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/expensereport/tpl/expensereport_linktofile.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -17358,12 +17238,6 @@ parameters:
count: 1
path: ../../../htdocs/fichinter/card.php
-
message: '#^Variable \$extrafields in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
count: 2
path: ../../../htdocs/fichinter/card.php
-
message: '#^Variable \$line might not be defined\.$#'
identifier: variable.undefined
@ -17376,66 +17250,6 @@ parameters:
count: 11
path: ../../../htdocs/fichinter/card.php
-
message: '#^Method Interventions\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:_validate\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:_validateLine\(\) has parameter \$data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:_validateLine\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:delete\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:index\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Method Interventions\:\:postLine\(\) has parameter \$request_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Property Interventions\:\:\$FIELDS type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Property Interventions\:\:\$FIELDSLINE has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/fichinter/class/api_interventions.class.php
-
message: '#^Call to function method_exists\(\) with \$this\(Fichinter\) and ''getLibStatut'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -17484,24 +17298,6 @@ parameters:
count: 2
path: ../../../htdocs/fichinter/class/fichinterligne.class.php
-
message: '#^Parameter \#17 \$fk_unit of method FichinterRec\:\:addLineRec\(\) expects string\|null, int\|null given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/fichinter/class/fichinterrec.class.php
-
message: '#^Parameter \#2 \$pu of function calcul_price_total expects float, string given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/fichinter/class/fichinterrec.class.php
-
message: '#^Parameter \#3 \$remise_percent_ligne of function calcul_price_total expects float, string given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/fichinter/class/fichinterrec.class.php
-
message: '#^Right side of && is always false\.$#'
identifier: booleanAnd.rightAlwaysFalse
@ -17544,18 +17340,6 @@ parameters:
count: 2
path: ../../../htdocs/fichinter/list.php
-
message: '#^Variable \$contratstatic might not be defined\.$#'
identifier: variable.undefined
count: 6
path: ../../../htdocs/fichinter/list.php
-
message: '#^Variable \$projetstatic might not be defined\.$#'
identifier: variable.undefined
count: 5
path: ../../../htdocs/fichinter/list.php
-
message: '#^Right side of && is always false\.$#'
identifier: booleanAnd.rightAlwaysFalse