Fixed path for finalization errors when using a prototype

This commit is contained in:
Christophe Coevoet 2011-02-19 16:04:53 +01:00
parent 3cbbd66d33
commit fc9ff68052

View File

@ -293,6 +293,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
if (null !== $this->prototype) { if (null !== $this->prototype) {
foreach ($value as $k => $v) { foreach ($value as $k => $v) {
$this->prototype->setName($k);
try { try {
$value[$k] = $this->prototype->finalize($v); $value[$k] = $this->prototype->finalize($v);
} catch (UnsetKeyException $unset) { } catch (UnsetKeyException $unset) {