Merge pull request #948 from loic-sharma/patch-5

Added a missing parenthesis and semicolon.
This commit is contained in:
Jason Lewis 2012-07-12 22:56:14 -07:00
commit 3e9161d6e5
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ #### Registering a custom validation rule:
Validator::register('awesome', function($attribute, $value, $parameters) Validator::register('awesome', function($attribute, $value, $parameters)
{ {
return $value == $parameters[0]; return $value == $parameters[0];
} });
In this case, the parameters argument of your validation rule would receive an array containing one element: "yes". In this case, the parameters argument of your validation rule would receive an array containing one element: "yes".