This commit is contained in:
Fabien Potencier 2019-07-05 06:56:29 +02:00
parent bfabad4a39
commit fb3d92d799

View File

@ -412,7 +412,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
if ($this->default) {
if (!\is_array($this->defaultValue)) {
throw new \InvalidArgumentException($node->getPath().': the default value of an array node has to be an array.');
throw new \InvalidArgumentException(sprintf('%s: the default value of an array node has to be an array.', $node->getPath()));
}
$node->setDefaultValue($this->defaultValue);