File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class RedisSimpleLockFactoryTest extends TestCase
1010
1111 public function setUp (): void
1212 {
13- $ this ->redisClient = new \Predis \Client (getenv ('REDIS_URI ' ));
13+ $ uri = getenv ("REDIS_URI " );
14+ $ this ->redisClient = is_string ($ uri ) : new \Predis \Client($ uri ): new \Predis \Client ();
1415 $ this ->redisClient ->flushdb ();
1516 }
1617
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ class RedisSimpleLockTest extends TestCase
99
1010 public function setUp (): void
1111 {
12- $ this ->redisClient = new \Predis \Client (getenv ("REDIS_URI " ));
12+ $ uri = getenv ("REDIS_URI " );
13+ $ this ->redisClient = is_string ($ uri ) : new \Predis \Client($ uri ): new \Predis \Client ();
1314 $ this ->redisClient ->flushdb ();
1415 }
1516
You can’t perform that action at this time.
0 commit comments