From b8ed7c6bf848cf4ab1356b874f7d785f69214552 Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Sun, 10 Dec 2017 11:16:06 -0600 Subject: [PATCH] Added missing static keyword to Misc\ValueInfo::normalize() --- lib/Misc/ValueInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Misc/ValueInfo.php b/lib/Misc/ValueInfo.php index bbeced9..f4d765b 100644 --- a/lib/Misc/ValueInfo.php +++ b/lib/Misc/ValueInfo.php @@ -34,7 +34,7 @@ class ValueInfo { const M_STRICT = 1 << 30; // throw an exception if the type doesn't match const M_ARRAY = 1 << 31; // the value should be a flat array of values of the specified type; indexed and associative are both acceptable - public function normalize($value, int $type, string $dateFormat = null) { + public static function normalize($value, int $type, string $dateFormat = null) { $allowNull = ($type & self::M_NULL); $strict = ($type & (self::M_STRICT | self::M_DROP)); $drop = ($type & self::M_DROP);