1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 02:10:22 +02:00

Merge pull request #1545 from glensc/patch-1

MailHandler: Use array access to compare first character
This commit is contained in:
Jordi Boggiano
2021-04-04 18:13:39 +02:00
committed by GitHub

View File

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