1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

Move phpdoc to native types

This commit is contained in:
Jordi Boggiano
2022-04-20 09:21:58 +02:00
parent 2695fa86cd
commit 7952a83e0c
117 changed files with 432 additions and 766 deletions

View File

@@ -106,17 +106,14 @@ class Logger implements LoggerInterface, ResettableInterface
*/
public const API = 3;
/**
* @var string
*/
protected $name;
protected string $name;
/**
* The handler stack
*
* @var HandlerInterface[]
*/
protected $handlers;
protected array $handlers;
/**
* Processors that will process all log records
@@ -127,15 +124,9 @@ class Logger implements LoggerInterface, ResettableInterface
*/
protected $processors;
/**
* @var bool
*/
protected $microsecondTimestamps = true;
protected bool $microsecondTimestamps = true;
/**
* @var DateTimeZone
*/
protected $timezone;
protected DateTimeZone $timezone;
/**
* @var callable|null
@@ -150,7 +141,7 @@ class Logger implements LoggerInterface, ResettableInterface
*
* @phpstan-param array<(callable(LogRecord): LogRecord)|ProcessorInterface> $processors
*/
public function __construct(string $name, array $handlers = [], array $processors = [], ?DateTimeZone $timezone = null)
public function __construct(string $name, array $handlers = [], array $processors = [], DateTimeZone|null $timezone = null)
{
$this->name = $name;
$this->setHandlers($handlers);