Skip to content

Commit

Permalink
Fix CS and add Int as a numericRule
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Oct 3, 2015
1 parent 5843680 commit 306d04c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Illuminate/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Validator implements ValidatorContract
*
* @var array
*/
protected $numericRules = ['Numeric', 'Integer'];
protected $numericRules = ['Numeric', 'Integer', 'Int'];

/**
* The validation rules that imply the field is required.
Expand Down Expand Up @@ -2600,8 +2600,7 @@ protected function requireParameterCount($count, $parameters, $rule)
/**
* Normalizes a rule so that we can accept short types.
*
* @param string $rule
*
* @param string $rule
* @return string
*/
protected function normalizeRule($rule)
Expand Down

0 comments on commit 306d04c

Please sign in to comment.