qual: phpstan for htdocs/datapolicy/class/actions_datapolicy.class.php

htdocs/datapolicy/class/actions_datapolicy.class.php	118	Property CommonObject::$state_id (int) does not accept string.
htdocs/datapolicy/class/actions_datapolicy.class.php	120	Property CommonObject::$country_id (int) does not accept string.
This commit is contained in:
thibdrev 2024-01-26 09:07:04 +01:00 committed by GitHub
parent ed8b939d8f
commit 6459ef53f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,9 +115,9 @@ class ActionsDatapolicy extends CommonHookActions
$object->fax = '';
$object->state = '';
$object->country = '';
$object->state_id = '';
$object->state_id = 0;
$object->socialnetworks = '';
$object->country_id = '';
$object->country_id = 0;
$object->note_private = dol_concatdesc($object->note_private, $langs->trans('ANONYMISER_AT', dol_print_date(dol_now())));
if ($object->update($object->id, $user, 0)) {