1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 20:57:36 +02:00

Add types

This commit is contained in:
Jordi Boggiano
2023-02-06 14:44:46 +01:00
parent c8b1e0e789
commit f259e2b15f

View File

@@ -723,6 +723,9 @@ class Logger implements LoggerInterface, ResettableInterface
($this->exceptionHandler)($e, $record);
}
/**
* @return array<string, mixed>
*/
public function __serialize(): array
{
return [
@@ -737,6 +740,9 @@ class Logger implements LoggerInterface, ResettableInterface
];
}
/**
* @param array<string, mixed> $data
*/
public function __unserialize(array $data): void
{
foreach (['name', 'handlers', 'processors', 'microsecondTimestamps', 'timezone', 'exceptionHandler', 'logDepth', 'detectCycles'] as $property) {