diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2021-12-28 19:33:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2021-12-28 19:33:36 +0000 |
commit | da7c438a7a6576edffe43ee32cfbeb5c7ca95bb7 (patch) | |
tree | de38123bcc2dfdf393a5fc6e922c204d467bc1ba | |
parent | 67abc01031fb4a450ab0b43fdeac2d0c9992b456 (diff) | |
parent | 979a44d89c31016b229cd30391a4aca308ed8475 (diff) |
Merge "Emit correct version in deprecation warnings for MWNamespace"
-rw-r--r-- | includes/MWNamespace.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/MWNamespace.php b/includes/MWNamespace.php index 3acb93c8756c..1caaaeb6198a 100644 --- a/includes/MWNamespace.php +++ b/includes/MWNamespace.php @@ -61,7 +61,7 @@ class MWNamespace { * @return bool */ public static function isTalk( $index ) { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->isTalk( $index ); } @@ -117,7 +117,7 @@ class MWNamespace { * @deprecated since 1.34, hard deprecated since 1.38 */ public static function exists( $index ) { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->exists( $index ); } @@ -170,7 +170,7 @@ class MWNamespace { * @deprecated since 1.34, hard deprecated since 1.38 */ public static function getCanonicalNamespaces() { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->getCanonicalNamespaces(); } @@ -183,7 +183,7 @@ class MWNamespace { * @return string|bool If no canonical definition. */ public static function getCanonicalName( $index ) { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->getCanonicalName( $index ); } @@ -197,7 +197,7 @@ class MWNamespace { * @return int */ public static function getCanonicalIndex( $name ) { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->getCanonicalIndex( $name ); } @@ -210,7 +210,7 @@ class MWNamespace { * @return array */ public static function getValidNamespaces() { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->getValidNamespaces(); } @@ -238,7 +238,7 @@ class MWNamespace { * @return bool */ public static function isContent( $index ) { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->isContent( $index ); } @@ -278,7 +278,7 @@ class MWNamespace { * @return bool */ public static function hasSubpages( $index ) { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->hasSubpages( $index ); } @@ -290,7 +290,7 @@ class MWNamespace { * @return int[] Array of namespace indices */ public static function getContentNamespaces() { - wfDeprecated( __METHOD__, '1.38' ); + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getNamespaceInfo()->getContentNamespaces(); } |