8000 Check if redis is loaded · symfony/symfony@61a8072 · GitHub
[go: up one dir, main page]

Skip to content

Commit 61a8072

Browse files
committed
Check if redis is loaded
1 parent 263b5f5 commit 61a8072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function __construct(array $options, \Redis|Relay|\RedisCluster $redis =
9595
if (null !== $sentinelMaster) {
9696
$sentinelClass = \extension_loaded('redis') ? \RedisSentinel::class : Sentinel::class;
9797

98-
if (version_compare(phpversion('redis'), '6.0.0', '>=')) {
98+
if (\extension_loaded('redis') && version_compare(phpversion('redis'), '6.0.0', '>=')) {
9999
$params = [
100100
'host' => $host,
101101
'port' => $port,

0 commit comments

Comments
 (0)
0