diff --git a/src/Symfony/Component/Config/Definition/ArrayNode.php b/src/Symfony/Component/Config/Definition/ArrayNode.php index 15bfe06fc5..8fef7ade45 100644 --- a/src/Symfony/Component/Config/Definition/ArrayNode.php +++ b/src/Symfony/Component/Config/Definition/ArrayNode.php @@ -293,6 +293,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface if (null !== $this->prototype) { foreach ($value as $k => $v) { + $this->prototype->setName($k); try { $value[$k] = $this->prototype->finalize($v); } catch (UnsetKeyException $unset) {