From acc99c4b28e7ba483160ea6ee34399f131524085 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 27 Dec 2020 20:01:49 +0300 Subject: [PATCH] refactor(endpoints): fix typhint in validate_registry_token() --- src/flextype/Endpoints/registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/Endpoints/registry.php b/src/flextype/Endpoints/registry.php index 273de334..2be69fd0 100644 --- a/src/flextype/Endpoints/registry.php +++ b/src/flextype/Endpoints/registry.php @@ -19,7 +19,7 @@ use function flextype; /** * Validate registry token */ -function validate_registry_token($token): bool +function validate_registry_token(string $token): bool { return filesystem()->file(PATH['project'] . '/tokens/registry/' . $token . '/token.yaml')->exists(); }