From 5a6654890c5fe893a5ee4e5d5df54837fdb7d081 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 31 Jul 2025 21:49:42 +0200 Subject: [PATCH] PHPStan > Update baseline (#34838) Co-authored-by: Dolibot --- dev/build/phpstan/phpstan-baseline.neon | 64 ++----------------------- 1 file changed, 5 insertions(+), 59 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 85e114e3336..a3228890f73 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -3168,12 +3168,6 @@ parameters: count: 2 path: ../../../htdocs/comm/action/pertype.php - - - message: '#^Parameter \#1 \$string of function urlencode expects string, int\<0, 23\> given\.$#' - identifier: argument.type - count: 1 - path: ../../../htdocs/comm/action/pertype.php - - message: '#^Result of && is always false\.$#' identifier: booleanAnd.alwaysFalse @@ -3252,12 +3246,6 @@ parameters: count: 2 path: ../../../htdocs/comm/action/peruser.php - - - message: '#^Ternary operator condition is always true\.$#' - identifier: ternary.alwaysTrue - count: 4 - path: ../../../htdocs/comm/action/peruser.php - - message: '#^Variable \$labelbytype might not be defined\.$#' identifier: variable.undefined @@ -10041,7 +10029,7 @@ parameters: - message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' identifier: isset.property - count: 5 + count: 3 path: ../../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php - @@ -10065,7 +10053,7 @@ parameters: - message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' identifier: isset.property - count: 5 + count: 4 path: ../../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php - @@ -10197,7 +10185,7 @@ parameters: - message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' identifier: isset.property - count: 5 + count: 4 path: ../../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php - @@ -10263,7 +10251,7 @@ parameters: - message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' identifier: isset.property - count: 5 + count: 3 path: ../../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php - @@ -11271,7 +11259,7 @@ parameters: - message: '#^Property CommonObject\:\:\$multicurrency_tx \(array\\|float\) in isset\(\) is not nullable\.$#' identifier: isset.property - count: 5 + count: 4 path: ../../../htdocs/core/modules/propale/doc/pdf_azur.modules.php - @@ -11808,12 +11796,6 @@ parameters: count: 1 path: ../../../htdocs/core/tpl/objectline_title.tpl.php - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/core/tpl/objectline_title.tpl.php - - message: '#^Variable \$outputalsopricetotalwithtax might not be defined\.$#' identifier: variable.undefined @@ -12096,30 +12078,12 @@ parameters: count: 1 path: ../../../htdocs/cron/list.php - - - message: '#^Offset ''css'' on array\{css\: ''minwidth200'', picto\: mixed\} in empty\(\) always exists and is not falsy\.$#' - identifier: empty.offset - count: 1 - path: ../../../htdocs/datapolicy/admin/setup.php - - message: '#^If condition is always false\.$#' identifier: if.alwaysFalse count: 3 path: ../../../htdocs/datapolicy/class/datapolicy.class.php - - - message: '#^Loose comparison using \=\= between ''anonymize'' and ''anonymize'' will always evaluate to true\.$#' - identifier: equal.alwaysTrue - count: 1 - path: ../../../htdocs/datapolicy/class/datapolicycron.class.php - - - - message: '#^Loose comparison using \=\= between ''anonymize'' and ''delete'' will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/datapolicy/class/datapolicycron.class.php - - message: '#^Method CdavLib\:\:getFullCalendarObjects\(\) should return array\\> but returns list\\>\.$#' identifier: return.type @@ -13290,18 +13254,6 @@ parameters: count: 1 path: ../../../htdocs/expensereport/card.php - - - message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' - identifier: equal.alwaysFalse - count: 1 - path: ../../../htdocs/expensereport/card.php - - - - message: '#^Result of && is always false\.$#' - identifier: booleanAnd.alwaysFalse - count: 2 - path: ../../../htdocs/expensereport/card.php - - message: '#^Ternary operator condition is always false\.$#' identifier: ternary.alwaysFalse @@ -16080,12 +16032,6 @@ parameters: count: 1 path: ../../../htdocs/main.inc.php - - - message: '#^Call to preg_quote\(\) is missing delimiter / to be effective\.$#' - identifier: argument.invalidPregQuote - count: 3 - path: ../../../htdocs/main.inc.php - - message: '#^Elseif condition is always true\.$#' identifier: elseif.alwaysTrue