LSconfig :: get(): add array casting (using ensureIsArray())

This commit is contained in:
Benjamin Renard 2020-12-14 19:35:03 +01:00
parent 2abc369c73
commit 8b292f538d

View file

@ -88,6 +88,8 @@ class LSconfig {
return floatval($value); return floatval($value);
case 'string': case 'string':
return strval($value); return strval($value);
case 'array':
return ensureIsArray($value);
default: default:
return $value; return $value;
} }