Parcourir la source

Fixed path for finalization errors when using a prototype

Christophe Coevoet il y a 14 ans
Parent
commit
fc9ff68052
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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) {