Skip to content

Commit 1a7339b

Browse files
committed
compat
1 parent d80c00e commit 1a7339b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": "^8.0",
1313
"ext-json": "*",
1414
"illuminate/queue": "^9.0|^10.0",
15-
"php-amqplib/php-amqplib": "^v3.3"
15+
"php-amqplib/php-amqplib": "^v3.4"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.3",

src/Queue/Connection/ConnectionFactory.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ 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-
167162
return array_filter([
168163
'cafile' => $config->getSslCaCert(),
169164
'capath' => $config->getSslCaPath(),
@@ -173,7 +168,7 @@ protected static function getSslOptions(AMQPConnectionConfig $config): array
173168
'verify_peer_name' => $config->getSslVerifyName(),
174169
'passphrase' => $config->getSslPassPhrase(),
175170
'ciphers' => $config->getSslCiphers(),
176-
'security_level' => $securityLevel,
171+
'security_level' => $config->getSslSecurityLevel(),
177172
], static function ($value) {
178173
return $value !== null;
179174
});

0 commit comments

Comments
 (0)