Replace debug comment with new system

This commit is contained in:
Kijin Sung 2016-02-12 16:35:10 +09:00
parent 3648b8f156
commit d63900547e
4 changed files with 191 additions and 179 deletions

View file

@ -144,7 +144,8 @@ class Debug
}
// Get the backtrace.
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
$backtrace_args = defined('\DEBUG_BACKTRACE_IGNORE_ARGS') ? \DEBUG_BACKTRACE_IGNORE_ARGS : 0;
$backtrace = debug_backtrace($backtrace_args);
// Prepare the error entry.
self::$_errors[] = $errinfo = (object)array(
@ -167,9 +168,9 @@ class Debug
*
* @return bool
*/
public static function addQuery()
public static function addQuery($query)
{
self::$_queries[] = $query;
}
/**