File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Cache/Traits Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ public static function createConnection($dsn, array $options = [])
252
252
if ($ params ['redis_cluster ' ]) {
253
253
$ params ['cluster ' ] = 'redis ' ;
254
254
if (isset ($ params ['redis_sentinel ' ])) {
255
- throw new InvalidArgumentException (sprintf ('Invalid Redis DSN: cannot use both redis_cluster and redis_sentinel at the same time: %s ' , $ dsn ));
255
+ throw new InvalidArgumentException (sprintf ('Cannot use both " redis_cluster" and " redis_sentinel" at the same time: %s ' , $ dsn ));
256
256
}
257
257
} elseif (isset ($ params ['redis_sentinel ' ])) {
258
258
$ params ['replication ' ] = 'sentinel ' ;
@@ -279,7 +279,7 @@ public static function createConnection($dsn, array $options = [])
279
279
}
280
280
281
281
$ redis = new $ class ($ hosts , array_diff_key ($ params , self ::$ defaultConnectionOptions ));
282
- if ($ params ['redis_sentinel ' ]) {
282
+ if (isset ( $ params ['redis_sentinel ' ]) ) {
283
283
$ redis ->getConnection ()->setSentinelTimeout ($ params ['timeout ' ]);
284
284
}
285
285
} elseif (class_exists ($ class , false )) {
You can’t perform that action at this time.
0 commit comments