fix phpstan (#27475)
* fix phpstan * Update mod_codeproduct_leopard.php
This commit is contained in:
parent
b3059c566a
commit
b2af85a9be
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue