From cdae062d47ba8da13624693f54c6efc25ac00490 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 15 Feb 2019 21:23:02 +0100 Subject: [PATCH] Improve param docs and add @var to clarify types Change-Id: I44f872b3a2921e75aab8e22fec57735f17ee1d8b --- includes/UserLocator.php | 2 +- includes/api/ApiEchoNotifications.php | 4 ++-- includes/jobs/NotificationJob.php | 1 + includes/model/Event.php | 13 +++++++++---- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/includes/UserLocator.php b/includes/UserLocator.php index 2e49e7391..90354e09f 100644 --- a/includes/UserLocator.php +++ b/includes/UserLocator.php @@ -9,7 +9,7 @@ class EchoUserLocator { * * @param EchoEvent $event * @param int $batchSize - * @return User[] + * @return User[]|Iterator */ public static function locateUsersWatchingTitle( EchoEvent $event, $batchSize = 500 ) { $title = $event->getTitle(); diff --git a/includes/api/ApiEchoNotifications.php b/includes/api/ApiEchoNotifications.php index 9b387e32f..fed7001ac 100644 --- a/includes/api/ApiEchoNotifications.php +++ b/includes/api/ApiEchoNotifications.php @@ -141,7 +141,7 @@ class ApiEchoNotifications extends ApiQueryBase { * Internal method for getting the property 'list' data for individual section * @param User $user * @param string $section 'alert' or 'message' - * @param string $filter 'all', 'read' or 'unread' + * @param string[] $filter 'all', 'read' or 'unread' * @param int $limit * @param string $continue * @param string $format @@ -184,7 +184,7 @@ class ApiEchoNotifications extends ApiQueryBase { * of a set of sections or a single section * @param User $user * @param string[] $eventTypes - * @param string $filter 'all', 'read' or 'unread' + * @param string[] $filter 'all', 'read' or 'unread' * @param int $limit * @param string $continue * @param string $format diff --git a/includes/jobs/NotificationJob.php b/includes/jobs/NotificationJob.php index 009d3a74e..e9e271595 100644 --- a/includes/jobs/NotificationJob.php +++ b/includes/jobs/NotificationJob.php @@ -1,6 +1,7 @@