From 2b7e84492795fabf5c5c940a0483f24151f94fc4 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Mon, 9 Oct 2023 15:17:32 -0300 Subject: [PATCH] Fix minor corrections. --- src/panels/MailPanel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/panels/MailPanel.php b/src/panels/MailPanel.php index d2d3932..4c5e12d 100644 --- a/src/panels/MailPanel.php +++ b/src/panels/MailPanel.php @@ -135,6 +135,10 @@ private function addMoreInformation(MessageInterface $message, array &$messageDa private function addMoreInformationFromSymfonyMailer(MessageInterface $message, array &$messageData): void { + if (!$message instanceof \yii\symfonymailer\Message) { + return; + } + $symfonyMessage = $message->getSymfonyEmail(); $part = $symfonyMessage->getBody();