1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-02 11:20:31 +02:00

MailHandler: Use array access to compare first character

This commit is contained in:
Elan Ruusamäe
2021-03-27 12:40:00 +02:00
committed by GitHub
parent c1971982c3
commit 0e46f8872c

View File

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