From 8872b4ca3b94fca9a748b4ea5ad1670c8ac95003 Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Mon, 3 Dec 2018 12:00:49 +0100 Subject: [PATCH] debug: Correct $level PHPDoc param datatype in SyslogHandler.php In Monolog\Logger (Logger.php), the logger levels are constants (interger values). Logger::DEBUG is a constant (int) with value 100 which depicts that error logging level. Datatype of these values; DEBUG, INFO, WARNING, etc are all integers not strings. Change-Id: I1cc67381bc64800241f5f9b7232ffe5419388d8a --- includes/debug/logger/monolog/SyslogHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/debug/logger/monolog/SyslogHandler.php b/includes/debug/logger/monolog/SyslogHandler.php index 780ea94d20..ee3e9a184b 100644 --- a/includes/debug/logger/monolog/SyslogHandler.php +++ b/includes/debug/logger/monolog/SyslogHandler.php @@ -62,7 +62,7 @@ class SyslogHandler extends SyslogUdpHandler { * @param string $host Syslog host * @param int $port Syslog port * @param int $facility Syslog message facility - * @param string $level The minimum logging level at which this handler + * @param int $level The minimum logging level at which this handler * will be triggered * @param bool $bubble Whether the messages that are handled can bubble up * the stack or not -- 2.20.1