Merge pull request #27620 from thibdrev/patch-5

fix: phpstan
This commit is contained in:
Laurent Destailleur 2024-01-18 21:22:28 +01:00 committed by GitHub
commit ff6c3ff29b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -307,8 +307,8 @@ if (empty($reshook)) {
$object->address = trim(GETPOST("address", 'alphanohtml'));
$object->zip = trim(GETPOST("zipcode", 'alphanohtml'));
$object->town = trim(GETPOST("town", 'alphanohtml'));
$object->state_id = GETPOST("state_id", 'int');
$object->country_id = GETPOST("country_id", 'int');
$object->state_id = GETPOSTINT("state_id");
$object->country_id = GETPOSTINT("country_id");
$object->phone = trim(GETPOST("phone", 'alpha'));
$object->phone_perso = trim(GETPOST("phone_perso", 'alpha'));
@ -334,9 +334,9 @@ if (empty($reshook)) {
}
// Get status and public property
$object->statut = GETPOST("statut", 'alpha');
$object->status = GETPOST("statut", 'alpha');
$object->public = GETPOST("public", 'alpha');
$object->statut = GETPOSTINT("statut");
$object->status = GETPOSTINT("statut");
$object->public = GETPOSTINT("public");
// Fill array 'array_options' with data from add form
$ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');