mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
validator use static instead of self
This commit is contained in:
@@ -147,8 +147,8 @@ abstract class Validator extends Component
|
|||||||
$params['class'] = __NAMESPACE__ . '\InlineValidator';
|
$params['class'] = __NAMESPACE__ . '\InlineValidator';
|
||||||
$params['method'] = $type;
|
$params['method'] = $type;
|
||||||
} else {
|
} else {
|
||||||
if (isset(self::$builtInValidators[$type])) {
|
if (isset(static::$builtInValidators[$type])) {
|
||||||
$type = self::$builtInValidators[$type];
|
$type = static::$builtInValidators[$type];
|
||||||
}
|
}
|
||||||
if (is_array($type)) {
|
if (is_array($type)) {
|
||||||
foreach ($type as $name => $value) {
|
foreach ($type as $name => $value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user