Skip to content

Commit

Permalink
Fix RedisCluster::setOption|getOption types
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Dec 2, 2021
1 parent ec24a9a commit 10e9fd1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions redis/RedisCluster.php
Expand Up @@ -2817,20 +2817,20 @@ public function clearLastError() {}
/**
* Get client option
*
* @param string $name parameter name
* @param string $option parameter name
*
* @return int Parameter value.
* @example
* // return RedisCluster::SERIALIZER_NONE, RedisCluster::SERIALIZER_PHP, or RedisCluster::SERIALIZER_IGBINARY.
* $redisCluster->getOption(RedisCluster::OPT_SERIALIZER);
*/
public function getOption($name) {}
public function getOption($option) {}

/**
* Set client option.
*
* @param string $name parameter name
* @param string $value parameter value
* @param int $option parameter name
* @param int|string $value parameter value
*
* @return bool TRUE on success, FALSE on error.
* @example
Expand All @@ -2841,7 +2841,7 @@ public function getOption($name) {}
* $redisCluster->setOption(RedisCluster::OPT_PREFIX, 'myAppName:'); // use custom prefix on all keys
* </pre>
*/
public function setOption($name, $value) {}
public function setOption($option, $value) {}

/**
* A utility method to prefix the value with the prefix setting for phpredis.
Expand Down

0 comments on commit 10e9fd1

Please sign in to comment.