* @param string|Message $msg Message key (string) for error text, or a Message object
* @param array $params Array with parameters to wfMessage()
*/
- public function __construct( $title, $msg, $params = array() ) {
+ public function __construct( $title, $msg, $params = [] ) {
$this->title = $title;
$this->msg = $msg;
$this->params = $params;
// passing to the parent constructor. Our overridden report() below
// makes sure that the page shown to the user is not forced to English.
if ( $msg instanceof Message ) {
- $enMsg = clone( $msg );
+ $enMsg = clone $msg;
} else {
$enMsg = wfMessage( $msg, $params );
}