Skip to content

Commit 52a118d

Browse files
authored
php-amqplib/php-amqplib takes context as a parameter
ssl_context is not used by php-amqplib/php-amqplib. 'context' is.
1 parent 9e5e0ad commit 52a118d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RabbitMq/AMQPConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
}
5656

5757
if (is_array($this->parameters['ssl_context'])) {
58-
$this->parameters['ssl_context'] = ! empty($this->parameters['ssl_context'])
58+
$this->parameters['context'] = ! empty($this->parameters['ssl_context'])
5959
? stream_context_create(array('ssl' => $this->parameters['ssl_context']))
6060
: null;
6161
}

0 commit comments

Comments
 (0)