From 6994bce951dd9d1d57b6e8c003f9f3cab16f47d0 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 27 Feb 2018 10:45:35 +0100 Subject: Loglevel is an int Signed-off-by: Roeland Jago Douma --- lib/private/Log.php | 4 ++-- lib/public/ILogger.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/private/Log.php b/lib/private/Log.php index a18b5db7d09..e47f68807d3 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -245,12 +245,12 @@ class Log implements ILogger { /** * Logs with an arbitrary level. * - * @param mixed $level + * @param int $level * @param string $message * @param array $context * @return void */ - public function log($level, string $message, array $context = []) { + public function log(int $level, string $message, array $context = []) { $minLevel = min($this->config->getValue('loglevel', Util::WARN), Util::FATAL); $logCondition = $this->config->getValue('log.condition', []); diff --git a/lib/public/ILogger.php b/lib/public/ILogger.php index 9370913a82f..b6e945546e6 100644 --- a/lib/public/ILogger.php +++ b/lib/public/ILogger.php @@ -120,13 +120,13 @@ interface ILogger { /** * Logs with an arbitrary level. * - * @param mixed $level + * @param int $level * @param string $message * @param array $context * @return mixed * @since 7.0.0 */ - public function log($level, string $message, array $context = []); + public function log(int $level, string $message, array $context = []); /** * Logs an exception very detailed -- cgit v1.2.3