X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fspecialpage%2FAuthManagerSpecialPage.php;h=993415015cc3d27d2128772155909bc06942522b;hb=3bbda79f1f09649bc4d036f2810117df46166f9c;hp=ba7785cc4ba198cab200a84451c4135ac9e59d1b;hpb=b4c7f4c30db86ad74b068afc56a13a965c369540;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/AuthManagerSpecialPage.php b/includes/specialpage/AuthManagerSpecialPage.php index ba7785cc4b..993415015c 100644 --- a/includes/specialpage/AuthManagerSpecialPage.php +++ b/includes/specialpage/AuthManagerSpecialPage.php @@ -435,10 +435,11 @@ abstract class AuthManagerSpecialPage extends SpecialPage { if ( is_string( reset( $status ) ) ) { $status = Status::newFatal( ...$status ); } elseif ( is_array( reset( $status ) ) ) { - $status = Status::newGood(); + $ret = Status::newGood(); foreach ( $status as $message ) { - $status->fatal( ...$message ); + $ret->fatal( ...$message ); } + $status = $ret; } else { throw new UnexpectedValueException( 'invalid HTMLForm::trySubmit() return value: ' . 'first element of array is ' . gettype( reset( $status ) ) ); @@ -508,7 +509,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage { * Generates a HTMLForm descriptor array from a set of authentication requests. * @param AuthenticationRequest[] $requests * @param string $action AuthManager action name (one of the AuthManager::ACTION_* constants) - * @return array + * @return array[] */ protected function getAuthFormDescriptor( $requests, $action ) { $fieldInfo = AuthenticationRequest::mergeFieldInfo( $requests ); @@ -599,7 +600,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage { /** * Adds a sequential tabindex starting from 1 to all form elements. This way the user can * use the tab key to traverse the form without having to step through all links and such. - * @param array &$formDescriptor + * @param array[] &$formDescriptor */ protected function addTabIndex( &$formDescriptor ) { $i = 1;