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
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 });
You can’t perform that action at this time.
0 commit comments