Browse Source

Merge pull request #4807 from mrarthur/patch-6

Unused InvalidConfigException
tags/2.0.0-rc
Qiang Xue 10 years ago
parent
commit
e2ca42e71b
  1. 2
      framework/validators/Validator.php

2
framework/validators/Validator.php

@ -10,7 +10,6 @@ namespace yii\validators;
use Yii; use Yii;
use yii\base\Component; use yii\base\Component;
use yii\base\NotSupportedException; use yii\base\NotSupportedException;
use yii\base\InvalidConfigException;
/** /**
* Validator is the base class for all validators. * Validator is the base class for all validators.
@ -181,7 +180,6 @@ class Validator extends Component
* @param array|string $attributes list of attributes to be validated. This can be either an array of * @param array|string $attributes list of attributes to be validated. This can be either an array of
* the attribute names or a string of comma-separated attribute names. * the attribute names or a string of comma-separated attribute names.
* @param array $params initial values to be applied to the validator properties * @param array $params initial values to be applied to the validator properties
* @throws \yii\base\InvalidConfigException if type can't be recognized
* @return Validator the validator * @return Validator the validator
*/ */
public static function createValidator($type, $object, $attributes, $params = []) public static function createValidator($type, $object, $attributes, $params = [])

Loading…
Cancel
Save