1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +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

@@ -11,6 +11,8 @@
namespace Monolog\Handler;
use Monolog\Processor\ProcessorInterface;
/**
* Interface to describe loggers that have processors
*

View File

@@ -34,7 +34,7 @@ class PsrHandler extends AbstractHandler implements FormattableHandlerInterface
protected $logger;
/**
* @var FormatterInterface
* @var FormatterInterface|null
*/
protected $formatter;

View File

@@ -55,7 +55,7 @@ class RavenHandler extends AbstractProcessingHandler
protected $ravenClient;
/**
* @var LineFormatter The formatter to use for the logs generated via handleBatch()
* @var FormatterInterface The formatter to use for the logs generated via handleBatch()
*/
protected $batchFormatter;

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;