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

Commit

Permalink
Merge branch 'hotfix/3303'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/ValidatorChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function addValidator(ValidatorInterface $validator, $breakChainOnFailure
{
$this->validators[] = array(
'instance' => $validator,
'breakChainOnFailure' => (boolean)$breakChainOnFailure
'breakChainOnFailure' => (bool) $breakChainOnFailure,
);
return $this;
}
Expand All @@ -118,11 +118,12 @@ public function addValidator(ValidatorInterface $validator, $breakChainOnFailure
*/
public function prependValidator(ValidatorInterface $validator, $breakChainOnFailure = false)
{
array_unshift($this->validators,
array(
'instance' => $validator,
'breakChainOnFailure' => (boolean)$breakChainOnFailure
)
array_unshift(
$this->validators,
array(
'instance' => $validator,
'breakChainOnFailure' => (bool) $breakChainOnFailure,
)
);
return $this;
}
Expand Down

0 comments on commit 5d80740

Please sign in to comment.