1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00
This commit is contained in:
Jordi Boggiano
2022-03-14 13:39:42 +01:00
parent b886d70a35
commit f1f2e3e37c

View File

@@ -84,7 +84,7 @@ class SwiftMailerHandler extends MailHandler
} }
if (!$message instanceof Swift_Message) { if (!$message instanceof Swift_Message) {
throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it' . Utils::getRecordMessageForException($record)); throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it' . Utils::getRecordMessageForException(reset($records)));
} }
if ($records) { if ($records) {