mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Merge pull request #224 from vlucas/issue223
remove unused parameter for required rule
This commit is contained in:
commit
87775d7626
@ -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:
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user