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

Skip to content

Commit 3af3822

Browse files
committed
silence PHP warnings issued by Redis::connect()
1 parent da4eb8b commit 3af3822

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private static function initializeRedis(\Redis $redis, string $host, int $port,
121121
return $redis;
122122
}
123123

124-
$redis->connect($host, $port);
124+
@$redis->connect($host, $port);
125125
$redis->setOption(\Redis::OPT_SERIALIZER, $serializer);
126126

127127
if (null !== $auth && !$redis->auth($auth)) {

0 commit comments

Comments
 (0)