From 84b01dc1f8d4bb2bbfffe22a03068884c2c56fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 26 Feb 2024 23:02:53 +0100 Subject: [PATCH] fix phpstan (#28433) Default value of the parameter #2 $mesgarray (string) of function get_htmloutput_mesg() is incompatible with type array. --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 5246e9554f8..045798228c0 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -9348,7 +9348,7 @@ function dol_htmloutput_events($disabledoutputofmessages = 0) * @see dol_htmloutput_errors() * @see setEventMessages() */ -function get_htmloutput_mesg($mesgstring = '', $mesgarray = '', $style = 'ok', $keepembedded = 0) +function get_htmloutput_mesg($mesgstring = '', $mesgarray = [], $style = 'ok', $keepembedded = 0) { global $conf, $langs;