@@ -197,7 +197,7 @@ |
||
197 | 197 | * Sign a string with a given key and algorithm. |
198 | 198 | * |
199 | 199 | * @param string $msg The message to sign |
200 | - * @param string|resource $key The secret key |
|
200 | + * @param string $key The secret key |
|
201 | 201 | * @param string $alg The signing algorithm. |
202 | 202 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
203 | 203 | * |
@@ -149,7 +149,7 @@ |
||
149 | 149 | /** |
150 | 150 | * Get the token stored in the auth cookie. |
151 | 151 | * |
152 | - * @return ?string |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | private function token_from_cookie() { |
155 | 155 | if ( isset( $_COOKIE[ self::JWT_AUTH_TOKEN_COOKIE_NAME ] ) ) { |