Skip to content

Commit

Permalink
Merge pull request #13014 from danieliancu/5.2
Browse files Browse the repository at this point in the history
[5.2] Use isEmpty to check for empty message bag in the passes function of the Validator
  • Loading branch information
taylorotwell committed Apr 5, 2016
2 parents 4461e6f + 7343e49 commit b53694e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function passes()
call_user_func($after);
}

return count($this->messages->all()) === 0;
return $this->messages->isEmpty();
}

/**
Expand Down

0 comments on commit b53694e

Please sign in to comment.