Skip to content

Commit d690340

Browse files
committed
fix test
1 parent 9e4f32e commit d690340

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,9 +159,14 @@ protected static function getReadWriteTimeout(AMQPConnectionConfig $config): flo
159159

160160
protected static function getSslOptions(AMQPConnectionConfig $config): array
161161
{
162+
$path = null;
163+
if (method_exists($config, 'getSslCaPath')) {
164+
$path = $config->getSslCaPath();
165+
}
166+
162167
return array_filter([
163168
'cafile' => $config->getSslCaCert(),
164-
'capath' => $config->getSslCaPath(),
169+
'capath' => $path,
165170
'local_cert' => $config->getSslCert(),
166171
'local_pk' => $config->getSslKey(),
167172
'verify_peer' => $config->getSslVerify(),

0 commit comments

Comments
 (0)