From e3ef3996dbe7c51bba3c0e5bd92d00a09f9c6715 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Tue, 30 Jan 2024 22:19:43 +0100 Subject: [PATCH] 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. --- htdocs/expedition/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index decb5ab0cf3..6bf40733ed9 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -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++;