From 419e208a7763ec83aab6d4dfecc7f7a2ee342f6b Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sun, 5 Oct 2025 16:56:09 +0200 Subject: [PATCH] Fix CI --- htdocs/product/dynamic_price/class/price_parser.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/dynamic_price/class/price_parser.class.php b/htdocs/product/dynamic_price/class/price_parser.class.php index d5e714439f4..09351062249 100644 --- a/htdocs/product/dynamic_price/class/price_parser.class.php +++ b/htdocs/product/dynamic_price/class/price_parser.class.php @@ -118,11 +118,11 @@ class PriceParser if (in_array($code, array(9, 14, 19, 20))) { //Errors which have 0 arg return $langs->trans("ErrorPriceExpression".$code); } elseif (in_array($code, array(1, 2, 3, 4, 5, 8, 10, 11, 17, 21, 22))) { //Errors which have 1 arg - return $langs->trans("ErrorPriceExpression".$code, $info); + return $langs->trans("ErrorPriceExpression".$code, (string) $info); } elseif (in_array($code, array(6, 23))) { //Errors which have 2 args return $langs->trans("ErrorPriceExpression".$code, $info[0], $info[1]); } elseif (in_array($code, array(7, 12, 13, 15, 16, 18))) { //Internal errors - return $langs->trans("ErrorPriceExpressionInternal", $code); + return $langs->trans("ErrorPriceExpressionInternal", (string) $code); } else { //Unknown errors return $langs->trans("ErrorPriceExpressionUnknown", $code); }