1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 08:36:33 +02:00

Add a bunch of return types and fix type inconsistencies reports from phan

This commit is contained in:
Jordi Boggiano
2018-07-04 14:10:04 +02:00
parent e5900c3814
commit 06143b03e5
73 changed files with 227 additions and 280 deletions

View File

@@ -40,7 +40,7 @@ class FlowdockHandler extends SocketHandler
*
* @throws MissingExtensionException if OpenSSL is missing
*/
public function __construct($apiToken, $level = Logger::DEBUG, $bubble = true)
public function __construct($apiToken, $level = Logger::DEBUG, bool $bubble = true)
{
if (!extension_loaded('openssl')) {
throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler');
@@ -64,8 +64,6 @@ class FlowdockHandler extends SocketHandler
/**
* Gets the default formatter.
*
* @suppress PhanTypeMissingReturn
*/
protected function getDefaultFormatter(): FormatterInterface
{
@@ -77,7 +75,7 @@ class FlowdockHandler extends SocketHandler
*
* @param array $record
*/
protected function write(array $record)
protected function write(array $record): void
{
parent::write($record);