From 6c7cde1094b782e5991a2f530f039690f55feacf Mon Sep 17 00:00:00 2001 From: shimon Date: Sun, 30 Nov 2025 19:14:13 +0200 Subject: [PATCH] fix - update return type in getCacheKeys method to ensure non-null string values --- src/Database/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index 97cad3d2a..294085b47 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -8582,7 +8582,7 @@ public function getSchemaAttributes(string $collection): array * @param string $collectionId * @param string|null $documentId * @param array $selects - * @return array{0: ?string, 1: ?string, 2: ?string} + * @return array{0: string, 1: string, 2: string} */ public function getCacheKeys(string $collectionId, ?string $documentId = null, array $selects = []): array { @@ -8615,8 +8615,8 @@ public function getCacheKeys(string $collectionId, ?string $documentId = null, a return [ $collectionKey, - $documentKey ?? null, - $documentHashKey ?? null + $documentKey ?? '', + $documentHashKey ?? '' ]; }