fix phpstan (#27489)

This commit is contained in:
Frédéric FRANCE 2024-01-13 15:30:07 +01:00 committed by GitHub
parent 7a4d84a9f7
commit 67b9e453a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,7 +381,7 @@ class Productbatch extends CommonObject
* @param int $fk_warehouse filter on warehouse (use it if you don't have $fk_product_stock)
* @return int Return integer <0 if KO, >0 if OK
*/
public function find($fk_product_stock = 0, $eatby = '', $sellby = '', $batch_number = '', $fk_warehouse = 0)
public function find($fk_product_stock = 0, $eatby = null, $sellby = null, $batch_number = '', $fk_warehouse = 0)
{
$where = array();
$sql = "SELECT";