From 074041d925ded7951bed03ce0bf0a47ccbc5f535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 2 Mar 2024 16:37:53 +0100 Subject: [PATCH] fix default value is incompatible with int (#28579) --- htdocs/core/lib/functions.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 629cf050548..b99f499e884 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2903,10 +2903,10 @@ function dol_format_address($object, $withcountry = 0, $sep = "\n", $outputlangs /** * Format a string. * - * @param string $fmt Format of strftime function (http://php.net/manual/fr/function.strftime.php) - * @param int $ts Timestamp (If is_gmt is true, timestamp is already includes timezone and daylight saving offset, if is_gmt is false, timestamp is a GMT timestamp and we must compensate with server PHP TZ) - * @param bool $is_gmt See comment of timestamp parameter - * @return string A formatted string + * @param string $fmt Format of strftime function (http://php.net/manual/fr/function.strftime.php) + * @param int|false $ts Timestamp (If is_gmt is true, timestamp is already includes timezone and daylight saving offset, if is_gmt is false, timestamp is a GMT timestamp and we must compensate with server PHP TZ) + * @param bool $is_gmt See comment of timestamp parameter + * @return string A formatted string * @see dol_stringtotime() */ function dol_strftime($fmt, $ts = false, $is_gmt = false)