mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 03:12:35 +01:00
fix phpstan is incompatible with
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
|
||||
@@ -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 '';
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user