ExtensibleSet: fix exception parameters
This commit is contained in:
parent
e148d2523b
commit
a80bdd833e
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue