Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a8b439

Browse files
Fix $auth check in RedisTrait
1 parent c066c3c commit 9a8b439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static function createConnection($dsn, array $options = [])
182182
throw new InvalidArgumentException(sprintf('Redis connection "%s" failed: ', $dsn).$error.'.');
183183
}
184184

185-
if ($auth && !$redis->auth($auth))
185+
if (($auth && !$redis->auth($auth))
186186
|| ($params['dbindex'] && !$redis->select($params['dbindex']))
187187
|| ($params['read_timeout'] && !$redis->setOption(\Redis::OPT_READ_TIMEOUT, $params['read_timeout']))
188188
) {

0 commit comments

Comments
 (0)