1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Interface updates

This commit is contained in:
Jordi Boggiano
2016-11-27 11:26:51 +01:00
parent 5d28746bb0
commit b154c5fd26
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);