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_registry_token()

This commit is contained in:
Awilum
2020-12-27 20:01:49 +03:00
parent ceca5a1647
commit acc99c4b28

View File

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