From: Aaron Schulz Date: Wed, 3 Apr 2013 18:56:27 +0000 (-0700) Subject: Cleaned up return types for getAllQueuedJobs() and getAllDelayedJobs(). X-Git-Tag: 1.31.0-rc.0~20120 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=21ff7c800036e95683148263180faf13f3ad7f86;p=lhc%2Fweb%2Fwiklou.git Cleaned up return types for getAllQueuedJobs() and getAllDelayedJobs(). Change-Id: I305941c817dd13427d291b9265a71f9df9130f1c --- 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 } /**