From: Derick Alangi Date: Wed, 30 Jan 2019 19:40:46 +0000 (+0100) Subject: Job::factory should throw an InvalidArgumentException, not MWException X-Git-Tag: 1.34.0-rc.0~2843^2 X-Git-Url: http://git.cyclocoop.org/%27http:/code.google.com/p/ie7-js/Category:Bar2?a=commitdiff_plain;h=f8337198ce21896d2d22123e006dbc9e2973c3a0;p=lhc%2Fweb%2Fwiklou.git Job::factory should throw an InvalidArgumentException, not MWException Change-Id: I9a85562b205db604d2746ec5db0e72dacdb93c6d --- diff --git a/includes/jobqueue/Job.php b/includes/jobqueue/Job.php index 45ab4d342f..d624acf97f 100644 --- a/includes/jobqueue/Job.php +++ b/includes/jobqueue/Job.php @@ -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 = [] ) {