@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Finds an identity by the given ID. |
83 | 83 | * @param string|integer $id the ID to be looked for |
84 | - * @return IdentityInterface the identity object that matches the given ID. |
|
84 | + * @return User|null the identity object that matches the given ID. |
|
85 | 85 | * Null should be returned if such an identity cannot be found |
86 | 86 | * or the identity is not in an active state (disabled, deleted, etc.) |
87 | 87 | */ |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @param mixed $token the token to be looked for |
106 | 106 | * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
107 | 107 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
108 | - * @return IdentityInterface the identity object that matches the given token. |
|
108 | + * @return null|User the identity object that matches the given token. |
|
109 | 109 | * Null should be returned if such an identity cannot be found |
110 | 110 | * or the identity is not in an active state (disabled, deleted, etc.) |
111 | 111 | */ |