File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ protected static function getReadWriteTimeout(AMQPConnectionConfig $config): flo
159
159
160
160
protected static function getSslOptions (AMQPConnectionConfig $ config ): array
161
161
{
162
+ $ securityLevel = null ;
163
+ if (method_exists ($ config , 'getSslSecurityLevel ' )) {
164
+ $ securityLevel = $ config ->getSslSecurityLevel ();
165
+ }
166
+
162
167
return array_filter ([
163
168
'cafile ' => $ config ->getSslCaCert (),
164
169
'capath ' => $ config ->getSslCaPath (),
@@ -168,7 +173,7 @@ protected static function getSslOptions(AMQPConnectionConfig $config): array
168
173
'verify_peer_name ' => $ config ->getSslVerifyName (),
169
174
'passphrase ' => $ config ->getSslPassPhrase (),
170
175
'ciphers ' => $ config ->getSslCiphers (),
171
- 'security_level ' => $ config -> getSslSecurityLevel () ,
176
+ 'security_level ' => $ securityLevel ,
172
177
], static function ($ value ) {
173
178
return $ value !== null ;
174
179
});
You can’t perform that action at this time.
0 commit comments