fix phpstan (#27475)

* fix phpstan

* Update mod_codeproduct_leopard.php
This commit is contained in:
Frédéric FRANCE 2024-01-13 15:35:55 +01:00 committed by GitHub
parent b3059c566a
commit b2af85a9be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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 '';
}