Fix some MWExceptionHandler IDEA errors
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 13 Dec 2015 12:26:01 +0000 (04:26 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 13 Dec 2015 12:26:01 +0000 (04:26 -0800)
Change-Id: I98b5aa4f29107185b2279ce4caf05ffe80fcd6b0

includes/exception/MWExceptionHandler.php

index 5734902..26960ff 100644 (file)
@@ -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']}): ";