From 503cee7fb2b31a1f194e700700d23ca66cff0be1 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 25 May 2018 11:16:16 -0700 Subject: [PATCH] Hard deprecate UtfNormal methods Change-Id: Iafbf89aa85ae77cd790aeac6911ccc2d014a6c65 --- includes/compat/normal/UtfNormal.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/compat/normal/UtfNormal.php b/includes/compat/normal/UtfNormal.php index 308bef6458..bce1ea602f 100644 --- a/includes/compat/normal/UtfNormal.php +++ b/includes/compat/normal/UtfNormal.php @@ -57,6 +57,7 @@ class UtfNormal { * @return string a clean, shiny, normalized UTF-8 string */ static function cleanUp( $string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::cleanUp( $string ); } @@ -69,6 +70,7 @@ class UtfNormal { * @return string a UTF-8 string in normal form C */ static function toNFC( $string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::toNFC( $string ); } @@ -80,6 +82,7 @@ class UtfNormal { * @return string a UTF-8 string in normal form D */ static function toNFD( $string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::toNFD( $string ); } @@ -92,6 +95,7 @@ class UtfNormal { * @return string a UTF-8 string in normal form KC */ static function toNFKC( $string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::toNFKC( $string ); } @@ -104,6 +108,7 @@ class UtfNormal { * @return string a UTF-8 string in normal form KD */ static function toNFKD( $string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::toNFKD( $string ); } @@ -114,6 +119,7 @@ class UtfNormal { * @return bool */ static function quickIsNFC( $string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::quickIsNFC( $string ); } @@ -124,6 +130,7 @@ class UtfNormal { * @return bool */ static function quickIsNFCVerify( &$string ) { + wfDeprecated( __METHOD__, '1.25' ); return Validator::quickIsNFCVerify( $string ); } } -- 2.20.1