GlobalFunctions: Version for hard & soft deprecation must match
authorDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 14:56:40 +0000 (15:56 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 14:56:40 +0000 (15:56 +0100)
Per the deprecation policy, hard and soft deprecation version for
MW must match, so hard must match soft, in that order. The method
wfGetLBFactory() was soft deprecated in 1.27 so hard deprecation
version should be 1.27 and not 1.34

This is a follow up for 91a3f56.

Change-Id: I2b4b4c97dca3bc8ecadf7a53d68ea183b4a0de9c

includes/GlobalFunctions.php

index 66a4d9a..486dfe4 100644 (file)
@@ -2627,7 +2627,7 @@ function wfGetLB( $wiki = false ) {
  * @return \Wikimedia\Rdbms\LBFactory
  */
 function wfGetLBFactory() {
-       wfDeprecated( __METHOD__, '1.34' );
+       wfDeprecated( __METHOD__, '1.27' );
        return MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
 }