Skip to content

Commit

Permalink
return from Validator::setCustomMessages (#21046)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Sep 6, 2017
1 parent 15ac3f8 commit ebaade4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Validation/Validator.php
Expand Up @@ -942,11 +942,13 @@ public function addReplacer($rule, $replacer)
* Set the custom messages for the validator.
*
* @param array $messages
* @return void
* @return $this
*/
public function setCustomMessages(array $messages)
{
$this->customMessages = array_merge($this->customMessages, $messages);

return $this;
}

/**
Expand Down

0 comments on commit ebaade4

Please sign in to comment.