1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Docblock fixes

This commit is contained in:
George Mponos
2018-12-09 22:15:55 +02:00
parent 5c8e68b6de
commit 045f8218dd
4 changed files with 5 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class RotatingFileHandler extends StreamHandler
public function __construct(string $filename, int $maxFiles = 0, $level = Logger::DEBUG, bool $bubble = true, ?int $filePermission = null, bool $useLocking = false)
{
$this->filename = $filename;
$this->maxFiles = (int) $maxFiles;
$this->maxFiles = $maxFiles;
$this->nextRotation = new \DateTimeImmutable('tomorrow');
$this->filenameFormat = '{filename}-{date}';
$this->dateFormat = static::FILE_PER_DAY;