From c948d97ecfab454b5a49e7b4b02566e2acf7bf66 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Thu, 18 Jan 2024 21:20:26 +0100 Subject: [PATCH] fix: phpstan htdocs/reception/dispatch.php 196 Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept array|string. --- htdocs/reception/dispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/reception/dispatch.php b/htdocs/reception/dispatch.php index 05ae583dedb..2e895150463 100644 --- a/htdocs/reception/dispatch.php +++ b/htdocs/reception/dispatch.php @@ -193,7 +193,7 @@ if ($action == 'updatelines' && $permissiontoreceive) { } else { $qtystart = $supplierorderdispatch->qty; $supplierorderdispatch->qty = GETPOST($qty); - $supplierorderdispatch->fk_entrepot = GETPOST($ent, 'int'); + $supplierorderdispatch->fk_entrepot = GETPOSTINT($ent); if ($modebatch == "batch") { $supplierorderdispatch->eatby = $dDLUO; $supplierorderdispatch->sellby = $dDLC;