소스 검색

Fixed incompatible interfaces with MailHandler

Ondrej Mirtes 9 년 전
부모
커밋
26d7d29d27
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/Monolog/Handler/MandrillHandler.php
  2. 1 1
      src/Monolog/Handler/SendGridHandler.php

+ 1 - 1
src/Monolog/Handler/MandrillHandler.php

@@ -46,7 +46,7 @@ class MandrillHandler extends MailHandler
     /**
      * {@inheritdoc}
      */
-    protected function send($content, array $records)
+    protected function send(string $content, array $records)
     {
         $mime = null;
         if ($this->isHtmlBody($content)) {

+ 1 - 1
src/Monolog/Handler/SendGridHandler.php

@@ -72,7 +72,7 @@ class SendGridHandler extends MailHandler
     /**
      * {@inheritdoc}
      */
-    protected function send($content, array $records)
+    protected function send(string $content, array $records)
     {
         $message = [];
         $message['api_user'] = $this->apiUser;