This commit is contained in:
Fabien Potencier 2016-12-14 09:03:29 +01:00
parent a7fb8c4112
commit 92423e77ac
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class PrototypedArrayNode extends ArrayNode
if (array_keys($v) === array('value')) {
$v = $v['value'];
if ($this->prototype instanceof ArrayNode && ($children = $this->prototype->getChildren()) && array_key_exists('value', $children)) {
$valuePrototype = current($this->valuePrototypes) ?: clone($children['value']);
$valuePrototype = current($this->valuePrototypes) ?: clone $children['value'];
$valuePrototype->parent = $this;
$originalClosures = $this->prototype->normalizationClosures;
if (is_array($originalClosures)) {