Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit a1a5871

Browse files
tristanbesjaviereguiluz
authored andcommitted
make sure to keep signature compatibility with base class
1 parent 2197b87 commit a1a5871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EasyLogHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public function __construct($stream)
1919
/**
2020
* @param array $record
2121
*/
22-
public function handle(array $record)
22+
public function handle(array $record): bool
2323
{
2424
throw new \RuntimeException('The method "handle()" should never be called (call "handleBatch()" instead). This is probably caused by a wrong "monolog" configuration. Please read EasyLogHandler README instructions to learn how to configure and use it.');
2525
}
2626

2727
/**
2828
* @param array $records
2929
*/
30-
public function handleBatch(array $records)
30+
public function handleBatch(array $records): void
3131
{
3232
// if the log records were filtered (by channel, level, etc.) the array
3333
// no longer contains consecutive numeric keys. Make them consecutive again

0 commit comments

Comments
 (0)