Просмотр исходного кода

Allow null subjects in SwiftMailerHandler, fixes #1479

Jordi Boggiano 5 лет назад
Родитель
Сommit
1eafcbf040
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/Monolog/Handler/SwiftMailerHandler.php

+ 2 - 2
src/Monolog/Handler/SwiftMailerHandler.php

@@ -52,9 +52,9 @@ class SwiftMailerHandler extends MailHandler
     /**
      * Gets the formatter for the Swift_Message subject.
      *
-     * @param string $format The format of the subject
+     * @param string|null $format The format of the subject
      */
-    protected function getSubjectFormatter(string $format): FormatterInterface
+    protected function getSubjectFormatter(?string $format): FormatterInterface
     {
         return new LineFormatter($format);
     }