diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 20d323fc6e5..04d89a3027b 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -552,12 +552,6 @@ parameters: count: 1 path: ../../../htdocs/accountancy/class/bookkeeping.class.php - - - message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#' - identifier: function.alreadyNarrowedType - count: 1 - path: ../../../htdocs/accountancy/class/lettering.class.php - - message: '#^If condition is always false\.$#' identifier: if.alwaysFalse @@ -1644,18 +1638,6 @@ parameters: count: 1 path: ../../../htdocs/admin/system/security.php - - - message: '#^Variable \$dolibarr_main_document_root might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/admin/system/security.php - - - - message: '#^Variable \$dolibarr_main_prod might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/admin/system/security.php - - message: '#^Call to function is_bool\(\) with true will always evaluate to true\.$#' identifier: function.alreadyNarrowedType @@ -3102,12 +3084,6 @@ parameters: count: 1 path: ../../../htdocs/comm/action/info.php - - - message: '#^Variable \$object might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/comm/action/info.php - - message: '#^Variable \$socid might not be defined\.$#' identifier: variable.undefined @@ -3672,18 +3648,6 @@ parameters: count: 1 path: ../../../htdocs/comm/propal/document.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/comm/propal/list.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/comm/propal/list.php - - message: '#^Result of && is always false\.$#' identifier: booleanAnd.alwaysFalse @@ -3702,12 +3666,6 @@ parameters: count: 2 path: ../../../htdocs/comm/propal/list.php - - - message: '#^Variable \$searchCategoryCustomerList in empty\(\) always exists and is not falsy\.$#' - identifier: empty.variable - count: 1 - path: ../../../htdocs/comm/propal/list.php - - message: '#^Variable \$searchCategoryProductList in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -3918,18 +3876,6 @@ parameters: count: 6 path: ../../../htdocs/commande/list.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/commande/list.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/commande/list.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -5640,18 +5586,6 @@ parameters: count: 1 path: ../../../htdocs/compta/sociales/payments.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/compta/stats/cabyprodserv.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/compta/stats/cabyprodserv.php - - message: '#^Ternary operator condition is always false\.$#' identifier: ternary.alwaysFalse @@ -6444,18 +6378,6 @@ parameters: count: 1 path: ../../../htdocs/contrat/index.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/contrat/list.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/contrat/list.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -6636,12 +6558,6 @@ parameters: count: 1 path: ../../../htdocs/core/actions_linkedfiles.inc.php - - - message: '#^Variable \$action might not be defined\.$#' - identifier: variable.undefined - count: 6 - path: ../../../htdocs/core/actions_linkedfiles.inc.php - - message: '#^Call to function is_object\(\) with Adherent\|ConferenceOrBoothAttendee\|Contact\|Societe\|User will always evaluate to true\.$#' identifier: function.alreadyNarrowedType @@ -11880,24 +11796,6 @@ parameters: count: 2 path: ../../../htdocs/core/tpl/extrafields_list_print_fields.tpl.php - - - message: '#^Variable \$extrafields might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - - - message: '#^Variable \$extrafieldsobjectkey might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - - - message: '#^Variable \$param might not be defined\.$#' - identifier: variable.undefined - count: 5 - path: ../../../htdocs/core/tpl/extrafields_list_search_param.tpl.php - - message: '#^Variable \$db might not be defined\.$#' identifier: variable.undefined @@ -13494,18 +13392,6 @@ parameters: count: 1 path: ../../../htdocs/expedition/list.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/expedition/list.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 2 - path: ../../../htdocs/expedition/list.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -13584,12 +13470,6 @@ parameters: count: 1 path: ../../../htdocs/expensereport/card.php - - - message: '#^If condition is always true\.$#' - identifier: if.alwaysTrue - count: 5 - path: ../../../htdocs/expensereport/card.php - - message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' identifier: equal.alwaysFalse @@ -13770,12 +13650,6 @@ parameters: count: 1 path: ../../../htdocs/expensereport/payment/list.php - - - message: '#^Variable \$toselect might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/expensereport/payment/list.php - - message: '#^Comparison operation "\>" between 1 and 1 is always false\.$#' identifier: greater.alwaysFalse @@ -14610,18 +14484,6 @@ parameters: count: 1 path: ../../../htdocs/fourn/commande/list.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/fourn/commande/list.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/fourn/commande/list.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -17244,12 +17106,6 @@ parameters: count: 1 path: ../../../htdocs/mrp/mo_agenda.php - - - message: '#^Variable \$socid might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/mrp/mo_agenda.php - - message: '#^Property Mo\:\:\$entity \(int\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -22662,18 +22518,6 @@ parameters: count: 1 path: ../../../htdocs/supplier_proposal/list.php - - - message: '#^Loose comparison using \=\= between \-1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/supplier_proposal/list.php - - - - message: '#^Loose comparison using \=\= between \-1 and 1 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/supplier_proposal/list.php - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable