From: Thalia Date: Tue, 14 May 2019 12:42:50 +0000 (+0100) Subject: Fix AbstractBlock param types in documentation X-Git-Tag: 1.34.0-rc.0~1693^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=2843213120dd745dbb3b3fb3b7dc6bc6a5f6d89d;p=lhc%2Fweb%2Fwiklou.git Fix AbstractBlock param types in documentation Change-Id: I503375485956d3c05da445542419fb62684ae34a --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 25352f5086..7cb2dbff41 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -2029,7 +2029,7 @@ abstract class ApiBase extends ContextSource { * error handler and die with an error message including block info. * * @since 1.27 - * @param Block $block The block used to generate the ApiUsageException + * @param AbstractBlock $block The block used to generate the ApiUsageException * @throws ApiUsageException always */ public function dieBlocked( AbstractBlock $block ) { diff --git a/includes/api/ApiBlockInfoTrait.php b/includes/api/ApiBlockInfoTrait.php index d16cd21e30..587a51f706 100644 --- a/includes/api/ApiBlockInfoTrait.php +++ b/includes/api/ApiBlockInfoTrait.php @@ -28,7 +28,7 @@ trait ApiBlockInfoTrait { /** * Get basic info about a given block - * @param Block $block + * @param AbstractBlock $block * @return array Array containing several keys: * - blockid - ID of the block * - blockedby - username of the blocker diff --git a/includes/block/BlockManager.php b/includes/block/BlockManager.php index ba4c569e1c..7b665ae35b 100644 --- a/includes/block/BlockManager.php +++ b/includes/block/BlockManager.php @@ -111,7 +111,7 @@ class BlockManager { * @param bool $fromReplica Whether to check the replica DB first. * To improve performance, non-critical checks are done against replica DBs. * Check when actually saving should be done against master. - * @return Block|null The most relevant block, or null if there is no block. + * @return AbstractBlock|null The most relevant block, or null if there is no block. */ public function getUserBlock( User $user, $fromReplica ) { $isAnon = $user->getId() === 0;