From feb9456bbc2dc2cbdc799a849fe259dbbc0c5774 Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Mon, 3 Dec 2018 13:17:08 +0100 Subject: [PATCH] jobqueue: Add PHPDoc param annotation for __construct() method Document $parserCache, $title and $params for the constructor method and minor typo fix newSpec() method. Change-Id: I5968ee5bfe614da6f6dc8d7e0405799aa00b6127 --- includes/jobqueue/jobs/CategoryMembershipChangeJob.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/jobqueue/jobs/CategoryMembershipChangeJob.php b/includes/jobqueue/jobs/CategoryMembershipChangeJob.php index 1c7647c28f..b64c87aea7 100644 --- a/includes/jobqueue/jobs/CategoryMembershipChangeJob.php +++ b/includes/jobqueue/jobs/CategoryMembershipChangeJob.php @@ -47,7 +47,7 @@ class CategoryMembershipChangeJob extends Job { private $parserCache; /** - * @param Title $title The title of the page for which to update category emmbership. + * @param Title $title The title of the page for which to update category membership. * @param string $revisionTimestamp The timestamp of the new revision that triggered the job. * @return JobSpecification */ @@ -66,6 +66,9 @@ class CategoryMembershipChangeJob extends Job { /** * Constructor for use by the Job Queue infrastructure. * @note Don't call this when queueing a new instance, use newSpec() instead. + * @param ParserCache $parserCache Cache outputs of PHP parser. + * @param Title $title Title of the categorized page. + * @param array $params Such latest revision instance of the categorized page. */ public function __construct( ParserCache $parserCache, Title $title, array $params ) { parent::__construct( 'categoryMembershipChange', $title, $params ); -- 2.20.1