mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-09 01:12:33 +01:00
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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user