summaryrefslogtreecommitdiffstats
path: root/src/Monolog/Handler/FlowdockHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Monolog/Handler/FlowdockHandler.php')
-rw-r--r--src/Monolog/Handler/FlowdockHandler.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Monolog/Handler/FlowdockHandler.php b/src/Monolog/Handler/FlowdockHandler.php
index dd9a361..67d1291 100644
--- a/src/Monolog/Handler/FlowdockHandler.php
+++ b/src/Monolog/Handler/FlowdockHandler.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
@@ -53,7 +53,7 @@ class FlowdockHandler extends SocketHandler
/**
* {@inheritdoc}
*/
- public function setFormatter(FormatterInterface $formatter)
+ public function setFormatter(FormatterInterface $formatter): HandlerInterface
{
if (!$formatter instanceof FlowdockFormatter) {
throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\Formatter\FlowdockFormatter to function correctly');
@@ -65,9 +65,9 @@ class FlowdockHandler extends SocketHandler
/**
* Gets the default formatter.
*
- * @return FormatterInterface
+ * @suppress PhanTypeMissingReturn
*/
- protected function getDefaultFormatter()
+ protected function getDefaultFormatter(): FormatterInterface
{
throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\Formatter\FlowdockFormatter to function correctly');
}