File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1717 },
1818 "require" : {
1919 "ext-pcntl" : " *" ,
20- "texthtml/php-lock" : " ~ 2.1" ,
21- "predis/predis" : " ~1 .0" ,
22- "psr/log" : " ~1 .0"
20+ "texthtml/php-lock" : " ^ 2.1" ,
21+ "predis/predis" : " ^1.0|^2 .0" ,
22+ "psr/log" : " ^1.0|^3 .0"
2323 }
2424}
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