Skip to content

Commit 77ab62b

Browse files
BenMorelmichael-grunder
authored andcommitted
Tighter return types for Redis::(keys|hKeys|hVals|hGetAll)()
1 parent 732e466 commit 77ab62b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

redis.stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ public function hGet(string $key, string $member): mixed;
16761676
* Read every field and value from a hash.
16771677
*
16781678
* @param string $key The hash to query.
1679-
* @return Redis|array|false All fields and values or false if the key didn't exist.
1679+
* @return Redis|array<string, mixed>|false All fields and values or false if the key didn't exist.
16801680
*
16811681
* @see https://redis.io/commands/hgetall
16821682
*
@@ -1722,7 +1722,7 @@ public function hIncrByFloat(string $key, string $field, float $value): Redis|fl
17221722
*
17231723
* @param string $key The hash to query.
17241724
*
1725-
* @return Redis|array|false The fields in the hash or false if the hash doesn't exist.
1725+
* @return Redis|list<string>|false The fields in the hash or false if the hash doesn't exist.
17261726
*
17271727
* @see https://redis.io/commands/hkeys
17281728
*
@@ -1834,7 +1834,7 @@ public function hStrLen(string $key, string $field): Redis|int|false;
18341834
*
18351835
* @param string $key The hash to query.
18361836
*
1837-
* @return Redis|array|false The values from the hash.
1837+
* @return Redis|list<mixed>|false The values from the hash.
18381838
*
18391839
* @see https://redis.io/commands/hvals
18401840
*
@@ -1952,7 +1952,7 @@ public function info(string ...$sections): Redis|array|false;
19521952
*/
19531953
public function isConnected(): bool;
19541954

1955-
/** @return Redis|array|false */
1955+
/** @return Redis|list<string>|false */
19561956
public function keys(string $pattern);
19571957

19581958
/**

0 commit comments

Comments
 (0)