fix phpstan (#28445)

Default value of the parameter #9 $fk_unit (string) of method BOM::addLine() is incompatible with type int.
This commit is contained in:
Frédéric FRANCE 2024-02-27 00:14:53 +01:00 committed by GitHub
parent 02ec0bcd74
commit cadbb0cea1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -600,7 +600,7 @@ class BOM extends CommonObject
* @param int $fk_default_workstation Default workstation
* @return int Return integer <0 if KO, Id of created object if OK
*/
public function addLine($fk_product, $qty, $qty_frozen = 0, $disable_stock_change = 0, $efficiency = 1.0, $position = -1, $fk_bom_child = null, $import_key = null, $fk_unit = '', $array_options = array(), $fk_default_workstation = null)
public function addLine($fk_product, $qty, $qty_frozen = 0, $disable_stock_change = 0, $efficiency = 1.0, $position = -1, $fk_bom_child = null, $import_key = null, $fk_unit = 0, $array_options = array(), $fk_default_workstation = null)
{
global $mysoc, $conf, $langs, $user;