Explorar o código

Interface updates

Jordi Boggiano %!s(int64=9) %!d(string=hai) anos
pai
achega
b154c5fd26

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

@@ -184,7 +184,7 @@ class SlackHandler extends SocketHandler
         return $this->slackRecord->stringify($fields);
     }
 
-    public function setFormatter(FormatterInterface $formatter)
+    public function setFormatter(FormatterInterface $formatter): HandlerInterface
     {
         parent::setFormatter($formatter);
         $this->slackRecord->setFormatter($formatter);

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

@@ -90,7 +90,7 @@ class SlackWebhookHandler extends AbstractProcessingHandler
         Curl\Util::execute($ch);
     }
 
-    public function setFormatter(FormatterInterface $formatter)
+    public function setFormatter(FormatterInterface $formatter): HandlerInterface
     {
         parent::setFormatter($formatter);
         $this->slackRecord->setFormatter($formatter);