X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FAuthenticationRequest.php;h=420034191e41300709dfb25c318faa17bda756d0;hb=529fc12d2ad2032337594389448fdb5b55802830;hp=7fc362a2042722c1393e7cc4c163425a9145b4bf;hpb=9964ca1a390c446397dcd466916ffed356cdc3c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/AuthenticationRequest.php b/includes/auth/AuthenticationRequest.php index 7fc362a204..420034191e 100644 --- a/includes/auth/AuthenticationRequest.php +++ b/includes/auth/AuthenticationRequest.php @@ -47,7 +47,8 @@ abstract class AuthenticationRequest { /** Indicates that the request is required by a primary authentication * provider. Since the user can choose which primary to authenticate with, - * the request might or might not end up being actually required. */ + * the request might or might not end up being actually required. + */ const PRIMARY_REQUIRED = 2; /** @var string|null The AuthManager::ACTION_* constant this request was @@ -57,14 +58,16 @@ abstract class AuthenticationRequest { public $action = null; /** @var int For login, continue, and link actions, one of self::OPTIONAL, - * self::REQUIRED, or self::PRIMARY_REQUIRED */ + * self::REQUIRED, or self::PRIMARY_REQUIRED + */ public $required = self::REQUIRED; /** @var string|null Return-to URL, in case of redirect */ public $returnToUrl = null; /** @var string|null Username. See AuthenticationProvider::getAuthenticationRequests() - * for details of what this means and how it behaves. */ + * for details of what this means and how it behaves. + */ public $username = null; /** @@ -370,6 +373,7 @@ abstract class AuthenticationRequest { * @return AuthenticationRequest */ public static function __set_state( $data ) { + // @phan-suppress-next-line PhanTypeInstantiateAbstract $ret = new static(); foreach ( $data as $k => $v ) { $ret->$k = $v;