Merge pull request #224 from vlucas/issue223

remove unused parameter for required rule
This commit is contained in:
Willem Wollebrants 2017-10-31 00:15:06 +01:00 committed by GitHub
commit 87775d7626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints # see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php language: php
dist: precise
# list any PHP version you want to test against # list any PHP version you want to test against
php: php:

View File

@ -146,7 +146,7 @@ class Validator
* @param array $params * @param array $params
* @return bool * @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]){ if (isset($params[0]) && (bool) $params[0]){
$find = $this->getPart($this->_fields, explode('.', $field), true); $find = $this->getPart($this->_fields, explode('.', $field), true);