Parcourir la source

Merge pull request #1055 from chonaso/master

Fix Comparison operator in RotatingFileHandler
Jordi Boggiano il y a 7 ans
Parent
commit
2e9de2a0db
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
             $this->mustRotate = !file_exists($this->url);
         }
         }
 
 
-        if ($this->nextRotation < $record['datetime']) {
+        if ($this->nextRotation <= $record['datetime']) {
             $this->mustRotate = true;
             $this->mustRotate = true;
             $this->close();
             $this->close();
         }
         }