We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e4f32e commit d690340Copy full SHA for d690340
src/Queue/Connection/ConnectionFactory.php
@@ -159,9 +159,14 @@ protected static function getReadWriteTimeout(AMQPConnectionConfig $config): flo
159
160
protected static function getSslOptions(AMQPConnectionConfig $config): array
161
{
162
+ $path = null;
163
+ if (method_exists($config, 'getSslCaPath')) {
164
+ $path = $config->getSslCaPath();
165
+ }
166
+
167
return array_filter([
168
'cafile' => $config->getSslCaCert(),
- 'capath' => $config->getSslCaPath(),
169
+ 'capath' => $path,
170
'local_cert' => $config->getSslCert(),
171
'local_pk' => $config->getSslKey(),
172
'verify_peer' => $config->getSslVerify(),
0 commit comments