From b5b4d3bae1744e4c3b6f5c95e2f5e6ce6239be86 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 24 Apr 2014 10:44:31 +0200 Subject: [PATCH] Fixed the default file permission for RotatingFile --- 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 528ff07d..6213d6ee 100644 --- a/src/Monolog/Handler/RotatingFileHandler.php +++ b/src/Monolog/Handler/RotatingFileHandler.php @@ -38,7 +38,7 @@ class RotatingFileHandler extends StreamHandler * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not * @param int $filePermissions Optional file permissions (default (0644) are only for owner read/write) */ - public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644) + public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null) { $this->filename = $filename; $this->maxFiles = (int) $maxFiles;