Skip to content

Commit

Permalink
Merge pull request #224 from vlucas/issue223
Browse files Browse the repository at this point in the history
 remove unused parameter for required rule
  • Loading branch information
willemwollebrants committed Oct 30, 2017
2 parents 20a9c2d + 890cf6a commit 87775d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
dist: precise

# list any PHP version you want to test against
php:
Expand Down
2 changes: 1 addition & 1 deletion src/Valitron/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static function langDir($dir = null)
* @param array $params
* @return bool
*/
protected function validateRequired($field, $value, array $params= array(), array $fields = array())
protected function validateRequired($field, $value, $params= array())
{
if (isset($params[0]) && (bool) $params[0]){
$find = $this->getPart($this->_fields, explode('.', $field), true);
Expand Down

0 comments on commit 87775d7

Please sign in to comment.