2
0
forked from Wavyzz/dolibarr

Merge pull request #27766 from frederic34/patch-7

fix phpstan
This commit is contained in:
Laurent Destailleur
2024-01-24 10:48:56 +01:00
committed by GitHub

View File

@@ -2721,7 +2721,7 @@ function dol_bc($var, $moreclass = '')
* @return string Formatted string * @return string Formatted string
* @see dol_print_address() * @see dol_print_address()
*/ */
function dol_format_address($object, $withcountry = 0, $sep = "\n", $outputlangs = '', $mode = 0, $extralangcode = '') function dol_format_address($object, $withcountry = 0, $sep = "\n", $outputlangs = null, $mode = 0, $extralangcode = '')
{ {
global $conf, $langs, $hookmanager; global $conf, $langs, $hookmanager;
@@ -2843,7 +2843,7 @@ function dol_strftime($fmt, $ts = false, $is_gmt = false)
* *
* @see dol_mktime(), dol_stringtotime(), dol_getdate(), selectDate() * @see dol_mktime(), dol_stringtotime(), dol_getdate(), selectDate()
*/ */
function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs = '', $encodetooutput = false) function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs = null, $encodetooutput = false)
{ {
global $conf, $langs; global $conf, $langs;
@@ -8983,7 +8983,7 @@ function complete_substitutions_array(&$substitutionarray, $outputlangs, $object
* @param Translate $outputlangs Output language * @param Translate $outputlangs Output language
* @return void * @return void
*/ */
function print_date_range($date_start, $date_end, $format = '', $outputlangs = '') function print_date_range($date_start, $date_end, $format = '', $outputlangs = null)
{ {
print get_date_range($date_start, $date_end, $format, $outputlangs); print get_date_range($date_start, $date_end, $format, $outputlangs);
} }
@@ -8998,7 +8998,7 @@ function print_date_range($date_start, $date_end, $format = '', $outputlangs = '
* @param integer $withparenthesis 1=Add parenthesis, 0=no parenthesis * @param integer $withparenthesis 1=Add parenthesis, 0=no parenthesis
* @return string String * @return string String
*/ */
function get_date_range($date_start, $date_end, $format = '', $outputlangs = '', $withparenthesis = 1) function get_date_range($date_start, $date_end, $format = '', $outputlangs = null, $withparenthesis = 1)
{ {
global $langs; global $langs;