Fix phpstan level 6
[MAILPOET-1969]
This commit is contained in:
@@ -121,7 +121,9 @@ class Newsletter {
|
||||
if (!$queue_errors) {
|
||||
// verify that the rendered body was successfully saved
|
||||
$queue = SendingQueueModel::findOne($queue->id);
|
||||
$queue_errors = ($queue->validate() !== true);
|
||||
if ($queue instanceof SendingQueueModel) {
|
||||
$queue_errors = ($queue->validate() !== true);
|
||||
}
|
||||
}
|
||||
if ($queue_errors) {
|
||||
$this->stopNewsletterPreProcessing(sprintf('QUEUE-%d-SAVE', $queue->id));
|
||||
|
Reference in New Issue
Block a user