1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

refactor(endpoints): fix typhint in validate_access_token()

This commit is contained in:
Awilum
2020-12-27 19:58:17 +03:00
parent 5954d8ebea
commit 57d7c33de6

View File

@@ -14,7 +14,7 @@ use function filesystem;
/**
* Validate access token
*/
function validate_access_token($token): bool
function validate_access_token(string $token): bool
{
return filesystem()->file(PATH['project'] . '/tokens/access/' . $token . '/token.yaml')->exists();
}