Skip to content

Commit

Permalink
Merge pull request #4 from enumag/patch-1
Browse files Browse the repository at this point in the history
Fix DynamicArrayNode merging
  • Loading branch information
codeliner authored Nov 18, 2017
2 parents 36de4ac + 136433e commit e6d78a2
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 e6d78a2

Please sign in to comment.