2
0
forked from Wavyzz/dolibarr

fix phpstan (#28480)

This commit is contained in:
Frédéric FRANCE
2024-02-28 16:07:02 +01:00
committed by GitHub
parent abbec034c6
commit 01b2e4a62c

View File

@@ -834,7 +834,7 @@ class FormOther
* @deprecated Use instead selectColor
* @see selectColor()
*/
public function select_color($set_color = '', $prefix = 'f_color', $form_name = '', $showcolorbox = 1, $arrayofcolors = '')
public function select_color($set_color = '', $prefix = 'f_color', $form_name = '', $showcolorbox = 1, $arrayofcolors = [])
{
// phpcs:enable
print $this->selectColor($set_color, $prefix, $form_name, $showcolorbox, $arrayofcolors);
@@ -854,7 +854,7 @@ class FormOther
* @return string
* @see showColor()
*/
public static function selectColor($set_color = '', $prefix = 'f_color', $form_name = '', $showcolorbox = 1, $arrayofcolors = array(), $morecss = '', $setpropertyonselect = '', $default = '')
public static function selectColor($set_color = '', $prefix = 'f_color', $form_name = '', $showcolorbox = 1, $arrayofcolors = [], $morecss = '', $setpropertyonselect = '', $default = '')
{
// Deprecation warning
if ($form_name) {