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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user