mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
c6333c7782
commit
d79b3ba8ec
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user