Skip to content

Commit 78da2df

Browse files
authored
Merge pull request ukko#43 from akalongman/master
Fix arguments count in RedisArray constructor
2 parents 9ec1795 + 9b8058f commit 78da2df

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Redis.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3551,12 +3551,11 @@ class RedisArray {
35513551
/**
35523552
* Constructor
35533553
*
3554-
* @param string $name Name of the redis array to create (required if using redis.ini to define array)
3555-
* @param array $hosts Array of hosts to construct the array with
3556-
* @param array $opts Array of options
3554+
* @param string|array $hosts Name of the redis array from redis.ini or array of hosts to construct the array with
3555+
* @param array $opts Array of options
35573556
* @link https://github.com/nicolasff/phpredis/blob/master/arrays.markdown
35583557
*/
3559-
function __construct($name = '', array $hosts = NULL, array $opts = NULL) {}
3558+
function __construct($hosts, array $opts = NULL) {}
35603559

35613560
/**
35623561
* @return array list of hosts for the selected array

0 commit comments

Comments
 (0)