Преглед изворни кода

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;