/**
* @param string $errorMessage Localisation message describing the error (since MW 1.26)
- * @param string $titleText The invalid title text (since MW 1.26)
+ * @param string|null $titleText The invalid title text (since MW 1.26)
* @param string[] $errorMessageParameters Additional parameters for the error message.
* $titleText will be appended if it's not null. (since MW 1.26)
*/
public function __construct(
- $errorMessage = null, $titleText = null, $errorMessageParameters = []
+ $errorMessage, $titleText = null, $errorMessageParameters = []
) {
$this->errorMessage = $errorMessage;
$this->titleText = $titleText;
/**
* @since 1.26
- * @return string|null
+ * @return string
*/
public function getErrorMessage() {
return $this->errorMessage;