Explorar el Código

Add some docs

Jordi Boggiano hace 1 año
padre
commit
5223f28d41
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/Monolog/DateTimeImmutable.php

+ 2 - 0
src/Monolog/DateTimeImmutable.php

@@ -30,6 +30,8 @@ class DateTimeImmutable extends \DateTimeImmutable implements \JsonSerializable
     {
     {
         $this->useMicroseconds = $useMicroseconds;
         $this->useMicroseconds = $useMicroseconds;
 
 
+        // if you like to use a custom time to pass to Logger::addRecord directly,
+        // call modify() or setTimestamp() on this instance to change the date after creating it
         parent::__construct('now', $timezone);
         parent::__construct('now', $timezone);
     }
     }