From 0b7295a5cd694921babbc0b5e68592ac931d09f8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 20 Apr 2020 16:03:16 +1000 Subject: Hook interface doc comment followup Mostly just narrower array types. A handful of other errors fixed. Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b --- includes/Permissions/Hook/UserGetAllRightsHook.php | 2 +- includes/Permissions/Hook/UserGetRightsHook.php | 2 +- includes/Permissions/Hook/UserGetRightsRemoveHook.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/Permissions/Hook') diff --git a/includes/Permissions/Hook/UserGetAllRightsHook.php b/includes/Permissions/Hook/UserGetAllRightsHook.php index 217bd20091b0..288b961e1c9e 100644 --- a/includes/Permissions/Hook/UserGetAllRightsHook.php +++ b/includes/Permissions/Hook/UserGetAllRightsHook.php @@ -12,7 +12,7 @@ interface UserGetAllRightsHook { * * @since 1.35 * - * @param array &$rights Array of rights, which may be added to + * @param string[] &$rights Array of rights, which may be added to * @return bool|void True or no return value to continue or false to abort */ public function onUserGetAllRights( &$rights ); diff --git a/includes/Permissions/Hook/UserGetRightsHook.php b/includes/Permissions/Hook/UserGetRightsHook.php index a57aebe75084..869136195003 100644 --- a/includes/Permissions/Hook/UserGetRightsHook.php +++ b/includes/Permissions/Hook/UserGetRightsHook.php @@ -15,7 +15,7 @@ interface UserGetRightsHook { * @since 1.35 * * @param User $user User to get rights for - * @param array &$rights Current rights + * @param string[] &$rights Current rights * @return bool|void True or no return value to continue or false to abort */ public function onUserGetRights( $user, &$rights ); diff --git a/includes/Permissions/Hook/UserGetRightsRemoveHook.php b/includes/Permissions/Hook/UserGetRightsRemoveHook.php index 87a1651315d5..00a4b320e2be 100644 --- a/includes/Permissions/Hook/UserGetRightsRemoveHook.php +++ b/includes/Permissions/Hook/UserGetRightsRemoveHook.php @@ -18,7 +18,7 @@ interface UserGetRightsRemoveHook { * @since 1.35 * * @param User $user User to get rights for - * @param array &$rights Current rights + * @param string[] &$rights Current rights * @return bool|void True or no return value to continue or false to abort */ public function onUserGetRightsRemove( $user, &$rights ); -- cgit v1.2.3