diff --git a/htdocs/public/users/view.php b/htdocs/public/users/view.php index 86d70d0be22..f7c38cffc2b 100644 --- a/htdocs/public/users/view.php +++ b/htdocs/public/users/view.php @@ -1,5 +1,6 @@ + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -305,19 +306,19 @@ if ($object->url && !getDolUserInt('USER_PUBLIC_HIDE_URL', 0, $object)) { if ($object->office_phone && !getDolUserInt('USER_PUBLIC_HIDE_OFFICE_PHONE', 0, $object)) { $usersection .= '
'; $usersection .= img_picto('', 'phone', 'class="pictofixedwidth"'); - $usersection .= dol_print_phone($object->office_phone, $object->country_code, 0, $mysoc->id, 'tel', ' ', 0, ''); + $usersection .= dol_print_phone($object->office_phone, $object->country_code, 0, $mysoc->id, 'tel', ' ', '', ''); $usersection .= '
'; } if ($object->office_fax && !getDolUserInt('USER_PUBLIC_HIDE_OFFICE_FAX', 0, $object)) { $usersection .= '
'; $usersection .= img_picto('', 'phoning_fax', 'class="pictofixedwidth"'); - $usersection .= dol_print_phone($object->office_fax, $object->country_code, 0, $mysoc->id, 'fax', ' ', 0, ''); + $usersection .= dol_print_phone($object->office_fax, $object->country_code, 0, $mysoc->id, 'fax', ' ', '', ''); $usersection .= '
'; } if ($object->user_mobile && !getDolUserInt('USER_PUBLIC_HIDE_USER_MOBILE', 0, $object)) { $usersection .= '
'; $usersection .= img_picto('', 'phone', 'class="pictofixedwidth"'); - $usersection .= dol_print_phone($object->user_mobile, $object->country_code, 0, $mysoc->id, 'tel', ' ', 0, ''); + $usersection .= dol_print_phone($object->user_mobile, $object->country_code, 0, $mysoc->id, 'tel', ' ', '', ''); $usersection .= '
'; } if (getDolUserInt('USER_PUBLIC_SHOW_BIRTH', 0, $object) && !is_null($object->birth)) { @@ -393,13 +394,13 @@ if (!getDolUserInt('USER_PUBLIC_HIDE_COMPANY', 0, $object)) { if ($mysoc->phone) { $companysection .= '
'; $companysection .= img_picto('', 'phone', 'class="pictofixedwidth"'); - $companysection .= dol_print_phone($mysoc->phone, $mysoc->country_code, 0, $mysoc->id, 'tel', ' ', 0, ''); + $companysection .= dol_print_phone($mysoc->phone, $mysoc->country_code, 0, $mysoc->id, 'tel', ' ', '', ''); $companysection .= '
'; } if ($mysoc->fax) { $companysection .= '
'; $companysection .= img_picto('', 'phoning_fax', 'class="pictofixedwidth"'); - $companysection .= dol_print_phone($mysoc->fax, $mysoc->country_code, 0, $mysoc->id, 'fax', ' ', 0, ''); + $companysection .= dol_print_phone($mysoc->fax, $mysoc->country_code, 0, $mysoc->id, 'fax', ' ', '', ''); $companysection .= '
'; } diff --git a/phpstan.neon.dist b/phpstan.neon.dist index d299568fb84..f2f97df1479 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -85,7 +85,6 @@ parameters: - '#EvalMath::trigger\(\) expects string, int given#' - '#get_next_value expects string, int given#' - '#pdf_writeLinkedObjects expects string, int given#' - - '#dol_print_phone expects string, int given#' - '#dol_move expects string, int given#' - '#expects int, float#' - '#expects int, array\|string given.#'