mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Add scalar types to processor/formatters and top level classes
This commit is contained in:
@@ -53,7 +53,7 @@ class GelfMessageFormatter extends NormalizerFormatter
|
||||
Logger::EMERGENCY => 0,
|
||||
];
|
||||
|
||||
public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_')
|
||||
public function __construct(string $systemName = null, string $extraPrefix = null, string $contextPrefix = 'ctxt_')
|
||||
{
|
||||
parent::__construct('U.u');
|
||||
|
||||
@@ -66,7 +66,7 @@ class GelfMessageFormatter extends NormalizerFormatter
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function format(array $record)
|
||||
public function format(array $record): Message
|
||||
{
|
||||
if (isset($record['context'])) {
|
||||
$record['context'] = parent::format($record['context']);
|
||||
|
Reference in New Issue
Block a user