From: Alangi Derick Date: Mon, 3 Dec 2018 11:00:49 +0000 (+0100) Subject: debug: Correct $level PHPDoc param datatype in SyslogHandler.php X-Git-Tag: 1.34.0-rc.0~3364^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=8872b4ca3b94fca9a748b4ea5ad1670c8ac95003;p=lhc%2Fweb%2Fwiklou.git 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 --- 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