From d79b3ba8ec33af9e498fff4cdefa0561a2ca7c19 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Thu, 7 Mar 2024 18:57:38 +0100 Subject: [PATCH] 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. --- htdocs/expedition/class/expedition.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 1079f834024..b9b21899b28 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -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)) {