Skip to content

Commit

Permalink
qual: phpstan for htdocs/fourn/class/fournisseur.commande.dispatch.cl…
Browse files Browse the repository at this point in the history
…ass.php (#28035)

htdocs/fourn/class/fournisseur.commande.dispatch.class.php	156	Property CommandeFournisseurDispatch::$fk_commande (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	159	Property CommandeFournisseurDispatch::$fk_product (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	162	Property CommandeFournisseurDispatch::$fk_commandefourndet (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	168	Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	171	Property CommandeFournisseurDispatch::$fk_user (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	177	Property CommandeFournisseurDispatch::$status (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	355	Property CommandeFournisseurDispatch::$fk_commande (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	358	Property CommandeFournisseurDispatch::$fk_product (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	361	Property CommandeFournisseurDispatch::$fk_commandefourndet (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	367	Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	370	Property CommandeFournisseurDispatch::$fk_user (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	376	Property CommandeFournisseurDispatch::$status (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	629	Property CommandeFournisseurDispatch::$fk_commande (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	630	Property CommandeFournisseurDispatch::$fk_product (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	631	Property CommandeFournisseurDispatch::$fk_commandefourndet (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	633	Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	634	Property CommandeFournisseurDispatch::$fk_user (int) does not accept string.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php	637	Property CommandeFournisseurDispatch::$status (int) does not accept string.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
  • Loading branch information
thibdrev and eldy authored Feb 9, 2024
1 parent f6fc932 commit c19ad24
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions htdocs/fourn/class/fournisseur.commande.dispatch.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ class CommandeFournisseurDispatch extends CommonObjectLine
*/
public $status;

/**
* @var int timestamp
*/
public $tms = '';
public $batch;
public $eatby = '';
Expand Down Expand Up @@ -153,28 +156,28 @@ public function create($user, $notrigger = 0)
// Clean parameters

if (isset($this->fk_commande)) {
$this->fk_commande = trim($this->fk_commande);
$this->fk_commande = (int) $this->fk_commande;
}
if (isset($this->fk_product)) {
$this->fk_product = trim($this->fk_product);
$this->fk_product = (int) $this->fk_product;
}
if (isset($this->fk_commandefourndet)) {
$this->fk_commandefourndet = trim($this->fk_commandefourndet);
$this->fk_commandefourndet = (int) $this->fk_commandefourndet;
}
if (isset($this->qty)) {
$this->qty = trim($this->qty);
}
if (isset($this->fk_entrepot)) {
$this->fk_entrepot = trim($this->fk_entrepot);
$this->fk_entrepot = (int) $this->fk_entrepot;
}
if (isset($this->fk_user)) {
$this->fk_user = trim($this->fk_user);
$this->fk_user = (int) $this->fk_user;
}
if (isset($this->comment)) {
$this->comment = trim($this->comment);
}
if (isset($this->status)) {
$this->status = trim($this->status);
$this->status = (int) $this->status;
}
if (isset($this->batch)) {
$this->batch = trim($this->batch);
Expand Down Expand Up @@ -352,28 +355,28 @@ public function update($user, $notrigger = 0)
// Clean parameters

if (isset($this->fk_commande)) {
$this->fk_commande = trim($this->fk_commande);
$this->fk_commande = (int) $this->fk_commande;
}
if (isset($this->fk_product)) {
$this->fk_product = trim($this->fk_product);
$this->fk_product = (int) $this->fk_product;
}
if (isset($this->fk_commandefourndet)) {
$this->fk_commandefourndet = trim($this->fk_commandefourndet);
$this->fk_commandefourndet = (int) $this->fk_commandefourndet;
}
if (isset($this->qty)) {
$this->qty = trim($this->qty);
}
if (isset($this->fk_entrepot)) {
$this->fk_entrepot = trim($this->fk_entrepot);
$this->fk_entrepot = (int) $this->fk_entrepot;
}
if (isset($this->fk_user)) {
$this->fk_user = trim($this->fk_user);
$this->fk_user = (int) $this->fk_user;
}
if (isset($this->comment)) {
$this->comment = trim($this->comment);
}
if (isset($this->status)) {
$this->status = trim($this->status);
$this->status = (int) $this->status;
}
if (isset($this->batch)) {
$this->batch = trim($this->batch);
Expand Down Expand Up @@ -626,16 +629,16 @@ public function initAsSpecimen()
{
$this->id = 0;

$this->fk_commande = '';
$this->fk_product = '';
$this->fk_commandefourndet = '';
$this->fk_commande = 0;
$this->fk_product = 0;
$this->fk_commandefourndet = 0;
$this->qty = '';
$this->fk_entrepot = '';
$this->fk_user = '';
$this->fk_entrepot = 0;
$this->fk_user = 0;
$this->datec = '';
$this->comment = '';
$this->status = '';
$this->tms = '';
$this->status = 0;
$this->tms = dol_now();
$this->batch = '';
$this->eatby = '';
$this->sellby = '';
Expand Down

0 comments on commit c19ad24

Please sign in to comment.