From 6c8f898a90fcf92810d8fb674d7dfced8c0d7ac6 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 14 Jun 2013 23:39:46 +0200 Subject: [PATCH] validator use static instead of self --- framework/yii/validators/Validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/validators/Validator.php b/framework/yii/validators/Validator.php index 2629002..fe31936 100644 --- a/framework/yii/validators/Validator.php +++ b/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) {