From 62d5614bb499a6e35310b4629f828c210e78f28a Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 26 Dec 2011 01:11:58 +0000 Subject: [PATCH] Fix bug in compile-time statics --- source/lib/SihnonFramework/Validation/Text.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/lib/SihnonFramework/Validation/Text.class.php b/source/lib/SihnonFramework/Validation/Text.class.php index e6ac68f..1a1a092 100644 --- a/source/lib/SihnonFramework/Validation/Text.class.php +++ b/source/lib/SihnonFramework/Validation/Text.class.php @@ -10,14 +10,14 @@ class SihnonFramework_Validation_Text extends SihnonFramework_Validation { const Whitespace = 0x16; protected static $contents = array( - static::Alphabetical => ':alpha:', - static::Digit => ':digit:', - static::Numeric => ':digit:\.-', - static::Symbol => ':punct:', - static::Whitespace => ':space:', + self::Alphabetical => ':alpha:', + self::Digit => ':digit:', + self::Numeric => ':digit:\.-', + self::Symbol => ':punct:', + self::Whitespace => ':space:', ); - public static function content($inputs, $content = static::Defaults) { + public static function content($inputs, $content = self::Defaults) { static::pattern($inputs, static::buildContentPattern($content)); }