Skip to content

Commit

Permalink
Update Validator.php (#17654)
Browse files Browse the repository at this point in the history
Allow the user to add additional rules on the go to the validator instance.
  • Loading branch information
francinaldo authored and taylorotwell committed Jan 30, 2017
1 parent d53541c commit 585bdaa
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 @@ -742,7 +742,7 @@ public function setRules(array $rules)
* @param array $rules
* @return void
*/
protected function addRules($rules)
public function addRules($rules)
{
// The primary purpose of this parser is to expand any "*" rules to the all
// of the explicit rules needed for the given data. For example the rule
Expand Down

0 comments on commit 585bdaa

Please sign in to comment.