Merge pull request #559 from alexander-schranz/patch-2

Fix xReadGroup phpdocs for count and block
This commit is contained in:
Artemy Pestretsov 2019-04-15 15:15:53 +03:00 committed by GitHub
commit 44f75a69f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3488,8 +3488,8 @@ class Redis
* @param string $str_group
* @param string $str_consumer
* @param array $arr_streams
* @param int|string $i_count
* @param int|string $i_block
* @param int|null $i_count
* @param int|null $i_block
* @return array The messages delivered to this consumer group (if any).
* @link https://redis.io/commands/xreadgroup
* @example
@ -3500,7 +3500,7 @@ class Redis
* $obj_redis->xReadGroup('mygroup', 'consumer2', ['s1' => 0, 's2' => 0], 1, 1000);
* </pre>
*/
public function xReadGroup($str_group, $str_consumer, $arr_streams, $i_count, $i_block = null) {}
public function xReadGroup($str_group, $str_consumer, $arr_streams, $i_count = null, $i_block = null) {}
/**
* This is identical to xRange except the results come back in reverse order. Also note that Redis reverses the order of "start" and "end".