From: Kunal Mehta Date: Sat, 9 Aug 2014 13:15:46 +0000 (+0100) Subject: Use new static instead of new self X-Git-Tag: 1.31.0-rc.0~14499 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=58e9569b46e950c809db742e8ec0e3db6dc8cd94;p=lhc%2Fweb%2Fwiklou.git Use new static instead of new self See code review on I957d6bda626b8e749a99717b5c89c4db38a36bf8 Change-Id: I79e4a987636509515df044da7a6951d3e4b4f824 --- diff --git a/includes/content/JSONContent.php b/includes/content/JSONContent.php index f55467f06f..377d67501f 100644 --- a/includes/content/JSONContent.php +++ b/includes/content/JSONContent.php @@ -55,7 +55,7 @@ class JSONContent extends TextContent { * @return JSONContent */ public function preSaveTransform( Title $title, User $user, ParserOptions $popts ) { - return new self( $this->beautifyJSON() ); + return new static( $this->beautifyJSON() ); } /**