Job::factory should throw an InvalidArgumentException, not MWException
authorDerick Alangi <alangiderick@gmail.com>
Wed, 30 Jan 2019 19:40:46 +0000 (20:40 +0100)
committerJforrester <jforrester@wikimedia.org>
Mon, 11 Feb 2019 23:35:47 +0000 (23:35 +0000)
Change-Id: I9a85562b205db604d2746ec5db0e72dacdb93c6d

includes/jobqueue/Job.php

index 45ab4d3..d624acf 100644 (file)
@@ -67,7 +67,7 @@ abstract class Job implements IJobSpecification {
         * @param string $command Job command
         * @param Title $title Associated title
         * @param array $params Job parameters
-        * @throws MWException
+        * @throws InvalidArgumentException
         * @return Job
         */
        public static function factory( $command, Title $title, $params = [] ) {