Merge branch 'master' into validators-patch

This commit is contained in:
misantron 2017-11-01 23:43:09 +03:00
commit 36404a83b7
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()) 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);