qual: phpstan for htdocs/expedition/card.php
htdocs/expedition/card.php 761 Property ExpeditionLigne::$entrepot_id (int) does not accept array|string. htdocs/expedition/card.php 762 Property ExpeditionLigne::$qty (float) does not accept array|string.
This commit is contained in:
parent
ebf5fd261b
commit
e3ef3996db
1 changed files with 2 additions and 2 deletions
|
|
@ -758,8 +758,8 @@ if (empty($reshook)) {
|
|||
$stockLocation = 0;
|
||||
$qty = "qtyl".$line_id;
|
||||
$line->id = $line_id;
|
||||
$line->entrepot_id = GETPOST($stockLocation, 'int');
|
||||
$line->qty = GETPOST($qty, 'int');
|
||||
$line->entrepot_id = GETPOSTINT($stockLocation);
|
||||
$line->qty = GETPOSTFLOAT($qty);
|
||||
if ($line->update($user) < 0) {
|
||||
setEventMessages($line->error, $line->errors, 'errors');
|
||||
$error++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue