Skip to content

Commit 0b7c1ef

Browse files
authored
Merge pull request #151 from CameronHall/patch-1
Fix bug with providing Redis Client
2 parents 6977789 + bf6ead0 commit 0b7c1ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct($baseUri, $sdkKey, $options)
1818

1919
$this->_prefix = isset($options['redis_prefix']) ? $options['redis_prefix'] : 'launchdarkly';
2020

21-
if (isset($this->_options['phpredis_client']) && $this->_options['phpredis_client'] instanceof Redis) {
21+
if (isset($this->_options['phpredis_client']) && $this->_options['phpredis_client'] instanceof \Redis) {
2222
$this->_redisInstance = $this->_options['phpredis_client'];
2323
} else {
2424
$this->_redisOptions = array(
@@ -47,7 +47,7 @@ protected function readItemStringList($namespace)
4747
*/
4848
protected function getConnection()
4949
{
50-
if ($this->_redisInstance instanceof Redis) {
50+
if ($this->_redisInstance instanceof \Redis) {
5151
return $this->_redisInstance;
5252
}
5353

0 commit comments

Comments
 (0)