Fix "MWExceptionRenderer::getText() should not be called statically" errors
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 17:55:07 +0000 (10:55 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 17:55:10 +0000 (10:55 -0700)
Change-Id: Icfb65795b1455217ca9bc2c1f7cd453144ad5106

includes/exception/MWExceptionRenderer.php

index 6fed7af..e242da3 100644 (file)
@@ -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" .