aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Permissions/Hook
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2020-04-20 16:03:16 +1000
committerTim Starling <tstarling@wikimedia.org>2020-04-21 09:12:23 +1000
commit0b7295a5cd694921babbc0b5e68592ac931d09f8 (patch)
tree56b5d95d0384a99389b7094c3ba7990ffa65222c /includes/Permissions/Hook
parentc44488f72549331733ef261b90058fd73d7badde (diff)
downloadmediawikicore-0b7295a5cd694921babbc0b5e68592ac931d09f8.tar.gz
mediawikicore-0b7295a5cd694921babbc0b5e68592ac931d09f8.zip
Hook interface doc comment followup
Mostly just narrower array types. A handful of other errors fixed. Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b
Diffstat (limited to 'includes/Permissions/Hook')
-rw-r--r--includes/Permissions/Hook/UserGetAllRightsHook.php2
-rw-r--r--includes/Permissions/Hook/UserGetRightsHook.php2
-rw-r--r--includes/Permissions/Hook/UserGetRightsRemoveHook.php2
3 files changed, 3 insertions, 3 deletions
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 );