From c8d42248c2265e2cba83aac2b107cca238100d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 4 Nov 2025 12:25:24 +0100 Subject: [PATCH] fix CI V21 (#36078) * Update phpstan.neon.dist * Update phpstan-baseline.neon * Update phpstan-baseline.neon * Update phpstan-baseline.neon * Update index.php * Update facture.class.php * Update facture.class.php --- htdocs/compta/facture/class/facture.class.php | 2 +- htdocs/index.php | 2 +- phpstan.neon.dist | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 79548c3ec68..bdd2c697745 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -3953,7 +3953,7 @@ class Facture extends CommonInvoice if (empty($fk_prev_id)) { $fk_prev_id = 'null'; } - if (!isset($situation_percent) || $situation_percent > 100 || (string) $situation_percent == '' || $situation_percent === null) { + if (!isset($situation_percent) || $situation_percent > 100 || (string) $situation_percent == '') { // INVOICE_USE_SITUATION = 2 - Lines situation percent on new lines must be 0 (No cumulative) if ($this->isSituationInvoice() && getDolGlobalInt('INVOICE_USE_SITUATION') == 2) { $situation_percent = 0; diff --git a/htdocs/index.php b/htdocs/index.php index 67a4c70798d..c09d8484342 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -129,7 +129,7 @@ if (getDolGlobalString('MAIN_MOTD')) { */ // Specific warning to propose to upgrade invoice situation to progressive mode -if (getDolGlobalInt('INVOICE_USE_SITUATION') == 1 && (float) DOL_VERSION >= 22.0) { +if (getDolGlobalInt('INVOICE_USE_SITUATION') == 1 && (float) DOL_VERSION >= 22.0) { // @phpstan-ignore-line $langs->loadLangs(array("admin")); print info_admin($langs->trans("WarningExperimentalFeatureInvoiceSituationNeedToUpgradeToProgressiveMode", 'https://partners.dolibarr.org')); //print "
"; diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 91d20f78748..e15e36f7c1e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,6 +1,7 @@ includes: - build/phpstan/phpstan-baseline.neon parameters: + phpVersion: 80200 # PHP 8.2 tmpDir: ./.github/tmp parallel: # Commented some of the settings, reminding the defaults: