From: Aaron Schulz Date: Sun, 13 Dec 2015 12:26:01 +0000 (-0800) Subject: Fix some MWExceptionHandler IDEA errors X-Git-Tag: 1.31.0-rc.0~8708^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=3a5c66c7dd60dae10ad631336c6a7fea2bf41fe2;p=lhc%2Fweb%2Fwiklou.git Fix some MWExceptionHandler IDEA errors Change-Id: I98b5aa4f29107185b2279ce4caf05ffe80fcd6b0 --- 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']}): ";