fix phpstan is incompatible with

This commit is contained in:
Frédéric France
2024-03-14 19:02:16 +01:00
parent ad13f6fc76
commit a9847bb44c
3 changed files with 13 additions and 13 deletions

View File

@@ -118,12 +118,12 @@ class mod_codeproduct_elephant extends ModeleProductCode
/**
* Return an example of result returned by getNextValue
*
* @param Translate $langs Object langs
* @param Product $objproduct Object product
* @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect)
* @return string Return string example
* @param Translate $langs Object langs
* @param Product|string $objproduct Object product
* @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect)
* @return string Return string example
*/
public function getExample($langs, $objproduct = null, $type = -1)
public function getExample($langs, $objproduct = '', $type = -1)
{
$exampleproduct = $exampleservice = '';

View File

@@ -85,11 +85,11 @@ class mod_codeproduct_leopard extends ModeleProductCode
/**
* Return an example of result returned by getNextValue
*
* @param ?Product $objproduct Object product
* @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect)
* @return string Return next value
* @param Product|string $objproduct Object product
* @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect)
* @return string Return next value
*/
public function getNextValue($objproduct = null, $type = -1)
public function getNextValue($objproduct = '', $type = -1)
{
return '';
}

View File

@@ -64,11 +64,11 @@ abstract class ModeleProductCode extends CommonNumRefGenerator
/**
* Return next value available
*
* @param ?Product $objproduct Object product
* @param int $type Type
* @return string Value
* @param Product|string $objproduct Object product
* @param int $type Type
* @return string Value
*/
public function getNextValue($objproduct = null, $type = -1)
public function getNextValue($objproduct = '', $type = -1)
{
global $langs;
return $langs->trans("Function_getNextValue_InModuleNotWorking");