From 3a5c66c7dd60dae10ad631336c6a7fea2bf41fe2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 13 Dec 2015 04:26:01 -0800 Subject: [PATCH] Fix some MWExceptionHandler IDEA errors Change-Id: I98b5aa4f29107185b2279ce4caf05ffe80fcd6b0 --- includes/exception/MWExceptionHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/exception/MWExceptionHandler.php b/includes/exception/MWExceptionHandler.php index 573490222f..26960ffc3a 100644 --- a/includes/exception/MWExceptionHandler.php +++ b/includes/exception/MWExceptionHandler.php @@ -197,6 +197,7 @@ class MWExceptionHandler { * @param string $message * @param string $file * @param int $line + * @return bool * * @see logError() */ @@ -369,6 +370,7 @@ TXT; public static function prettyPrintTrace( array $trace, $pad = '' ) { $text = ''; + $level = 0; foreach ( $trace as $level => $frame ) { if ( isset( $frame['file'] ) && isset( $frame['line'] ) ) { $text .= "{$pad}#{$level} {$frame['file']}({$frame['line']}): "; -- 2.20.1