Skip to content

Commit f454938

Browse files
authored
Merge pull request ukko#47 from alexander-schranz/patch-2
Fix xReadGroup phpdocs for count and block
2 parents 597d7f2 + f918799 commit f454938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Redis.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3500,8 +3500,8 @@ public function xRead($arr_streams, $i_count = null, $i_block = null) {}
35003500
* @param string $str_group
35013501
* @param string $str_consumer
35023502
* @param array $arr_streams
3503-
* @param int|string $i_count
3504-
* @param int|string $i_block
3503+
* @param int|null $i_count
3504+
* @param int|null $i_block
35053505
* @return array The messages delivered to this consumer group (if any).
35063506
* @link https://redis.io/commands/xreadgroup
35073507
* @example
@@ -3512,7 +3512,7 @@ public function xRead($arr_streams, $i_count = null, $i_block = null) {}
35123512
* $obj_redis->xReadGroup('mygroup', 'consumer2', ['s1' => 0, 's2' => 0], 1, 1000);
35133513
* </pre>
35143514
*/
3515-
public function xReadGroup($str_group, $str_consumer, $arr_streams, $i_count, $i_block = null) {}
3515+
public function xReadGroup($str_group, $str_consumer, $arr_streams, $i_count = null, $i_block = null) {}
35163516

35173517
/**
35183518
* This is identical to xRange except the results come back in reverse order. Also note that Redis reverses the order of "start" and "end".

0 commit comments

Comments
 (0)