Update PHPStan and fix new issues

[MAILPOET-4175]
This commit is contained in:
Rostislav Wolny
2022-03-23 16:04:34 +01:00
committed by Veljko V
parent f4f2af0f40
commit 095f85c897
5 changed files with 21 additions and 42 deletions

View File

@ -71,7 +71,7 @@ class CronWorkerRunner {
$this->processTask($worker, $task);
}
} catch (\Exception $e) {
if ($task && $e->getCode() !== CronHelper::DAEMON_EXECUTION_LIMIT_REACHED) {
if (isset($task) && $task && $e->getCode() !== CronHelper::DAEMON_EXECUTION_LIMIT_REACHED) {
$this->cronWorkerScheduler->rescheduleProgressively($task);
}
throw $e;