Commit 6c8f898a by Carsten Brandt

validator use static instead of self

parent 614c28ff
...@@ -147,8 +147,8 @@ abstract class Validator extends Component ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment