mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Qual: Fix phan notices (#35406)
* fix CI * fix * Qual: Fix newly appeard phan notices # Qual: Fix newly appeard phan notices Fix notices that appearce sin a previous phan report - some of these notices are masked by the current baseline. --------- Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com> Co-authored-by: Frédéric FRANCE <frederic.france@free.fr>
This commit is contained in:
@@ -3243,7 +3243,7 @@ class Commande extends CommonOrder
|
||||
|
||||
if ($product_stock < $qty) {
|
||||
$langs->load("errors");
|
||||
$this->error = $langs->trans('ErrorStockIsNotEnoughToAddProductOnOrder', $product->ref);
|
||||
$this->error = $langs->trans('ErrorStockIsNotEnoughToAddProductOnOrder', (string) $product->ref);
|
||||
$this->errors[] = $this->error;
|
||||
|
||||
dol_syslog(get_class($this)."::addline error=Product ".$product->ref.": ".$this->error, LOG_ERR);
|
||||
|
||||
Reference in New Issue
Block a user