mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Add LogRecord class, drop PHP <8.1
This commit is contained in:
@@ -11,20 +11,17 @@
|
||||
|
||||
namespace Monolog\Processor;
|
||||
|
||||
use Monolog\LogRecord;
|
||||
|
||||
/**
|
||||
* An optional interface to allow labelling Monolog processors.
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*
|
||||
* @phpstan-import-type Record from \Monolog\Logger
|
||||
*/
|
||||
interface ProcessorInterface
|
||||
{
|
||||
/**
|
||||
* @return array The processed record
|
||||
*
|
||||
* @phpstan-param Record $record
|
||||
* @phpstan-return Record
|
||||
* @return LogRecord The processed record
|
||||
*/
|
||||
public function __invoke(array $record);
|
||||
public function __invoke(LogRecord $record);
|
||||
}
|
||||
|
Reference in New Issue
Block a user