Skip to content

Commit 3e8355a

Browse files
committed
allow rediss as scheme in DSN string for predis library
1 parent f57ae69 commit 3e8355a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RedisConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function parseDsn($dsn)
118118
{
119119
$unsupportedError = 'The given DSN "%s" is not supported. Must start with "redis:".';
120120

121-
if ((false === strpos($dsn, 'redis:')) and (false === strpos($dsn, 'tls:'))) {
121+
if ((false === strpos($dsn, 'redis:')) and (false === strpos($dsn, 'rediss:'))) {
122122
throw new \LogicException(sprintf($unsupportedError, $dsn));
123123
}
124124

0 commit comments

Comments
 (0)