Skip to content

Commit

Permalink
Add types
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 6, 2023
1 parent c8b1e0e commit f259e2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Monolog/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ protected function handleException(Throwable $e, array $record): void
($this->exceptionHandler)($e, $record);
}

/**
* @return array<string, mixed>
*/
public function __serialize(): array
{
return [
Expand All @@ -737,6 +740,9 @@ public function __serialize(): array
];
}

/**
* @param array<string, mixed> $data
*/
public function __unserialize(array $data): void
{
foreach (['name', 'handlers', 'processors', 'microsecondTimestamps', 'timezone', 'exceptionHandler', 'logDepth', 'detectCycles'] as $property) {
Expand Down

0 comments on commit f259e2b

Please sign in to comment.