aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authoraddshore <addshorewiki@gmail.com>2014-09-23 21:52:39 +0100
committeraddshore <addshorewiki@gmail.com>2014-09-23 21:57:31 +0100
commitf960c2434b7ccd9444e178f033f1f8123da82f7b (patch)
treecbc2ccf42f705e99bbd071140f479cc8e5a9e9c3 /includes
parent38d651fab24bfed7e6de8eb09c9354be49e8a319 (diff)
downloadmediawikicore-f960c2434b7ccd9444e178f033f1f8123da82f7b.tar.gz
mediawikicore-f960c2434b7ccd9444e178f033f1f8123da82f7b.zip
Add tests for Job::toString
Change-Id: I00f41808af42a198a1e45a93201dd7bb3e4d9c2c
Diffstat (limited to 'includes')
-rw-r--r--includes/jobqueue/Job.php6
-rw-r--r--includes/jobqueue/JobQueueGroup.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/jobqueue/Job.php b/includes/jobqueue/Job.php
index ee3f2c2b60c4..d89c5d29608e 100644
--- a/includes/jobqueue/Job.php
+++ b/includes/jobqueue/Job.php
@@ -87,7 +87,7 @@ abstract class Job implements IJobSpecification {
* This may add duplicate at insert time, but they will be
* removed later on, when the first one is popped.
*
- * @param array $jobs Array of Job objects
+ * @param Job[] $jobs Array of Job objects
* @return bool
* @deprecated since 1.21
*/
@@ -103,7 +103,7 @@ abstract class Job implements IJobSpecification {
* be rolled-back as part of a larger transaction. However,
* large batches of jobs can cause slave lag.
*
- * @param array $jobs Array of Job objects
+ * @param Job[] $jobs Array of Job objects
* @return bool
* @deprecated since 1.21
*/
@@ -143,7 +143,7 @@ abstract class Job implements IJobSpecification {
/**
* @param string $command
* @param Title $title
- * @param array|bool $params
+ * @param array|bool $params Can not be === true
*/
public function __construct( $command, $title, $params = false ) {
$this->command = $command;
diff --git a/includes/jobqueue/JobQueueGroup.php b/includes/jobqueue/JobQueueGroup.php
index 98a78c5e39a1..b0b35e9818c1 100644
--- a/includes/jobqueue/JobQueueGroup.php
+++ b/includes/jobqueue/JobQueueGroup.php
@@ -104,7 +104,7 @@ class JobQueueGroup {
* This inserts the jobs into the queue specified by $wgJobTypeConf
* and updates the aggregate job queue information cache as needed.
*
- * @param Job|array $jobs A single Job or a list of Jobs
+ * @param Job|Job[] $jobs A single Job or a list of Jobs
* @throws MWException
* @return void
*/