Tighter return types for Redis::(keys|hKeys|hVals|hGetAll)()

This commit is contained in:
Benjamin Morel 2024-02-14 22:43:54 +01:00 committed by Gleb Sieemshchikov
parent b9c135d451
commit 9608c95323
1 changed files with 4 additions and 4 deletions

View File

@ -2374,7 +2374,7 @@ class Redis
*
* @param string $pattern pattern, using '*' as a wildcard
*
* @return array|false|Redis The keys that match a certain pattern or Redis if in multimode
* @return list<string>|false|Redis The keys that match a certain pattern or Redis if in multimode
*
* @throws RedisException
*
@ -4112,7 +4112,7 @@ class Redis
*
* @param string $key
*
* @return array|false|Redis An array of elements, the keys of the hash. This works like PHP's array_keys() or Redis if in multimode
* @return list<string>|false|Redis An array of elements, the keys of the hash. This works like PHP's array_keys() or Redis if in multimode
*
* @throws RedisException
*
@ -4147,7 +4147,7 @@ class Redis
*
* @param string $key
*
* @return array|false|Redis An array of elements, the values of the hash. This works like PHP's array_values() or Redis if in multimode
* @return list<mixed>|false|Redis An array of elements, the values of the hash. This works like PHP's array_values() or Redis if in multimode
*
* @throws RedisException
*
@ -4182,7 +4182,7 @@ class Redis
*
* @param string $key
*
* @return array|false|Redis An array of elements, the contents of the hash or Redis if in multimode
* @return array<string, mixed>|false|Redis An array of elements, the contents of the hash or Redis if in multimode
*
* @throws RedisException
*