From f3d3573bfb241eda77e6b0e5e3c79d4c8f96952e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 30 Sep 2024 10:07:04 +0200 Subject: [PATCH] fix phpstan (#31194) * fix phpstan * fix phpstan * fix phpstan --- htdocs/fichinter/class/fichinterrec.class.php | 2 +- phpstan.neon.dist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/class/fichinterrec.class.php b/htdocs/fichinter/class/fichinterrec.class.php index 6d8a56c4bf0..8b75dd0fcc3 100644 --- a/htdocs/fichinter/class/fichinterrec.class.php +++ b/htdocs/fichinter/class/fichinterrec.class.php @@ -255,7 +255,7 @@ class FichinterRec extends Fichinter $fichintsrc->lines[$i]->remise_percent, 'HT', 0, - '', + 0, 0, $fichintsrc->lines[$i]->product_type, $fichintsrc->lines[$i]->special_code, diff --git a/phpstan.neon.dist b/phpstan.neon.dist index d59eea39191..3777c4b2d3e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -75,7 +75,7 @@ parameters: - '#::(options)\(\) expects int\|string#' - '# (print_barre_liste|dol_substr) expects int\|null#' - '#(?:colorAdjustBrightness|imap_(?:(?:fetch)?body|fetchstructure)) expects int, string#' - - '#(sendTicketMessageByEmail|addItemsFact|update_price|recur|addDepreciationLine|addline|generate|update|getSelectConditionsPaiements|select_state|listBoxes|addLineRec|literalBarcodeType)\(\) expects int, string#' + - '#(sendTicketMessageByEmail|addItemsFact|update_price|recur|addDepreciationLine|addline|generate|update|getSelectConditionsPaiements|select_state|listBoxes|literalBarcodeType)\(\) expects int, string#' - '#on array{url: mixed} in empty\(\) does not exist.#' - '#EvalMath::trigger\(\) expects string, int given#' - '# Diff::generatePartialDiff\(\) expects array#'