dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2acd6fb
)
Fix some MWExceptionHandler IDEA errors
author
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 13 Dec 2015 12:26:01 +0000
(
04:26
-0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 13 Dec 2015 12:26:01 +0000
(
04:26
-0800)
Change-Id: I98b5aa4f29107185b2279ce4caf05ffe80fcd6b0
includes/exception/MWExceptionHandler.php
patch
|
blob
|
history
diff --git
a/includes/exception/MWExceptionHandler.php
b/includes/exception/MWExceptionHandler.php
index
5734902
..
26960ff
100644
(file)
--- 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']}): ";