Close #109 provide better error classes + phpdoc fixes
This commit is contained in:
@ -13,6 +13,7 @@ namespace Da\User\Validator;
|
||||
|
||||
use Da\User\Component\ReCaptchaComponent;
|
||||
use Yii;
|
||||
use yii\base\InvalidConfigException;
|
||||
use yii\validators\Validator;
|
||||
|
||||
class ReCaptchaValidator extends Validator
|
||||
@ -52,6 +53,8 @@ class ReCaptchaValidator extends Validator
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*
|
||||
* @throws InvalidConfigException
|
||||
*/
|
||||
protected function validateValue($value)
|
||||
{
|
||||
|
||||
@ -24,6 +24,6 @@ class TimeZoneValidator implements ValidatorInterface
|
||||
|
||||
public function validate()
|
||||
{
|
||||
return in_array($this->timezone, timezone_identifiers_list());
|
||||
return in_array($this->timezone, timezone_identifiers_list(), false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user