Skip to content

Commit 04f9a0b

Browse files
author
Anton Evers
committed
fix static test fails
1 parent 6d40bab commit 04f9a0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,8 @@ private function getScheduleTimeInterval($groupId)
541541
* Clean up scheduled jobs that are disabled in the configuration
542542
* This can happen when you turn off a cron job in the config and flush the cache
543543
*
544-
* @param $groupId
544+
* @param string $groupId
545+
* @return void
545546
*/
546547
public function cleanupDisabledJobs($groupId)
547548
{
@@ -559,7 +560,7 @@ public function cleanupDisabledJobs($groupId)
559560
}
560561

561562
/**
562-
* @param $jobConfig
563+
* @param array $jobConfig
563564
* @return null|string
564565
*/
565566
private function getCronExpression($jobConfig)
@@ -602,7 +603,7 @@ public function cleanupScheduleMismatches()
602603
*/
603604
private function getJobs()
604605
{
605-
if (is_null($this->jobs)) {
606+
if ($this->jobs === null) {
606607
$this->jobs = $this->config->getJobs();
607608
}
608609
return $this->jobs;

0 commit comments

Comments
 (0)