|
11 | 11 |
|
12 | 12 | namespaceSymfony\Component\Cache\Traits; |
13 | 13 |
|
14 | | -usefunctionis_array; |
15 | 14 | usePredis\Connection\Aggregate\ClusterInterface; |
16 | 15 | usePredis\Connection\Aggregate\PredisCluster; |
17 | 16 | usePredis\Connection\Aggregate\RedisCluster; |
@@ -169,7 +168,7 @@ public static function createConnection($dsn, array $options = array()) |
169 | 168 | $params['database'] =$params['dbindex'] ?:null; |
170 | 169 | $params['password'] =$auth; |
171 | 170 |
|
172 | | -$predisOptions =false !==isset($params['predis_options']) &&true ===\is_array($params['predis_options']) ?$params['predis_options'] :[]; |
| 171 | +$predisOptions =false !==isset($params['predis_options']) &&true ===\is_array($params['predis_options']) ?$params['predis_options'] :array(); |
173 | 172 |
|
174 | 173 | $redis =new$class((newFactory())->create($params),$predisOptions); |
175 | 174 | }elseif (class_exists($class,false)) { |
|