mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user