mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
chore: constrain tokenVerify type
This commit is contained in:
parent
af0d689aff
commit
731dee8e16
1 changed files with 2 additions and 2 deletions
|
|
@ -331,9 +331,9 @@ class Auth
|
|||
* @param int $type Type of token to verify, if null will verify any type
|
||||
* @param string $secret
|
||||
*
|
||||
* @return bool|Document
|
||||
* @return false|Document
|
||||
*/
|
||||
public static function tokenVerify(array $tokens, int $type = null, string $secret)
|
||||
public static function tokenVerify(array $tokens, int $type = null, string $secret): false|Document
|
||||
{
|
||||
foreach ($tokens as $token) {
|
||||
/** @var Document $token */
|
||||
|
|
|
|||
Loading…
Reference in a new issue