validator use static instead of self

This commit is contained in:
Carsten Brandt
2013-06-14 23:39:46 +02:00
parent 614c28ffb2
commit 6c8f898a90

View File

@@ -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) {