mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 00:56:08 +02:00
Add a lot more scalar types and go strict in Logger
This commit is contained in:
@@ -41,7 +41,7 @@ class GroupHandler extends Handler implements ProcessableHandlerInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isHandling(array $record)
|
||||
public function isHandling(array $record): bool
|
||||
{
|
||||
foreach ($this->handlers as $handler) {
|
||||
if ($handler->isHandling($record)) {
|
||||
@@ -55,7 +55,7 @@ class GroupHandler extends Handler implements ProcessableHandlerInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function handle(array $record)
|
||||
public function handle(array $record): bool
|
||||
{
|
||||
if ($this->processors) {
|
||||
$record = $this->processRecord($record);
|
||||
|
Reference in New Issue
Block a user