1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Update to handle empty string

This commit is contained in:
Elan Ruusamäe
2021-03-27 13:43:44 +02:00
committed by GitHub
parent 0e46f8872c
commit 53d53af502

View File

@@ -70,7 +70,7 @@ abstract class MailHandler extends AbstractProcessingHandler
protected function isHtmlBody(string $body): bool
{
return $body[0] === '<';
return ($body[0] ?? null) === '<';
}
/**