diff options
author | Tim Starling <tstarling@wikimedia.org> | 2020-04-20 16:03:16 +1000 |
---|---|---|
committer | Tim Starling <tstarling@wikimedia.org> | 2020-04-21 09:12:23 +1000 |
commit | 0b7295a5cd694921babbc0b5e68592ac931d09f8 (patch) | |
tree | 56b5d95d0384a99389b7094c3ba7990ffa65222c /includes/changes/Hook | |
parent | c44488f72549331733ef261b90058fd73d7badde (diff) | |
download | mediawikicore-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/changes/Hook')
5 files changed, 7 insertions, 7 deletions
diff --git a/includes/changes/Hook/EnhancedChangesListModifyBlockLineDataHook.php b/includes/changes/Hook/EnhancedChangesListModifyBlockLineDataHook.php index 3f76d3cf62b8..bba7ae436fe0 100644 --- a/includes/changes/Hook/EnhancedChangesListModifyBlockLineDataHook.php +++ b/includes/changes/Hook/EnhancedChangesListModifyBlockLineDataHook.php @@ -17,7 +17,7 @@ interface EnhancedChangesListModifyBlockLineDataHook { * @since 1.35 * * @param EnhancedChangesList $changesList - * @param string &$data Array of components that will be joined in order to create the line + * @param array &$data Array of components that will be joined in order to create the line * @param RecentChange $rc RecentChange object for this line * @return bool|void True or no return value to continue or false to abort */ diff --git a/includes/changes/Hook/EnhancedChangesListModifyLineDataHook.php b/includes/changes/Hook/EnhancedChangesListModifyLineDataHook.php index 08f11a46e582..a583c3710289 100644 --- a/includes/changes/Hook/EnhancedChangesListModifyLineDataHook.php +++ b/includes/changes/Hook/EnhancedChangesListModifyLineDataHook.php @@ -20,8 +20,8 @@ interface EnhancedChangesListModifyLineDataHook { * @param array &$data Array of components that will be joined in order to create the line * @param RecentChange[] $block Array of RecentChange objects in that block * @param RecentChange $rc RecentChange object for this line - * @param array &$classes Array of classes to change - * @param array &$attribs Associative array of other HTML attributes for the `<tr>` element. + * @param string[] &$classes Array of classes to change + * @param string[] &$attribs Associative array of other HTML attributes for the `<tr>` element. * Currently only data attributes reserved to MediaWiki are allowed * (see Sanitizer::isReservedDataAttribute). * @return bool|void True or no return value to continue, or false to omit this line from diff --git a/includes/changes/Hook/EnhancedChangesList__getLogTextHook.php b/includes/changes/Hook/EnhancedChangesList__getLogTextHook.php index 240f3ada0b2e..e171e4dd2eca 100644 --- a/includes/changes/Hook/EnhancedChangesList__getLogTextHook.php +++ b/includes/changes/Hook/EnhancedChangesList__getLogTextHook.php @@ -18,7 +18,7 @@ interface EnhancedChangesList__getLogTextHook { * @since 1.35 * * @param EnhancedChangesList $changesList - * @param array &$links Links generated by EnhancedChangesList + * @param string[] &$links Links generated by EnhancedChangesList * @param RecentChange[] $block RecentChange objects in that block * @return bool|void True or no return value to continue, or false to omit * this line from recentchanges diff --git a/includes/changes/Hook/MarkPatrolledHook.php b/includes/changes/Hook/MarkPatrolledHook.php index 046679d2b648..84ad84aca2cb 100644 --- a/includes/changes/Hook/MarkPatrolledHook.php +++ b/includes/changes/Hook/MarkPatrolledHook.php @@ -19,7 +19,7 @@ interface MarkPatrolledHook { * @param bool $wcOnlySysopsCanPatrol Config setting indicating whether the user needs to be a * sysop in order to mark an edit patrolled * @param bool $auto True if the edit is being marked as patrolled automatically - * @param array &$tags Tags to be applied to the patrol log entry + * @param string[] &$tags Tags to be applied to the patrol log entry * @return bool|void True or no return value to continue or false to abort */ public function onMarkPatrolled( $rcid, $user, $wcOnlySysopsCanPatrol, $auto, diff --git a/includes/changes/Hook/OldChangesListRecentChangesLineHook.php b/includes/changes/Hook/OldChangesListRecentChangesLineHook.php index 17745dab575f..04f9cd92f5de 100644 --- a/includes/changes/Hook/OldChangesListRecentChangesLineHook.php +++ b/includes/changes/Hook/OldChangesListRecentChangesLineHook.php @@ -18,8 +18,8 @@ interface OldChangesListRecentChangesLineHook { * @param OldChangesList $changeslist * @param string &$s HTML of the form `<li>...</li>` containing one RC entry * @param RecentChange $rc - * @param array &$classes Array of CSS classes for the `<li>` element - * @param array &$attribs Associative array of other HTML attributes for the `<li>` element. + * @param string[] &$classes Array of CSS classes for the `<li>` element + * @param string[] &$attribs Associative array of other HTML attributes for the `<li>` element. * Currently only data attributes reserved to MediaWiki are allowed * (see Sanitizer::isReservedDataAttribute). * @return bool|void True or no return value to continue, or false to omit the line from |