From 58e9569b46e950c809db742e8ec0e3db6dc8cd94 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 9 Aug 2014 14:15:46 +0100 Subject: [PATCH] Use new static instead of new self See code review on I957d6bda626b8e749a99717b5c89c4db38a36bf8 Change-Id: I79e4a987636509515df044da7a6951d3e4b4f824 --- includes/content/JSONContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ); } /** -- 2.20.1