From 21ff7c800036e95683148263180faf13f3ad7f86 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 3 Apr 2013 11:56:27 -0700 Subject: [PATCH] Cleaned up return types for getAllQueuedJobs() and getAllDelayedJobs(). Change-Id: I305941c817dd13427d291b9265a71f9df9130f1c --- includes/job/JobQueue.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/job/JobQueue.php b/includes/job/JobQueue.php index 41ef4432d4..6533abd2b7 100644 --- a/includes/job/JobQueue.php +++ b/includes/job/JobQueue.php @@ -567,7 +567,7 @@ abstract class JobQueue { * This does not include jobs that are currently acquired or delayed. * This should only be called on a queue that is no longer being popped. * - * @return Iterator|Traversable|Array + * @return Iterator * @throws MWException */ abstract public function getAllQueuedJobs(); @@ -576,12 +576,12 @@ abstract class JobQueue { * Get an iterator to traverse over all delayed jobs in this queue. * This should only be called on a queue that is no longer being popped. * - * @return Iterator|Traversable|Array + * @return Iterator * @throws MWException * @since 1.22 */ public function getAllDelayedJobs() { - return array(); // not implemented + return new ArrayIterator( array() ); // not implemented } /** -- 2.20.1