Remove phpstan errors from the rest of the code
[MAILPOET-3235]
This commit is contained in:
@ -12,7 +12,7 @@ class DaemonHttpRunner {
|
||||
public $timer;
|
||||
public $token;
|
||||
|
||||
/** @var Daemon */
|
||||
/** @var Daemon|null */
|
||||
private $daemon;
|
||||
|
||||
/** @var CronHelper */
|
||||
@ -69,6 +69,9 @@ class DaemonHttpRunner {
|
||||
if (!empty($error)) {
|
||||
return $this->abortWithError($error);
|
||||
}
|
||||
if ($this->daemon === null) {
|
||||
return $this->abortWithError(WPFunctions::get()->__('Daemon does not set correctly.', 'mailpoet'));
|
||||
}
|
||||
$this->settingsDaemonData['token'] = $this->token;
|
||||
$this->daemon->run($this->settingsDaemonData);
|
||||
// If we're using the WordPress trigger, check the conditions to stop cron if necessary
|
||||
|
Reference in New Issue
Block a user