mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 04:37:38 +02:00
Update to handle empty string
This commit is contained in:
@@ -70,7 +70,7 @@ abstract class MailHandler extends AbstractProcessingHandler
|
||||
|
||||
protected function isHtmlBody(string $body): bool
|
||||
{
|
||||
return $body[0] === '<';
|
||||
return ($body[0] ?? null) === '<';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user