forked from Wavyzz/dolibarr
PHPStan > Update baseline (#35420)
Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
86f20799bc
commit
e169718b4c
@@ -1440,24 +1440,12 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/asset/card.php
|
||||
|
||||
-
|
||||
message: '#^Property Asset\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/asset/card.php
|
||||
|
||||
-
|
||||
message: '#^Property Asset\:\:\$date_start \(int\|string\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 2
|
||||
path: ../../../htdocs/asset/class/asset.class.php
|
||||
|
||||
-
|
||||
message: '#^Property Asset\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/asset/class/asset.class.php
|
||||
|
||||
-
|
||||
message: '#^Call to function is_callable\(\) with array\{\$this\(AssetDepreciationOptions\), ''validateField''\} will always evaluate to true\.$#'
|
||||
identifier: function.alreadyNarrowedType
|
||||
@@ -1506,12 +1494,6 @@ parameters:
|
||||
count: 2
|
||||
path: ../../../htdocs/asset/class/assetmodel.class.php
|
||||
|
||||
-
|
||||
message: '#^Property AssetModel\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/asset/class/assetmodel.class.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$lines in empty\(\) always exists and is not falsy\.$#'
|
||||
identifier: empty.variable
|
||||
@@ -1536,12 +1518,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/asset/model/accountancy_codes.php
|
||||
|
||||
-
|
||||
message: '#^Property AssetModel\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/asset/model/card.php
|
||||
|
||||
-
|
||||
message: '#^Negated boolean expression is always false\.$#'
|
||||
identifier: booleanNot.alwaysFalse
|
||||
@@ -1638,12 +1614,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/blockedlog/class/blockedlog.class.php
|
||||
|
||||
-
|
||||
message: '#^Property BOM\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/bom/bom_card.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$idprod might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
@@ -1668,12 +1638,6 @@ parameters:
|
||||
count: 3
|
||||
path: ../../../htdocs/bom/bom_net_needs.php
|
||||
|
||||
-
|
||||
message: '#^Property BOM\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/bom/bom_net_needs.php
|
||||
|
||||
-
|
||||
message: '#^Property CommonDict\:\:\$label \(string\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
@@ -1710,12 +1674,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/bom/tpl/objectline_edit.tpl.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dateSelector might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/bom/tpl/objectline_edit.tpl.php
|
||||
|
||||
-
|
||||
message: '#^If condition is always true\.$#'
|
||||
identifier: if.alwaysTrue
|
||||
@@ -1758,12 +1716,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/bookcal/availabilities_card.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$soc might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/bookcal/availabilities_card.php
|
||||
|
||||
-
|
||||
message: '#^If condition is always false\.$#'
|
||||
identifier: if.alwaysFalse
|
||||
@@ -2127,7 +2079,7 @@ parameters:
|
||||
-
|
||||
message: '#^Ternary operator condition is always true\.$#'
|
||||
identifier: ternary.alwaysTrue
|
||||
count: 4
|
||||
count: 3
|
||||
path: ../../../htdocs/comm/action/list.php
|
||||
|
||||
-
|
||||
@@ -2529,7 +2481,7 @@ parameters:
|
||||
-
|
||||
message: '#^Negated boolean expression is always true\.$#'
|
||||
identifier: booleanNot.alwaysTrue
|
||||
count: 4
|
||||
count: 3
|
||||
path: ../../../htdocs/comm/propal/class/propal.class.php
|
||||
|
||||
-
|
||||
@@ -2688,12 +2640,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/commande/class/commande.class.php
|
||||
|
||||
-
|
||||
message: '#^Property CommonObject\:\:\$shipping_method_id \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/commande/class/commande.class.php
|
||||
|
||||
-
|
||||
message: '#^Property CommonObject\:\:\$total_ht \(float\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
@@ -7443,7 +7389,7 @@ parameters:
|
||||
-
|
||||
message: '#^Left side of && is always true\.$#'
|
||||
identifier: booleanAnd.leftAlwaysTrue
|
||||
count: 2
|
||||
count: 1
|
||||
path: ../../../htdocs/core/lib/company.lib.php
|
||||
|
||||
-
|
||||
@@ -8277,7 +8223,7 @@ parameters:
|
||||
-
|
||||
message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\<float\>\|float\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 5
|
||||
count: 4
|
||||
path: ../../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
|
||||
|
||||
-
|
||||
@@ -9558,18 +9504,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/core/tpl/contacts.tpl.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$conf might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/core/tpl/document_actions_post_headers.tpl.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$db might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/core/tpl/document_actions_post_headers.tpl.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$filearray might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
@@ -11184,30 +11118,12 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/fourn/class/fournisseur.product.class.php
|
||||
|
||||
-
|
||||
message: '#^Property Product\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/fourn/class/fournisseur.product.class.php
|
||||
|
||||
-
|
||||
message: '#^Property Product\:\:\$status_buy \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/fourn/class/fournisseur.product.class.php
|
||||
|
||||
-
|
||||
message: '#^Property ProductFournisseur\:\:\$fourn_unitprice \(int\|string\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 1
|
||||
path: ../../../htdocs/fourn/class/fournisseur.product.class.php
|
||||
|
||||
-
|
||||
message: '#^Result of && is always true\.$#'
|
||||
identifier: booleanAnd.alwaysTrue
|
||||
count: 1
|
||||
path: ../../../htdocs/fourn/class/fournisseur.product.class.php
|
||||
|
||||
-
|
||||
message: '#^Ternary operator condition is always false\.$#'
|
||||
identifier: ternary.alwaysFalse
|
||||
@@ -11529,7 +11445,7 @@ parameters:
|
||||
-
|
||||
message: '#^Negated boolean expression is always true\.$#'
|
||||
identifier: booleanNot.alwaysTrue
|
||||
count: 3
|
||||
count: 2
|
||||
path: ../../../htdocs/holiday/class/holiday.class.php
|
||||
|
||||
-
|
||||
@@ -11814,12 +11730,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/hrm/class/skilldet.class.php
|
||||
|
||||
-
|
||||
message: '#^Negated boolean expression is always true\.$#'
|
||||
identifier: booleanNot.alwaysTrue
|
||||
count: 1
|
||||
path: ../../../htdocs/hrm/class/skilldet.class.php
|
||||
|
||||
-
|
||||
message: '#^Call to function property_exists\(\) with SkillRank and ''date_creation'' will always evaluate to true\.$#'
|
||||
identifier: function.alreadyNarrowedType
|
||||
@@ -12651,7 +12561,7 @@ parameters:
|
||||
-
|
||||
message: '#^Ternary operator condition is always true\.$#'
|
||||
identifier: ternary.alwaysTrue
|
||||
count: 35
|
||||
count: 33
|
||||
path: ../../../htdocs/main.inc.php
|
||||
|
||||
-
|
||||
@@ -12732,48 +12642,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/margin/tabs/thirdpartyMargins.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_db_character_set might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_db_collation might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_db_cryptkey might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_db_encryption might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_db_prefix might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_db_type might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_limit_users might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/master.inc.php
|
||||
|
||||
-
|
||||
message: '#^Call to function is_array\(\) with non\-empty\-array\<mixed\> will always evaluate to true\.$#'
|
||||
identifier: function.alreadyNarrowedType
|
||||
@@ -13008,12 +12876,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/modulebuilder/template/class/myobject.class.php
|
||||
|
||||
-
|
||||
message: '#^Negated boolean expression is always true\.$#'
|
||||
identifier: booleanNot.alwaysTrue
|
||||
count: 1
|
||||
path: ../../../htdocs/modulebuilder/template/class/myobject.class.php
|
||||
|
||||
-
|
||||
message: '#^Property MyObject\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
@@ -13293,7 +13155,7 @@ parameters:
|
||||
-
|
||||
message: '#^Negated boolean expression is always true\.$#'
|
||||
identifier: booleanNot.alwaysTrue
|
||||
count: 3
|
||||
count: 2
|
||||
path: ../../../htdocs/mrp/class/mo.class.php
|
||||
|
||||
-
|
||||
@@ -13332,12 +13194,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/mrp/class/mo.class.php
|
||||
|
||||
-
|
||||
message: '#^Property Mo\:\:\$tpl \(array\<string, int\|string\>\) does not accept array\<string, float\|int\|string\>\.$#'
|
||||
identifier: assign.propertyType
|
||||
count: 6
|
||||
path: ../../../htdocs/mrp/class/mo.class.php
|
||||
|
||||
-
|
||||
message: '#^If condition is always true\.$#'
|
||||
identifier: if.alwaysTrue
|
||||
@@ -15960,12 +15816,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/public/payment/newpayment.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 2
|
||||
path: ../../../htdocs/public/payment/newpayment.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$invoice might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
@@ -16440,12 +16290,6 @@ parameters:
|
||||
count: 2
|
||||
path: ../../../htdocs/public/webportal/tpl/menu.tpl.php
|
||||
|
||||
-
|
||||
message: '#^Path in include\(\) "\.\./\.\./\.\./\.\./main\.inc\.php" is not a file or it does not exist\.$#'
|
||||
identifier: include.fileNotFound
|
||||
count: 1
|
||||
path: ../../../htdocs/public/webportal/webportal.main.inc.php
|
||||
|
||||
-
|
||||
message: '#^Negated boolean expression is always false\.$#'
|
||||
identifier: booleanNot.alwaysFalse
|
||||
@@ -16554,12 +16398,6 @@ parameters:
|
||||
count: 4
|
||||
path: ../../../htdocs/reception/class/reception.class.php
|
||||
|
||||
-
|
||||
message: '#^Property CommonObject\:\:\$shipping_method_id \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
count: 2
|
||||
path: ../../../htdocs/reception/class/reception.class.php
|
||||
|
||||
-
|
||||
message: '#^Property Reception\:\:\$ref_supplier \(string\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
@@ -17622,12 +17460,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/societe/price.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$parameters might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/societe/project.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$db might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
@@ -18792,12 +18624,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/webhook/class/target.class.php
|
||||
|
||||
-
|
||||
message: '#^Negated boolean expression is always true\.$#'
|
||||
identifier: booleanNot.alwaysTrue
|
||||
count: 1
|
||||
path: ../../../htdocs/webhook/class/target.class.php
|
||||
|
||||
-
|
||||
message: '#^Property Target\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
@@ -18828,12 +18654,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../htdocs/webportal/class/context.class.php
|
||||
|
||||
-
|
||||
message: '#^Offset 0 on non\-empty\-list\<string\> in isset\(\) always exists and is not nullable\.$#'
|
||||
identifier: isset.offset
|
||||
count: 1
|
||||
path: ../../../htdocs/webportal/class/html.formcardwebportal.class.php
|
||||
|
||||
-
|
||||
message: '#^Result of && is always false\.$#'
|
||||
identifier: booleanAnd.alwaysFalse
|
||||
@@ -19320,30 +19140,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../scripts/emailings/reset-invalid-emails.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$user might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 2
|
||||
path: ../../../scripts/members/sync_members_dolibarr2ldap.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$user might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../scripts/members/sync_members_ldap2dolibarr.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$user might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 2
|
||||
path: ../../../scripts/members/sync_members_types_dolibarr2ldap.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$user might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 2
|
||||
path: ../../../scripts/members/sync_members_types_ldap2dolibarr.php
|
||||
|
||||
-
|
||||
message: '#^Loose comparison using \=\= between ''product'' and ''product'' will always evaluate to true\.$#'
|
||||
identifier: equal.alwaysTrue
|
||||
|
||||
Reference in New Issue
Block a user