Skip to content

Commit 14250d3

Browse files
authored
Merge pull request #768 from utopia-php/refactor-get-cache-keys
fix - update return type in getCacheKeys method to ensure non-null st…
2 parents 5e634a7 + 6c7cde1 commit 14250d3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Database/Database.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8582,7 +8582,7 @@ public function getSchemaAttributes(string $collection): array
85828582
* @param string $collectionId
85838583
* @param string|null $documentId
85848584
* @param array<string> $selects
8585-
* @return array{0: ?string, 1: ?string, 2: ?string}
8585+
* @return array{0: string, 1: string, 2: string}
85868586
*/
85878587
public function getCacheKeys(string $collectionId, ?string $documentId = null, array $selects = []): array
85888588
{
@@ -8615,8 +8615,8 @@ public function getCacheKeys(string $collectionId, ?string $documentId = null, a
86158615

86168616
return [
86178617
$collectionKey,
8618-
$documentKey ?? null,
8619-
$documentHashKey ?? null
8618+
$documentKey ?? '',
8619+
$documentHashKey ?? ''
86208620
];
86218621
}
86228622

0 commit comments

Comments
 (0)