From 045f8218dddbdd20e906ac6f289b09c7e5d4c9a6 Mon Sep 17 00:00:00 2001 From: George Mponos Date: Sun, 9 Dec 2018 22:15:55 +0200 Subject: [PATCH] Docblock fixes --- src/Monolog/Handler/ProcessableHandlerInterface.php | 2 ++ src/Monolog/Handler/PsrHandler.php | 2 +- src/Monolog/Handler/RavenHandler.php | 2 +- src/Monolog/Handler/RotatingFileHandler.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Monolog/Handler/ProcessableHandlerInterface.php b/src/Monolog/Handler/ProcessableHandlerInterface.php index 27077c62..2c9557b4 100644 --- a/src/Monolog/Handler/ProcessableHandlerInterface.php +++ b/src/Monolog/Handler/ProcessableHandlerInterface.php @@ -11,6 +11,8 @@ namespace Monolog\Handler; +use Monolog\Processor\ProcessorInterface; + /** * Interface to describe loggers that have processors * diff --git a/src/Monolog/Handler/PsrHandler.php b/src/Monolog/Handler/PsrHandler.php index e0c67dcd..cba96a55 100644 --- a/src/Monolog/Handler/PsrHandler.php +++ b/src/Monolog/Handler/PsrHandler.php @@ -34,7 +34,7 @@ class PsrHandler extends AbstractHandler implements FormattableHandlerInterface protected $logger; /** - * @var FormatterInterface + * @var FormatterInterface|null */ protected $formatter; diff --git a/src/Monolog/Handler/RavenHandler.php b/src/Monolog/Handler/RavenHandler.php index 6836c488..6c3c32bf 100644 --- a/src/Monolog/Handler/RavenHandler.php +++ b/src/Monolog/Handler/RavenHandler.php @@ -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; diff --git a/src/Monolog/Handler/RotatingFileHandler.php b/src/Monolog/Handler/RotatingFileHandler.php index 387c89ad..3e2810ba 100644 --- a/src/Monolog/Handler/RotatingFileHandler.php +++ b/src/Monolog/Handler/RotatingFileHandler.php @@ -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;