Skip to content

Commit fc9ff68

Browse files
committed
Fixed path for finalization errors when using a prototype
1 parent 3cbbd66 commit fc9ff68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Config/Definition/ArrayNode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ protected function finalizeValue($value)
293293

294294
if (null !== $this->prototype) {
295295
foreach ($value as $k => $v) {
296+
$this->prototype->setName($k);
296297
try {
297298
$value[$k] = $this->prototype->finalize($v);
298299
} catch (UnsetKeyException $unset) {

0 commit comments

Comments
 (0)