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:
thibdrev
2024-01-30 22:19:43 +01:00
committed by GitHub
parent ebf5fd261b
commit e3ef3996db

View File

@@ -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++;