Skip to content

Commit 875e730

Browse files
committed
fixed ukko#27 - add missed argument in blPop, brPop
1 parent 128152c commit 875e730

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/Redis.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,10 @@ public function rPop( $key ) {}
670670
* Il all the list identified by the keys passed in arguments are empty, blPop will block
671671
* during the specified timeout until an element is pushed to one of those lists. This element will be popped.
672672
*
673-
* @param array $keys Array containing the keys of the lists INTEGER Timeout
674-
* Or STRING Key1 STRING Key2 STRING Key3 ... STRING Keyn INTEGER Timeout
673+
* @param array $keys Array containing the keys of the lists
674+
* Or STRING Key1 STRING Key2 STRING Key3 ... STRING Keyn
675+
* @param int $timeout Timeout
676+
*
675677
* @return array array('listName', 'element')
676678
* @link http://redis.io/commands/blpop
677679
* @example
@@ -702,7 +704,7 @@ public function rPop( $key ) {}
702704
* // array('key1', 'A') is returned
703705
* </pre>
704706
*/
705-
public function blPop( array $keys ) {}
707+
public function blPop( array $keys, $timeout) {}
706708

707709
/**
708710
* Is a blocking rPop primitive. If at least one of the lists contains at least one element,
@@ -711,8 +713,9 @@ public function blPop( array $keys ) {}
711713
* block during the specified timeout until an element is pushed to one of those lists. T
712714
* his element will be popped.
713715
*
714-
* @param array $keys Array containing the keys of the lists INTEGER Timeout
715-
* Or STRING Key1 STRING Key2 STRING Key3 ... STRING Keyn INTEGER Timeout
716+
* @param array $keys Array containing the keys of the lists
717+
* Or STRING Key1 STRING Key2 STRING Key3 ... STRING Keyn
718+
* @param int $timeout Timeout
716719
* @return array array('listName', 'element')
717720
* @link http://redis.io/commands/brpop
718721
* @example
@@ -743,7 +746,7 @@ public function blPop( array $keys ) {}
743746
* // array('key1', 'A') is returned
744747
* </pre>
745748
*/
746-
public function brPop( array $keys ) {}
749+
public function brPop( array $keys, $timeout ) {}
747750

748751

749752
/**

0 commit comments

Comments
 (0)