Explorar el Código

Fix Comparison operator in RotatingFileHandler

From now on, you will speak only when spoken to, and the first and last words out of your filthy sewers will be "Sir! hace 8 años
padre
commit
f5d968ba95
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Monolog/Handler/RotatingFileHandler.php

+ 1 - 1
src/Monolog/Handler/RotatingFileHandler.php

@@ -98,7 +98,7 @@ class RotatingFileHandler extends StreamHandler
             $this->mustRotate = !file_exists($this->url);
         }
 
-        if ($this->nextRotation < $record['datetime']) {
+        if ($this->nextRotation <= $record['datetime']) {
             $this->mustRotate = true;
             $this->close();
         }