aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryBlocks.php
diff options
context:
space:
mode:
authorReedy <reedy@wikimedia.org>2022-08-14 02:10:31 +0100
committerReedy <reedy@wikimedia.org>2022-08-14 13:10:53 +0000
commitf15a759df141883604d7d03e3dd0433c6d1a1bd6 (patch)
tree6e23c5d6db71e56f63cbae5937d2e2ba172bbb85 /includes/api/ApiQueryBlocks.php
parent2c90c982a0cfe08259d9f2e577d430dfe13e132f (diff)
downloadmediawikicore-f15a759df141883604d7d03e3dd0433c6d1a1bd6.tar.gz
mediawikicore-f15a759df141883604d7d03e3dd0433c6d1a1bd6.zip
api: Minor code cleanup
Change-Id: I1f20597093448d00435158a9ac861873000bb057
Diffstat (limited to 'includes/api/ApiQueryBlocks.php')
-rw-r--r--includes/api/ApiQueryBlocks.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php
index 55b341061780..8f5a29e35bc0 100644
--- a/includes/api/ApiQueryBlocks.php
+++ b/includes/api/ApiQueryBlocks.php
@@ -22,6 +22,7 @@
use MediaWiki\Block\BlockActionInfo;
use MediaWiki\Block\BlockRestrictionStore;
+use MediaWiki\Block\Restriction\PageRestriction;
use MediaWiki\MainConfigNames;
use MediaWiki\ParamValidator\TypeDef\UserDef;
use Wikimedia\IPUtils;
@@ -314,7 +315,7 @@ class ApiQueryBlocks extends ApiQueryBase {
$id = $restriction->getBlockId();
switch ( $restriction->getType() ) {
case 'page':
- /** @var \MediaWiki\Block\Restriction\PageRestriction $restriction */
+ /** @var PageRestriction $restriction */
'@phan-var \MediaWiki\Block\Restriction\PageRestriction $restriction';
$value = [ 'id' => $restriction->getValue() ];
if ( $restriction->getTitle() ) {