Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…ixing values passed internally to `ValidatorChain#attach()` by `ValidatorChain#merge()`
  • Loading branch information
Ocramius committed Nov 22, 2014
1 parent a639c2e commit c15d5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/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 c15d5d6

Please sign in to comment.