Parcourir la source

More interface updates

Jordi Boggiano il y a 9 ans
Parent
commit
24ad4b02b6

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

@@ -192,7 +192,7 @@ class SlackHandler extends SocketHandler
         return $this;
     }
 
-    public function getFormatter()
+    public function getFormatter(): FormatterInterface
     {
         $formatter = parent::getFormatter();
         $this->slackRecord->setFormatter($formatter);

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

@@ -98,7 +98,7 @@ class SlackWebhookHandler extends AbstractProcessingHandler
         return $this;
     }
 
-    public function getFormatter()
+    public function getFormatter(): FormatterInterface
     {
         $formatter = parent::getFormatter();
         $this->slackRecord->setFormatter($formatter);