From 51de68d87b17ddc53431f1d7c0c608cd5364cb4d Mon Sep 17 00:00:00 2001 From: thibdrev Date: Fri, 26 Jan 2024 09:09:16 +0100 Subject: [PATCH] qual: phpstan for htdocs/delivery/card.php htdocs/delivery/card.php 105 Property Delivery::$fk_incoterms (int) does not accept array|string. --- htdocs/delivery/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/delivery/card.php b/htdocs/delivery/card.php index 54e1cb1e07f..f87ac1bada3 100644 --- a/htdocs/delivery/card.php +++ b/htdocs/delivery/card.php @@ -102,7 +102,7 @@ if ($action == 'add') { $object->note = GETPOST("note", 'restricthtml'); $object->note_private = GETPOST("note", 'restricthtml'); $object->commande_id = GETPOST("commande_id", 'int'); - $object->fk_incoterms = GETPOST('incoterm_id', 'int'); + $object->fk_incoterms = GETPOSTINT('incoterm_id'); /* ->entrepot_id seems to not exists if (!getDolGlobalInt('MAIN_SUBMODULE_EXPEDITION') && isModEnabled('stock')) {