Fix TextContent::preSaveTransform() return type
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 13 Dec 2013 17:51:47 +0000 (12:51 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 13 Dec 2013 18:20:22 +0000 (13:20 -0500)
commit99da9b9bfe4f3ccc9f1e4f31c860f002adb4bcca
treec3619d13097833651ab8c2a08b235eed52eb4956
parent12cc7a6791128386e809721ce6120ea8282c0589
Fix TextContent::preSaveTransform() return type

TextContent::preSaveTransform should return an object of the same class
as $this, not a WikitextContent.

Apparently this was never noticed because most code paths rtrim the
input and TextContent::preSaveTransform returns $this if the rtrim is a
no-op on the input.

Bug: 58451
Change-Id: I9f8f78d52448d1ba055a654a12ff4fad86756110
includes/content/TextContent.php