Bläddra i källkod

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! 8 år sedan
förälder
incheckning
f5d968ba95
1 ändrade filer med 1 tillägg och 1 borttagningar
  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();
         }