Forráskód Böngészése

Fixed path for finalization errors when using a prototype

Christophe Coevoet 14 éve
szülő
commit
fc9ff68052
1 módosított fájl, 1 hozzáadás és 0 törlés
  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) {