@@ -249,7 +249,6 @@ |
||
| 249 | 249 | * |
| 250 | 250 | * Only considers requests that have a "username" field. |
| 251 | 251 | * |
| 252 | - * @param AuthenticationRequest[] $requests |
|
| 253 | 252 | * @return string|null |
| 254 | 253 | * @throws \UnexpectedValueException If multiple different usernames are present. |
| 255 | 254 | */ |
@@ -199,8 +199,8 @@ |
||
| 199 | 199 | * @deprecated For backwards compatibility only, should be avoided in new code |
| 200 | 200 | * @param string $method AuthPlugin method to call |
| 201 | 201 | * @param array $params Parameters to pass |
| 202 | - * @param mixed $return Return value if AuthPlugin wasn't called |
|
| 203 | - * @return mixed Return value from the AuthPlugin method, or $return |
|
| 202 | + * @param string|null $return Return value if AuthPlugin wasn't called |
|
| 203 | + * @return string Return value from the AuthPlugin method, or $return |
|
| 204 | 204 | */ |
| 205 | 205 | public static function callLegacyAuthPlugin( $method, array $params, $return = null ) { |
| 206 | 206 | global $wgAuth; |
@@ -228,6 +228,9 @@ |
||
| 228 | 228 | /** @var User */ |
| 229 | 229 | private $user; |
| 230 | 230 | |
| 231 | + /** |
|
| 232 | + * @param User $user |
|
| 233 | + */ |
|
| 231 | 234 | function __construct( $user ) { |
| 232 | 235 | $this->user = $user; |
| 233 | 236 | } |