Pass message params as array to RawMessage
authorUmherirrender <umherirrender_de.wp@web.de>
Tue, 2 Jul 2019 20:00:14 +0000 (22:00 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 18 Jul 2019 16:43:39 +0000 (16:43 +0000)
To match documentation of RawMessage::__construct

Change-Id: I4d9fce6b63af89a0012c9eaac72c0b46f75b43ac

includes/specialpage/AuthManagerSpecialPage.php

index 101570f..65cd2d2 100644 (file)
@@ -429,7 +429,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage {
                                // accidentally returning it so best check and fix
                                $status = Status::wrap( $status );
                        } elseif ( is_string( $status ) ) {
-                               $status = Status::newFatal( new RawMessage( '$1', $status ) );
+                               $status = Status::newFatal( new RawMessage( '$1', [ $status ] ) );
                        } elseif ( is_array( $status ) ) {
                                if ( is_string( reset( $status ) ) ) {
                                        $status = Status::newFatal( ...$status );