2
0
forked from Wavyzz/dolibarr

Merge pull request #32775 from Dolibarr/phpstan-baseline

PHPStan > Update baseline
This commit is contained in:
Laurent Destailleur
2025-01-27 00:31:07 +01:00
committed by GitHub

View File

@@ -10734,36 +10734,12 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/customreports.php path: ../../../htdocs/core/customreports.php
-
message: '#^Variable \$gval might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/customreports.php
- -
message: '#^Variable \$page might not be defined\.$#' message: '#^Variable \$page might not be defined\.$#'
identifier: variable.undefined identifier: variable.undefined
count: 1 count: 1
path: ../../../htdocs/core/customreports.php path: ../../../htdocs/core/customreports.php
-
message: '#^Variable \$search_graph might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../../htdocs/core/customreports.php
-
message: '#^Variable \$search_groupby might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/core/customreports.php
-
message: '#^Variable \$search_xaxis might not be defined\.$#'
identifier: variable.undefined
count: 5
path: ../../../htdocs/core/customreports.php
- -
message: '#^Variable \$search_yaxis might not be defined\.$#' message: '#^Variable \$search_yaxis might not be defined\.$#'
identifier: variable.undefined identifier: variable.undefined
@@ -10782,12 +10758,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/customreports.php path: ../../../htdocs/core/customreports.php
-
message: '#^Variable \$tabfamily might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../../htdocs/core/customreports.php
- -
message: '#^Constructor of class DoliDBMysqli has an unused parameter \$type\.$#' message: '#^Constructor of class DoliDBMysqli has an unused parameter \$type\.$#'
identifier: constructor.unusedParameter identifier: constructor.unusedParameter
@@ -10866,12 +10836,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/db/sqlite3.class.php path: ../../../htdocs/core/db/sqlite3.class.php
-
message: '#^Method DoliDBSqlite3\:\:getListOfCollation\(\) should return array\<int, array\{collation\: string\}\>\|null but returns array\{array\{charset\: ''UTF\-8'', description\: ''UTF\-8''\}\}\.$#'
identifier: return.type
count: 1
path: ../../../htdocs/core/db/sqlite3.class.php
- -
message: '#^Cannot access property \$db on mixed\.$#' message: '#^Cannot access property \$db on mixed\.$#'
identifier: property.nonObject identifier: property.nonObject
@@ -11424,12 +11388,6 @@ parameters:
count: 3 count: 3
path: ../../../htdocs/core/lib/images.lib.php path: ../../../htdocs/core/lib/images.lib.php
-
message: '#^Variable \$extImg might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/lib/images.lib.php
- -
message: '#^Loose comparison using \=\= between ''suppliers'' and ''fourn'' will always evaluate to false\.$#' message: '#^Loose comparison using \=\= between ''suppliers'' and ''fourn'' will always evaluate to false\.$#'
identifier: equal.alwaysFalse identifier: equal.alwaysFalse
@@ -12150,12 +12108,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php path: ../../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php
-
message: '#^Variable \$carac_client_name might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php
- -
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType identifier: function.alreadyNarrowedType
@@ -12198,12 +12150,6 @@ parameters:
count: 2 count: 2
path: ../../../htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php path: ../../../htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php
-
message: '#^Variable \$result might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/barcode/doc/phpbarcode.modules.php
- -
message: '#^Property modTcpdfbarcode\:\:\$is2d has no type specified\.$#' message: '#^Property modTcpdfbarcode\:\:\$is2d has no type specified\.$#'
identifier: missingType.property identifier: missingType.property
@@ -12216,18 +12162,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/barcode/mod_barcode_product_standard.php path: ../../../htdocs/core/modules/barcode/mod_barcode_product_standard.php
-
message: '#^Property mod_barcode_product_standard\:\:\$numbitcounter has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/barcode/mod_barcode_product_standard.php
-
message: '#^Property mod_barcode_product_standard\:\:\$searchcode has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/barcode/mod_barcode_product_standard.php
- -
message: '#^Parameter \#2 \$type of method mod_barcode_thirdparty_standard\:\:literalBarcodeType\(\) expects int, string given\.$#' message: '#^Parameter \#2 \$type of method mod_barcode_thirdparty_standard\:\:literalBarcodeType\(\) expects int, string given\.$#'
identifier: argument.type identifier: argument.type
@@ -12336,12 +12270,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
count: 1
path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
- -
message: '#^Property Commande\:\:\$availability \(string\) in isset\(\) is not nullable\.$#' message: '#^Property Commande\:\:\$availability \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property identifier: isset.property
@@ -12450,18 +12378,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
-
message: '#^Variable \$carac_client_name might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
-
message: '#^Variable \$realpath might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
- -
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\<string, CommonObject\|float\|int\|string\>, Contrat given\.$#' message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\<string, CommonObject\|float\|int\|string\>, Contrat given\.$#'
identifier: argument.type identifier: argument.type
@@ -12498,12 +12414,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php path: ../../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php
- -
message: '#^Parameter \#3 \$posy of method pdf_storm\:\:_tableau_info\(\) expects int, float given\.$#' message: '#^Parameter \#3 \$posy of method pdf_storm\:\:_tableau_info\(\) expects int, float given\.$#'
identifier: argument.type identifier: argument.type
@@ -12558,12 +12468,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php path: ../../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php
-
message: '#^Variable \$realpath might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php
- -
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType identifier: function.alreadyNarrowedType
@@ -12582,24 +12486,6 @@ parameters:
count: 2 count: 2
path: ../../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php path: ../../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php
-
message: '#^Property pdf_typhon\:\:\$posxcomm has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php
-
message: '#^Property pdf_typhon\:\:\$posxremainingqty has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php
-
message: '#^Property pdf_typhon\:\:\$posxweightvol has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/delivery/doc/pdf_typhon.modules.php
- -
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType identifier: function.alreadyNarrowedType
@@ -12720,24 +12606,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php path: ../../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php
-
message: '#^Property pdf_merou\:\:\$destinataire has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php
-
message: '#^Property pdf_merou\:\:\$expediteur has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php
-
message: '#^Property pdf_merou\:\:\$livreur has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expedition/doc/pdf_merou.modules.php
- -
message: '#^Parameter \#4 \$posy of method pdf_rouget\:\:_tableau_tot\(\) expects int, float given\.$#' message: '#^Parameter \#4 \$posy of method pdf_rouget\:\:_tableau_tot\(\) expects int, float given\.$#'
identifier: argument.type identifier: argument.type
@@ -12768,36 +12636,6 @@ parameters:
count: 6 count: 6
path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php
-
message: '#^Property pdf_standard_expensereport\:\:\$postotalttc has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php
-
message: '#^Property pdf_standard_expensereport\:\:\$posxcomment has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php
-
message: '#^Property pdf_standard_expensereport\:\:\$posxpiece has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php
-
message: '#^Property pdf_standard_expensereport\:\:\$posxprojet has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php
-
message: '#^Property pdf_standard_expensereport\:\:\$posxtype has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php
- -
message: '#^Ternary operator condition is always false\.$#' message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse identifier: ternary.alwaysFalse
@@ -12900,12 +12738,6 @@ parameters:
count: 13 count: 13
path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
count: 1
path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
- -
message: '#^Parameter \#1 \$a of method pdf_octopus\:\:sumSituation\(\) expects array\<int\|string, array\<mixed\>\|float\|int\>, array\<string, Facture\|float\|int\> given\.$#' message: '#^Parameter \#1 \$a of method pdf_octopus\:\:sumSituation\(\) expects array\<int\|string, array\<mixed\>\|float\|int\>, array\<string, Facture\|float\|int\> given\.$#'
identifier: argument.type identifier: argument.type
@@ -13068,12 +12900,6 @@ parameters:
count: 3 count: 3
path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
-
message: '#^Variable \$realpath might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
- -
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType identifier: function.alreadyNarrowedType
@@ -13086,12 +12912,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
count: 1
path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php
- -
message: '#^Property CommonInvoice\:\:\$type \(int\) in isset\(\) is not nullable\.$#' message: '#^Property CommonInvoice\:\:\$type \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property identifier: isset.property
@@ -13212,12 +13032,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php
-
message: '#^Variable \$realpath might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php
- -
message: '#^Property mod_facture_mars\:\:\$prefixcreditnote has no type specified\.$#' message: '#^Property mod_facture_mars\:\:\$prefixcreditnote has no type specified\.$#'
identifier: missingType.property identifier: missingType.property
@@ -13296,12 +13110,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php path: ../../../htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php
-
message: '#^Variable \$max might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/fichinter/mod_pacific.php
- -
message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property identifier: isset.property
@@ -14094,36 +13902,6 @@ parameters:
count: 2 count: 2
path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Property pdf_standard_movementstock\:\:\$posxdatemouv has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Property pdf_standard_movementstock\:\:\$posxidref has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Property pdf_standard_movementstock\:\:\$wref has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Variable \$lastmovementdate might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Variable \$result might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
- -
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\<string, CommonObject\|float\|int\|string\>, Mo given\.$#' message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\<string, CommonObject\|float\|int\|string\>, Mo given\.$#'
identifier: argument.type identifier: argument.type
@@ -14526,12 +14304,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/propale/doc/pdf_azur.modules.php path: ../../../htdocs/core/modules/propale/doc/pdf_azur.modules.php
-
message: '#^Variable \$filetomerge_dir might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/core/modules/propale/doc/pdf_azur.modules.php
- -
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType identifier: function.alreadyNarrowedType
@@ -14646,12 +14418,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php path: ../../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php
-
message: '#^Variable \$filetomerge_dir might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php
- -
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType identifier: function.alreadyNarrowedType