chore: constrain tokenVerify type

This commit is contained in:
loks0n 2023-11-01 10:35:33 +00:00
parent af0d689aff
commit 731dee8e16

View file

@ -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 */