Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit a50feb9

Browse files
author
tomponline
committed
adds default stream context
1 parent 51bcd1c commit a50feb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Nats/ConnectionOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class ConnectionOptions
129129
public function __construct($options = null)
130130
{
131131
//Default stream context
132-
$this->streamContext = stream_context_create();
132+
$this->streamContext = stream_context_get_default();
133133

134134
if (empty($options) === false) {
135135
$this->initialize($options);

0 commit comments

Comments
 (0)