X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FResetPasswordSecondaryAuthenticationProvider.php;h=25a17544f1fe3166715d276a61713a282f56ea29;hb=5a451fd01be397db3209c1881a335423706da5c2;hp=45ac3aa0b5a95320c01133cc3c035a234db64f7b;hpb=53779578b44575ef91feb3fad488f09b52f737d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php b/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php index 45ac3aa0b5..25a17544f1 100644 --- a/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php +++ b/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php @@ -96,7 +96,9 @@ class ResetPasswordSecondaryAuthenticationProvider extends AbstractSecondaryAuth } } - $needReq = isset( $data->req ) ? $data->req : new PasswordAuthenticationRequest(); + /** @var PasswordAuthenticationRequest $needReq */ + $needReq = $data->req ?? new PasswordAuthenticationRequest(); + '@phan-var PasswordAuthenticationRequest $needReq'; if ( !$needReq->action ) { $needReq->action = AuthManager::ACTION_CHANGE; }