From b2af85a9bee612952e4bb4694d440404f09dcf49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 13 Jan 2024 15:35:55 +0100 Subject: [PATCH] fix phpstan (#27475) * fix phpstan * Update mod_codeproduct_leopard.php --- htdocs/core/modules/product/mod_codeproduct_elephant.php | 4 ++-- htdocs/core/modules/product/mod_codeproduct_leopard.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/modules/product/mod_codeproduct_elephant.php b/htdocs/core/modules/product/mod_codeproduct_elephant.php index 1304caa7e0b..6d6b1591a01 100644 --- a/htdocs/core/modules/product/mod_codeproduct_elephant.php +++ b/htdocs/core/modules/product/mod_codeproduct_elephant.php @@ -142,7 +142,7 @@ class mod_codeproduct_elephant extends ModeleProductCode * @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect) * @return string Return string example */ - public function getExample($langs, $objproduct = 0, $type = -1) + public function getExample($langs, $objproduct = null, $type = -1) { $exampleproduct = $exampleservice = ''; @@ -183,7 +183,7 @@ class mod_codeproduct_elephant extends ModeleProductCode * @param int $type Produit ou service (0:product, 1:service) * @return string Value if OK, '' if module not configured, <0 if KO */ - public function getNextValue($objproduct = 0, $type = -1) + public function getNextValue($objproduct = null, $type = -1) { global $db, $conf; diff --git a/htdocs/core/modules/product/mod_codeproduct_leopard.php b/htdocs/core/modules/product/mod_codeproduct_leopard.php index 384fff9a915..9969a46b92f 100644 --- a/htdocs/core/modules/product/mod_codeproduct_leopard.php +++ b/htdocs/core/modules/product/mod_codeproduct_leopard.php @@ -103,7 +103,7 @@ class mod_codeproduct_leopard extends ModeleProductCode * @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect) * @return string Return string example */ - public function getExample($langs, $objproduct = 0, $type = -1) + public function getExample($langs, $objproduct = null, $type = -1) { return ''; } @@ -115,7 +115,7 @@ class mod_codeproduct_leopard extends ModeleProductCode * @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect) * @return string Return next value */ - public function getNextValue($objproduct = 0, $type = -1) + public function getNextValue($objproduct = null, $type = -1) { return ''; }