Deprecate Message::$format (mostly)
authorGergő Tisza <gtisza@wikimedia.org>
Wed, 9 Nov 2016 00:42:49 +0000 (00:42 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Thu, 10 Nov 2016 09:06:26 +0000 (09:06 +0000)
commitb0784a8e964c4ad435b5e9bc88393a89dbabcf75
treebe29599e0336547d27ef9438b653f80ff26c32b9
parent4ea621e2365319bbb8d35329bbd56a81ebe7251c
Deprecate Message::$format (mostly)

Message::__toString() used the same formatting mode that the last
explicit transformation used:

    $msg = new Message( 'foo' );
    echo $msg; // escaped
    echo $msg->plain();
    echo $msg; // not escaped

This is not particularly useful and makes code review hard, so let's
get rid of it.

The same behavior with $msg->toString() is left intact (and logged)
for now.

Bug: T146416
Change-Id: Ia9b2a1dcf09d52348b2c6d8299fd849b809f6e74
includes/Message.php
tests/phpunit/includes/MessageTest.php
tests/phpunit/includes/api/ApiMessageTest.php