瀏覽代碼

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;