ExtensibleSet: fix exception parameters

This commit is contained in:
Thomas Gelf 2019-05-20 11:04:56 +02:00
parent e148d2523b
commit a80bdd833e
1 changed files with 2 additions and 2 deletions

View File

@ -26,10 +26,10 @@ class ExtensibleSet extends FormElement
return $value;
}
if (! is_array($value)) {
throw new InvalidArgumentException(
throw new InvalidArgumentException(sprintf(
'ExtensibleSet expects to work with Arrays, got %s',
var_export($value, 1)
);
));
}
$value = array_filter($value, 'strlen');