Skip to content

Commit

Permalink
zendframework#6386 zendframework#6496 - fixing values passed internal…
Browse files Browse the repository at this point in the history
…ly to `ValidatorChain#attach()` by `ValidatorChain#merge()`
  • Loading branch information
Ocramius committed Nov 22, 2014
1 parent ab6cd16 commit ae6a7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Validator/ValidatorChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function isValid($value, $context = null)
public function merge(ValidatorChain $validatorChain)
{
foreach ($validatorChain->validators->toArray(PriorityQueue::EXTR_BOTH) as $item) {
$this->attach($item['data'], $item['priority']);
$this->attach($item['data']['instance'], $item['data']['breakChainOnFailure'], $item['priority']);
}

return $this;
Expand Down

0 comments on commit ae6a7c6

Please sign in to comment.