qual: phpstan for htdocs/expedition/class/expedition.class.php (#28686)

htdocs/expedition/class/expedition.class.php	1245	Property CommonObject::$origin (CommonObject|string) does not accept null.
htdocs/expedition/class/expedition.class.php	1438	Property CommonObject::$origin (CommonObject|string) does not accept null.
This commit is contained in:
thibdrev
2024-03-07 18:57:38 +01:00
committed by GitHub
parent c6333c7782
commit d79b3ba8ec

View File

@@ -1242,7 +1242,7 @@ class Expedition extends CommonObject
$mouvS = new MouvementStock($this->db);
// we do not log origin because it will be deleted
$mouvS->origin = null;
$mouvS->origin = '';
// get lot/serial
$lotArray = null;
if (isModEnabled('productbatch')) {
@@ -1440,7 +1440,7 @@ class Expedition extends CommonObject
$mouvS = new MouvementStock($this->db);
// we do not log origin because it will be deleted
$mouvS->origin = null;
$mouvS->origin = '';
// get lot/serial
$lotArray = $shipmentlinebatch->fetchAll($obj->expeditiondet_id);
if (!is_array($lotArray)) {