Skip to content

Commit

Permalink
Tighter return types for Redis::(keys|hKeys|hVals|hGetAll)()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored and LolGleb committed Mar 2, 2024
1 parent b9c135d commit 9608c95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions redis/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ public function pExpireAt($key, $timestamp, $mode = null) {}
*
* @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
*
Expand Down Expand Up @@ -4112,7 +4112,7 @@ public function hDel($key, $hashKey1, ...$otherHashKeys) {}
*
* @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
*
Expand Down Expand Up @@ -4147,7 +4147,7 @@ public function hKeys($key) {}
*
* @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
*
Expand Down Expand Up @@ -4182,7 +4182,7 @@ public function hVals($key) {}
*
* @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
*
Expand Down

0 comments on commit 9608c95

Please sign in to comment.