From 59f178d634675e4c1e516228e028cba2ba6b8d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 18 Dec 2025 13:37:50 +0100 Subject: [PATCH] Improve PHP types for extensability --- src/Appwrite/Auth/Key.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Appwrite/Auth/Key.php b/src/Appwrite/Auth/Key.php index b1f3836fb6..1adfa2be2d 100644 --- a/src/Appwrite/Auth/Key.php +++ b/src/Appwrite/Auth/Key.php @@ -95,15 +95,12 @@ class Key * Decode the given secret key into a Key object, containing the project ID, type, role, scopes, and name. * Can be a stored API key or a dynamic key (JWT). * - * @param Document $project - * @param string $key - * @return Key * @throws Exception */ public static function decode( Document $project, string $key - ): Key { + ): static { if (\str_contains($key, '_')) { [$type, $secret] = \explode('_', $key, 2); } else {