Skip to content

Commit d80c00e

Browse files
committed
will we get there
1 parent 07cab33 commit d80c00e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Queue/Connection/ConnectionFactory.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ protected static function getReadWriteTimeout(AMQPConnectionConfig $config): flo
159159

160160
protected static function getSslOptions(AMQPConnectionConfig $config): array
161161
{
162+
$securityLevel = null;
163+
if (method_exists($config, 'getSslSecurityLevel')) {
164+
$securityLevel = $config->getSslSecurityLevel();
165+
}
166+
162167
return array_filter([
163168
'cafile' => $config->getSslCaCert(),
164169
'capath' => $config->getSslCaPath(),
@@ -168,7 +173,7 @@ protected static function getSslOptions(AMQPConnectionConfig $config): array
168173
'verify_peer_name' => $config->getSslVerifyName(),
169174
'passphrase' => $config->getSslPassPhrase(),
170175
'ciphers' => $config->getSslCiphers(),
171-
'security_level' => $config->getSslSecurityLevel(),
176+
'security_level' => $securityLevel,
172177
], static function ($value) {
173178
return $value !== null;
174179
});

0 commit comments

Comments
 (0)