From b33386ba0dbe4e076a5bfd4da20bd9ca56055240 Mon Sep 17 00:00:00 2001 From: MDW Date: Thu, 27 Nov 2025 22:06:51 +0100 Subject: [PATCH] qual: Update phpstan-baseline.neon to remove unresolvable type issues Removed multiple entries related to unresolvable types in dol_sort_array function calls and property assignments. --- dev/build/phpstan/phpstan-baseline.neon | 72 ------------------------- 1 file changed, 72 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 8b5d79a5e40..678d591e9ee 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -1038,18 +1038,6 @@ parameters: count: 1 path: ../../../htdocs/admin/website.php - - - message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' - identifier: argument.unresolvableType - count: 1 - path: ../../../htdocs/admin/workflow.php - - - - message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' - identifier: function.unresolvableReturnType - count: 1 - path: ../../../htdocs/admin/workflow.php - - message: '#^Loose comparison using \=\= between ''edit'' and ''edit'' will always evaluate to true\.$#' identifier: equal.alwaysTrue @@ -1596,24 +1584,12 @@ parameters: count: 1 path: ../../../htdocs/categories/class/categorie.class.php - - - message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' - identifier: argument.unresolvableType - count: 1 - path: ../../../htdocs/categories/class/categorie.class.php - - message: '#^Property Categorie\:\:\$cats \(array\\) does not accept array\\.$#' identifier: assign.propertyType count: 2 path: ../../../htdocs/categories/class/categorie.class.php - - - message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' - identifier: function.unresolvableReturnType - count: 1 - path: ../../../htdocs/categories/class/categorie.class.php - - message: '#^If condition is always true\.$#' identifier: if.alwaysTrue @@ -5646,12 +5622,6 @@ parameters: count: 2 path: ../../../htdocs/core/class/html.form.class.php - - - message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' - identifier: argument.unresolvableType - count: 3 - path: ../../../htdocs/core/class/html.form.class.php - - message: '#^Parameter \#15 \$excludeids of method Form\:\:select_company\(\) expects array\, array\ given\.$#' identifier: argument.type @@ -5718,12 +5688,6 @@ parameters: count: 1 path: ../../../htdocs/core/class/html.form.class.php - - - message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' - identifier: function.unresolvableReturnType - count: 3 - path: ../../../htdocs/core/class/html.form.class.php - - message: '#^Right side of && is always true\.$#' identifier: booleanAnd.rightAlwaysTrue @@ -5760,24 +5724,12 @@ parameters: 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 - count: 1 - path: ../../../htdocs/core/class/html.formcompany.class.php - - message: '#^Parameter \#3 \$selected of method Form\:\:multiselectarray\(\) expects array\, array\\|int\> given\.$#' identifier: argument.type count: 1 path: ../../../htdocs/core/class/html.formcompany.class.php - - - message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' - identifier: function.unresolvableReturnType - count: 1 - path: ../../../htdocs/core/class/html.formcompany.class.php - - message: '#^Variable \$idprof might not be defined\.$#' identifier: variable.undefined @@ -10794,18 +10746,6 @@ parameters: count: 1 path: ../../../htdocs/main.inc.php - - - message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' - identifier: argument.unresolvableType - count: 1 - path: ../../../htdocs/margin/agentMargins.php - - - - message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' - identifier: function.unresolvableReturnType - count: 1 - path: ../../../htdocs/margin/agentMargins.php - - message: '#^Ternary operator condition is always false\.$#' identifier: ternary.alwaysFalse @@ -15666,12 +15606,6 @@ parameters: count: 3 path: ../../../htdocs/user/class/user.class.php - - - message: '#^Parameter \#1 \$array of function dol_sort_array contains unresolvable type\.$#' - identifier: argument.unresolvableType - count: 1 - path: ../../../htdocs/user/class/user.class.php - - message: '#^Property User\:\:\$rights \(stdClass\) in empty\(\) is not falsy\.$#' identifier: empty.property @@ -15726,12 +15660,6 @@ parameters: count: 4 path: ../../../htdocs/user/class/user.class.php - - - message: '#^Return type of call to function dol_sort_array contains unresolvable type\.$#' - identifier: function.unresolvableReturnType - count: 1 - path: ../../../htdocs/user/class/user.class.php - - message: '#^Variable \$whereforadd in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable