Document that the GetUserBlock hook may pass null instead of a block

Change-Id: I776362564b8caff3c4ab0eb38eb5ef63034e0f51
This commit is contained in:
Thalia 2019-10-21 12:58:42 +01:00
parent aaf0006a5a
commit e915f9538a

View file

@ -1733,7 +1733,7 @@ blocks can be seen using CompositeBlock::getOriginalBlocks()
$user: User targeted by the block
$ip: string|null The IP of the current request if $user is the current user
and they're not exempted from IP blocks. Null otherwise.
&$block: AbstractBlock object
&$block: AbstractBlock|null The user's block, or null if none was found.
'getUserPermissionsErrors': Add a permissions error when permissions errors are
checked for. Use instead of userCan for most cases. Return false if the user