Browse Source

validator use static instead of self

tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
6c8f898a90
  1. 4
      framework/yii/validators/Validator.php

4
framework/yii/validators/Validator.php

@ -147,8 +147,8 @@ abstract class Validator extends Component
$params['class'] = __NAMESPACE__ . '\InlineValidator';
$params['method'] = $type;
} else {
if (isset(self::$builtInValidators[$type])) {
$type = self::$builtInValidators[$type];
if (isset(static::$builtInValidators[$type])) {
$type = static::$builtInValidators[$type];
}
if (is_array($type)) {
foreach ($type as $name => $value) {

Loading…
Cancel
Save