From b5615831ef43e5c6e9b356d0ded14055f102aa20 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Fri, 14 Jan 2022 19:31:08 +0100 Subject: [PATCH] Heroku fix --- composer.json | 2 +- helpers/CacheEngines/RedisCache.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index f925cbc..f198ad6 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "ext-redis": "*", + "ext-redis": "^5.3.4", "ssovit/tiktok-api": "dev-rework", "steampixel/simple-php-router": "^0.7.0", "latte/latte": "^2.10", diff --git a/helpers/CacheEngines/RedisCache.php b/helpers/CacheEngines/RedisCache.php index 58d5bb9..eaaf97b 100644 --- a/helpers/CacheEngines/RedisCache.php +++ b/helpers/CacheEngines/RedisCache.php @@ -1,12 +1,10 @@ client = new Redis(); + $this->client = new \Redis(); $this->client->connect($host, $port); if ($password) { $this->client->auth($password);