This commit is contained in:
Fabien Potencier 2016-12-14 09:03:29 +01:00
parent a7fb8c4112
commit 92423e77ac

View File

@ -257,7 +257,7 @@ class PrototypedArrayNode extends ArrayNode
if (array_keys($v) === array('value')) { if (array_keys($v) === array('value')) {
$v = $v['value']; $v = $v['value'];
if ($this->prototype instanceof ArrayNode && ($children = $this->prototype->getChildren()) && array_key_exists('value', $children)) { 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; $valuePrototype->parent = $this;
$originalClosures = $this->prototype->normalizationClosures; $originalClosures = $this->prototype->normalizationClosures;
if (is_array($originalClosures)) { if (is_array($originalClosures)) {