OOUIHTMLForm: Make sure arguments to OOUI\HtmlSnippet are really strings
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 16 Jul 2015 18:59:11 +0000 (20:59 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Thu, 16 Jul 2015 19:08:50 +0000 (19:08 +0000)
commitc61a678e9ca15f78f67ff9a83ee38bb0794037cb
tree7c91cd7e725194f2c4cf9858bd290d04a7118319
parent93fd3f8191491236e34c402a3a7fec7adf34c3d3
OOUIHTMLForm: Make sure arguments to OOUI\HtmlSnippet are really strings

    Catchable fatal error: Method OOUI\HtmlSnippet::__toString()
    must return a string value in
    /var/www/html/w/vendor/oojs/oojs-ui/php/Element.php on line 245

$this->getHelpText() can return null.

Maybe OOUI\HtmlSnippet should be doing the casting instead, but it
currently doesn't.

Follow-up to 3ec3f08ca5c7bfae820bbc8085eff0809abd688b.

Change-Id: I0bb2a1594ea5ffd86bf8abd41c13f9451df256d5
includes/htmlform/HTMLFormField.php