From 731dee8e16e164d3dd048f596c18a9539b4c7f12 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Wed, 1 Nov 2023 10:35:33 +0000 Subject: [PATCH] chore: constrain tokenVerify type --- src/Appwrite/Auth/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Auth/Auth.php b/src/Appwrite/Auth/Auth.php index 1edae7f1e5..466fa0f878 100644 --- a/src/Appwrite/Auth/Auth.php +++ b/src/Appwrite/Auth/Auth.php @@ -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 */