2
0
Jordi Boggiano 2 жил өмнө
parent
commit
f259e2b15f

+ 6 - 0
src/Monolog/Logger.php

@@ -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) {