Skip to content
Permalink
Browse files

Fix regex() return type.

  • Loading branch information...
robertpustulka committed Sep 15, 2017
1 parent 639a1c7 commit 7e1a177c270cd31c0c707a2f0fb127f27e98120d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Validation/Validator.php
@@ -1776,7 +1776,7 @@ public function isPresenceRequired($field, $newRecord)
* @param string|null $message The error message when the rule fails.
* @param string|callable|null $when Either 'create' or 'update' or a callable that returns
* true when the validation rule should be applied.
* @return bool
* @return $this
*/
public function regex($field, $regex, $message = null, $when = null)
{

0 comments on commit 7e1a177

Please sign in to comment.
You can’t perform that action at this time.