From b7cc17e91da111176e6d966b3a29866d993fe0c3 Mon Sep 17 00:00:00 2001 From: Riekelt Kapitein Date: Thu, 18 Feb 2021 12:48:21 +0100 Subject: [PATCH] Fix setting a Redis instance via config --- src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php b/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php index 9e04400c6..3ac230bde 100644 --- a/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php +++ b/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php @@ -19,7 +19,7 @@ public function __construct($baseUri, $sdkKey, $options) $this->_prefix = isset($options['redis_prefix']) ? $options['redis_prefix'] : 'launchdarkly'; if (isset($this->_options['phpredis_client']) && $this->_options['phpredis_client'] instanceof Redis) { - $this->_connection = $this->_options['phpredis_client']; + $this->_redisInstance = $this->_options['phpredis_client']; } else { $this->_redisOptions = array( "timeout" => isset($options['redis_timeout']) ? $options['redis_timeout'] : 5,