From 3c9d46864ea8c0343c1b1c00f395b2f1fcd28696 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Fri, 26 Oct 2018 09:54:23 +0200 Subject: [PATCH] Improve documentation The parameter description is copied from `CakeLog::write` method. --- lib/Cake/Utility/Debugger.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Debugger.php b/lib/Cake/Utility/Debugger.php index 281453f5f..0b7a96bed 100644 --- a/lib/Cake/Utility/Debugger.php +++ b/lib/Cake/Utility/Debugger.php @@ -181,7 +181,9 @@ class Debugger { * as well as export the variable using exportVar. By default the log is written to the debug log. * * @param mixed $var Variable or content to log - * @param int $level type of log to use. Defaults to LOG_DEBUG + * @param int|string $level Type of log to use. Defaults to LOG_DEBUG. When value is an integer + * or a string matching the recognized levels, then it will + * be treated log levels. Otherwise it's treated as scope. * @param int $depth The depth to output to. Defaults to 3. * @return void * @link https://book.cakephp.org/2.0/en/development/debugging.html#Debugger::log