Skip to content

Commit

Permalink
Fix DynamicArrayNode merging
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag authored Nov 15, 2017
1 parent eba6943 commit 136433e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Config/Definition/DynamicArrayNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ protected function mergeValues($leftSide, $rightSide)
}

if (!isset($this->children[$k])) {
$this->children[$k] = new DynamicArrayNode($k);
$node = new DynamicArrayNode($k);
$node->setIgnoreExtraKeys($this->ignoreExtraKeys, $this->removeExtraKeys);
$this->children[$k] = $node;
}

$leftSide[$k] = $this->children[$k]->merge($leftSide[$k], $v);
}

Expand Down

0 comments on commit 136433e

Please sign in to comment.