From 9e9893ac724b996da2de41788f4303c2fda990bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Mon, 7 Jul 2025 18:12:47 +0200 Subject: [PATCH 1/2] fix typo documentation error on api stockmovement (#34703) --- htdocs/product/stock/class/api_stockmovements.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/stock/class/api_stockmovements.class.php b/htdocs/product/stock/class/api_stockmovements.class.php index 7d611017be6..c9db69f0095 100644 --- a/htdocs/product/stock/class/api_stockmovements.class.php +++ b/htdocs/product/stock/class/api_stockmovements.class.php @@ -89,7 +89,7 @@ class StockMovements extends DolibarrApi * @param string $sortorder Sort order * @param int $limit Limit for list * @param int $page Page number - * @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.product_id:=:1) and (t.date_creation:<:'20160101')" + * @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.fk_product:=:1) and (t.date_creation:<:'20160101')" * @param string $properties Restrict the data returned to these properties. Ignored if empty. Comma separated list of properties names * @return array Array of warehouse objects * @phan-return MouvementStock[] From dac95c340b6be43be73b459a81a1ef0d0e062758 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 19:13:28 +0300 Subject: [PATCH 2/2] PHPStan > Update baseline (#34701) Co-authored-by: Dolibot --- dev/build/phpstan/phpstan-baseline.neon | 158 +----------------------- 1 file changed, 1 insertion(+), 157 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 9d8572699e5..7bc6689a9f9 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -3816,24 +3816,6 @@ parameters: count: 1 path: ../../../htdocs/commande/contact.php - - - message: '#^Variable \$addu might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/commande/customer.php - - - - message: '#^Variable \$begin might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/commande/customer.php - - - - message: '#^Variable \$maxlen might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/commande/customer.php - - message: '#^Variable \$socid might not be defined\.$#' identifier: variable.undefined @@ -9486,36 +9468,6 @@ parameters: count: 1 path: ../../../htdocs/core/lib/functions.lib.php - - - message: '#^Property CommonObject\:\:\$firstname \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../../htdocs/core/lib/functions.lib.php - - - - message: '#^Property CommonObject\:\:\$id \(int\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/core/lib/functions.lib.php - - - - message: '#^Property CommonObject\:\:\$lastname \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../../htdocs/core/lib/functions.lib.php - - - - message: '#^Property CommonObject\:\:\$multicurrency_code \(array\\|string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/core/lib/functions.lib.php - - - - message: '#^Property CommonObject\:\:\$multicurrency_total_ttc \(float\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 3 - path: ../../../htdocs/core/lib/functions.lib.php - - message: '#^Result of && is always true\.$#' identifier: booleanAnd.alwaysTrue @@ -10644,12 +10596,6 @@ parameters: count: 2 path: ../../../htdocs/core/modules/member/doc/pdf_standard_member.class.php - - - message: '#^Property Adherent\:\:\$photo \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/core/modules/member/doc/pdf_standard_member.class.php - - message: '#^Property DolibarrModules\:\:\$import_convertvalue_array \(array\\>\) does not accept non\-empty\-array\\>\.$#' identifier: assign.propertyType @@ -13401,7 +13347,7 @@ parameters: - message: '#^Result of && is always false\.$#' identifier: booleanAnd.alwaysFalse - count: 3 + count: 2 path: ../../../htdocs/expensereport/card.php - @@ -18588,78 +18534,6 @@ parameters: count: 1 path: ../../../htdocs/product/stock/massstockmove.php - - - message: '#^Negated boolean expression is always false\.$#' - identifier: booleanNot.alwaysFalse - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Property Product\:\:\$pmp \(float\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$backtopage might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$comref might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#' - identifier: empty.variable - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$d_eatby might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$d_sellby might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$massaction might not be defined\.$#' - identifier: variable.undefined - count: 4 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$obj might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$sall might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$toselect might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - - - message: '#^Variable \$totalarray might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_card.php - - message: '#^Loose comparison using \=\= between 1 and 2 will always evaluate to false\.$#' identifier: equal.alwaysFalse @@ -18678,12 +18552,6 @@ parameters: count: 2 path: ../../../htdocs/product/stock/movement_list.php - - - message: '#^Property Product\:\:\$pmp \(float\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/product/stock/movement_list.php - - message: '#^Result of && is always false\.$#' identifier: booleanAnd.alwaysFalse @@ -18696,18 +18564,6 @@ parameters: count: 1 path: ../../../htdocs/product/stock/movement_list.php - - - message: '#^Variable \$d_eatby might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_list.php - - - - message: '#^Variable \$d_sellby might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/product/stock/movement_list.php - - message: '#^Variable \$diroutputmassaction in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -18750,12 +18606,6 @@ parameters: count: 1 path: ../../../htdocs/product/stock/product.php - - - message: '#^Property Product\:\:\$pmp \(float\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/product/stock/product.php - - message: '#^Variable \$sortfield might not be defined\.$#' identifier: variable.undefined @@ -19986,12 +19836,6 @@ parameters: count: 1 path: ../../../htdocs/public/members/new.php - - - message: '#^Property Adherent\:\:\$photo \(string\) in isset\(\) is not nullable\.$#' - identifier: isset.property - count: 1 - path: ../../../htdocs/public/members/public_card.php - - message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' identifier: function.alreadyNarrowedType