From 1ca92fe72e98e3e1bf99a9429f8b309c74238a3a Mon Sep 17 00:00:00 2001 From: thibdrev Date: Fri, 19 Jan 2024 20:14:10 +0100 Subject: [PATCH] qual: phpstan htdocs/public/project/suggestbooth.php 258 Property Societe::$country_id (int) does not accept array|string. htdocs/public/project/suggestbooth.php 259 Property CommonObject::$state_id (int) does not accept array|string. --- htdocs/public/project/suggestbooth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/public/project/suggestbooth.php b/htdocs/public/project/suggestbooth.php index d6d59113ab5..49ec4f9cd17 100644 --- a/htdocs/public/project/suggestbooth.php +++ b/htdocs/public/project/suggestbooth.php @@ -255,8 +255,8 @@ if (empty($reshook) && $action == 'add') { $thirdparty->town = GETPOST("town"); $thirdparty->client = $thirdparty::PROSPECT; $thirdparty->fournisseur = 0; - $thirdparty->country_id = GETPOST("country_id", 'int'); - $thirdparty->state_id = GETPOST("state_id", 'int'); + $thirdparty->country_id = GETPOSTINT("country_id"); + $thirdparty->state_id = GETPOSTINT("state_id"); $thirdparty->email = ($emailcompany ? $emailcompany : $email); // Load object modCodeTiers