Fix PhanTypeSuspiciousStringExpression

This commit is contained in:
MDW 2024-03-16 16:40:36 +01:00
parent 7f4c1fbd06
commit f4c8bc5b1d
No known key found for this signature in database

View File

@ -3050,7 +3050,8 @@ class ExpeditionLigne extends CommonObjectLine
// update lot
if (!empty($batch) && isModEnabled('productbatch')) {
dol_syslog(get_class($this)."::update expedition batch id=$expedition_batch_id, batch_id=$batch_id, batch=$batch");
$batch_id_str = $batch_id ?? 'null';
dol_syslog(get_class($this)."::update expedition batch id=$expedition_batch_id, batch_id=$batch_id_str, batch=$batch");
if (empty($batch_id) || empty($this->fk_product)) {
dol_syslog(get_class($this).'::update missing fk_origin_stock (batch_id) and/or fk_product', LOG_ERR);