ExtensibleSet: Migrate also integers to an array

This commit is contained in:
Markus Frosch 2019-05-20 17:44:55 +02:00 committed by Thomas Gelf
parent 8f871f4afa
commit e101416b5d

View File

@ -20,7 +20,7 @@ class ExtensibleSet extends FormElement
public function getValue()
{
$value = parent::getValue();
if (is_string($value)) {
if (is_string($value) || is_numeric($value)) {
$value = [$value];
} elseif ($value === null) {
return $value;