diff --git a/src/Om/RedisObjectManager.php b/src/Om/RedisObjectManager.php index 88b32db..3d03c01 100644 --- a/src/Om/RedisObjectManager.php +++ b/src/Om/RedisObjectManager.php @@ -27,9 +27,10 @@ final class RedisObjectManager implements RedisObjectManagerInterface /** @var array> */ protected array $objectsToFlush = []; protected ?KeyGenerator $keyGenerator = null; + private RedisClientInterface $redisClient; public function __construct( - private ?RedisClientInterface $redisClient = null, + ?RedisClientInterface $redisClient = null, ) { $this->redisClient = $redisClient ?? (getenv('REDIS_CLIENT') === 'predis' ? new PredisClient() : new RedisClient());