X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobRunner.php;h=7c5d0ae703367b2af2489e96069486da93070c32;hb=130ec2523df12a3ca2fe0d422163696d09fcea08;hp=977fbdaaa5c2701ed2233b2f257eb3d5841d1a00;hpb=28f07c0a7f6a16adfcc65cdab64eeeab6aba07b1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index 977fbdaaa5..7c5d0ae703 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -69,7 +69,7 @@ class JobRunner implements LoggerAwareInterface { } /** - * @param LoggerInterface $logger + * @param LoggerInterface|null $logger */ public function __construct( LoggerInterface $logger = null ) { if ( $logger === null ) { @@ -109,9 +109,9 @@ class JobRunner implements LoggerAwareInterface { $response = [ 'jobs' => [], 'reached' => 'none-ready' ]; - $type = isset( $options['type'] ) ? $options['type'] : false; - $maxJobs = isset( $options['maxJobs'] ) ? $options['maxJobs'] : false; - $maxTime = isset( $options['maxTime'] ) ? $options['maxTime'] : false; + $type = $options['type'] ?? false; + $maxJobs = $options['maxJobs'] ?? false; + $maxTime = $options['maxTime'] ?? false; $noThrottle = isset( $options['throttle'] ) && !$options['throttle']; // Bail if job type is invalid