X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=319bf6397ee87a9f39e36be0d738706947e8180c;hb=f002c9eb886a50855d1aa03b373edd3837397638;hp=bd989328f4e3a9c304e7619ac65ab571837c4cc5;hpb=cc5d9a92a2fd7c869fc0f5b54bbb2822f3cd9ff3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index bd989328f4..319bf6397e 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -225,7 +225,7 @@ function wfMergeErrorArrays( ...$args ) { * * @param array $array The array. * @param array $insert The array to insert. - * @param mixed $after The key to insert after + * @param mixed $after The key to insert after. Callers need to make sure the key is set. * @return array */ function wfArrayInsertAfter( array $array, array $insert, $after ) { @@ -2657,8 +2657,8 @@ function wfGetDB( $db, $groups = [], $wiki = false ) { /** * Get a load balancer object. * - * @deprecated since 1.27, use MediaWikiServices::getDBLoadBalancer() - * or MediaWikiServices::getDBLoadBalancerFactory() instead. + * @deprecated since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancer() + * or MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead. * * @param string|bool $wiki Wiki ID, or false for the current wiki * @return \Wikimedia\Rdbms\LoadBalancer @@ -2675,7 +2675,7 @@ function wfGetLB( $wiki = false ) { /** * Get the load balancer factory object * - * @deprecated since 1.27, use MediaWikiServices::getDBLoadBalancerFactory() instead. + * @deprecated since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead. * * @return \Wikimedia\Rdbms\LBFactory */