From f5d968ba955de59d89240fa6b5d743775b2a01bd Mon Sep 17 00:00:00 2001 From: "From now on, you will speak only when spoken to, and the first and last words out of your filthy sewers will be \"Sir!" Date: Tue, 19 Sep 2017 20:07:32 +0900 Subject: [PATCH] Fix Comparison operator in RotatingFileHandler --- src/Monolog/Handler/RotatingFileHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Handler/RotatingFileHandler.php b/src/Monolog/Handler/RotatingFileHandler.php index a4a5ba44..b349fd06 100644 --- a/src/Monolog/Handler/RotatingFileHandler.php +++ b/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(); }