diff --git a/src/RedisQueue.php b/src/RedisQueue.php index ff045153..27568396 100644 --- a/src/RedisQueue.php +++ b/src/RedisQueue.php @@ -154,7 +154,7 @@ public function pop($queue = null, $index = 0) public function migrateExpiredJobs($from, $to) { return tap(parent::migrateExpiredJobs($from, $to), function ($jobs) use ($to) { - $this->event($to, new JobsMigrated($jobs)); + $this->event($to, new JobsMigrated($jobs === false ? [] : $jobs)); }); }