From: Aaron Schulz Date: Mon, 19 Sep 2016 17:55:07 +0000 (-0700) Subject: Fix "MWExceptionRenderer::getText() should not be called statically" errors X-Git-Tag: 1.31.0-rc.0~5479 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=cb9901ef4198db690e2c57d426e48b6de07e75e4;p=lhc%2Fweb%2Fwiklou.git Fix "MWExceptionRenderer::getText() should not be called statically" errors Change-Id: Icfb65795b1455217ca9bc2c1f7cd453144ad5106 --- diff --git a/includes/exception/MWExceptionRenderer.php b/includes/exception/MWExceptionRenderer.php index 6fed7af8bc..e242da348b 100644 --- a/includes/exception/MWExceptionRenderer.php +++ b/includes/exception/MWExceptionRenderer.php @@ -257,7 +257,7 @@ class MWExceptionRenderer { * @param Exception|Throwable $e * @return string */ - private function getText( $e ) { + private static function getText( $e ) { if ( self::showBackTrace( $e ) ) { return MWExceptionHandler::getLogMessage( $e ) . "\nBacktrace:\n" .