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(); }