From b8314209ce392a5cd104a91bff948e9b95620752 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Mon, 29 Jan 2024 19:13:04 +0100 Subject: [PATCH] qual: phspstan for htdocs/public/eventorganization/attendee_new.php htdocs/public/eventorganization/attendee_new.php 468 Property Societe::$country_id (int) does not accept array|string. htdocs/public/eventorganization/attendee_new.php 469 Property CommonObject::$state_id (int) does not accept array|string. --- htdocs/public/eventorganization/attendee_new.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/public/eventorganization/attendee_new.php b/htdocs/public/eventorganization/attendee_new.php index 8973e1c6be2..a80f742e64d 100644 --- a/htdocs/public/eventorganization/attendee_new.php +++ b/htdocs/public/eventorganization/attendee_new.php @@ -465,8 +465,8 @@ if (empty($reshook) && $action == 'add' && (!empty($conference->id) && $conferen $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