Explorar o código

Merge remote branch 'stof/config_path'

* stof/config_path:
  Fixed path for finalization errors when using a prototype
Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
418655e571
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Symfony/Component/Config/Definition/ArrayNode.php

+ 1 - 0
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) {