From 57d7c33de61f95119cd52f56a41742359093aa9d Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 27 Dec 2020 19:58:17 +0300 Subject: [PATCH] refactor(endpoints): fix typhint in validate_access_token() --- src/flextype/Endpoints/Utils/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/Endpoints/Utils/access.php b/src/flextype/Endpoints/Utils/access.php index 614c9434..5168f780 100644 --- a/src/flextype/Endpoints/Utils/access.php +++ b/src/flextype/Endpoints/Utils/access.php @@ -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(); }