mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
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…
x
Reference in New Issue
Block a user