Change-Id: Ib89226a83738d1205405eac3926bfaa578966133
* $this->allowNonTextContent is not true.
*/
protected function toEditText( $content ) {
- if ( $content === null || $content === false ) {
- return $content;
- }
-
- if ( is_string( $content ) ) {
+ if ( $content === null || $content === false || is_string( $content ) ) {
return $content;
}
/**
* Get the error list as a wikitext formatted list
*
- * @param string $shortContext A short enclosing context message name, to
+ * @param string|bool $shortContext A short enclosing context message name, to
* be used when there is a single error
- * @param string $longContext A long enclosing context message name, for a list
+ * @param string|bool $longContext A long enclosing context message name, for a list
* @return string
*/
public function getWikiText( $shortContext = false, $longContext = false ) {