if ( $request->wasPosted() ) {
// unique ID in case the same special page is open in multiple browser tabs
$uniqueId = MWCryptRand::generateHex( 6 );
- $key = $key . ':' . $uniqueId;
+ $key .= ':' . $uniqueId;
$queryParams = [ 'authUniqueId' => $uniqueId ] + $queryParams;
$authData = array_diff_key( $request->getValues(),
$uniqueId = $request->getVal( 'authUniqueId' );
if ( $uniqueId ) {
- $key = $key . ':' . $uniqueId;
+ $key .= ':' . $uniqueId;
$authData = $authManager->getAuthenticationSessionData( $key );
if ( $authData ) {
$authManager->removeAuthenticationSessionData( $key );
// 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 );
* are shown closer to the bottom; weight defaults to 0. Negative weight is allowed.)
* Keep order if weights are equal.
* @param array &$formDescriptor
- * @return array
*/
protected static function sortFormDescriptorFields( array &$formDescriptor ) {
$i = 0;