Merge "Make ApiQueryUserInfo::getBlockInfo accept an AbstractBlock"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 13 May 2019 15:46:44 +0000 (15:46 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 13 May 2019 15:46:44 +0000 (15:46 +0000)
includes/api/ApiQueryUserInfo.php

index d73fbc4..ba7280d 100644 (file)
@@ -20,6 +20,7 @@
  * @file
  */
 
+use MediaWiki\Block\AbstractBlock;
 use MediaWiki\MediaWikiServices;
 
 /**
@@ -56,10 +57,10 @@ class ApiQueryUserInfo extends ApiQueryBase {
         * Get basic info about a given block
         *
         * @deprecated since 1.34 Use ApiBlockInfoTrait::getBlockDetails() instead.
-        * @param Block $block
+        * @param AbstractBlock $block
         * @return array See ApiBlockInfoTrait::getBlockDetails
         */
-       public static function getBlockInfo( Block $block ) {
+       public static function getBlockInfo( AbstractBlock $block ) {
                wfDeprecated( __METHOD__, '1.34' );
 
                // Hack to access a private method from a trait: