Skip to content

Commit f259e2b

Browse files
committed
Add types
1 parent c8b1e0e commit f259e2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Monolog/Logger.php

+6
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,9 @@ protected function handleException(Throwable $e, array $record): void
723723
($this->exceptionHandler)($e, $record);
724724
}
725725

726+
/**
727+
* @return array<string, mixed>
728+
*/
726729
public function __serialize(): array
727730
{
728731
return [
@@ -737,6 +740,9 @@ public function __serialize(): array
737740
];
738741
}
739742

743+
/**
744+
* @param array<string, mixed> $data
745+
*/
740746
public function __unserialize(array $data): void
741747
{
742748
foreach (['name', 'handlers', 'processors', 'microsecondTimestamps', 'timezone', 'exceptionHandler', 'logDepth', 'detectCycles'] as $property) {

0 commit comments

Comments
 (0)