We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccbf54f + 954bc97 commit 792b240Copy full SHA for 792b240
1 file changed
src/ConnectionPool.php
@@ -218,18 +218,18 @@ public function closeTimeoutConnection(): void
218
*/
219
protected function create($address, bool $ssl = false, string $proxy = ''): AsyncTcpConnection
220
{
221
- $context = array(
222
- 'ssl' => array(
+ $context = [
+ 'ssl' => [
223
'verify_peer' => false,
224
'verify_peer_name' => false,
225
'allow_self_signed' => true
226
- ),
227
- 'http' => array(
228
- 'proxy' => $proxy
229
230
- );
+ ],
+ 'http' => [
+ 'proxy' => $proxy,
+ ]
+ ];
231
if (!empty( $this->options['context'])) {
232
- $context = $this->options['context'];
+ $context = array_merge($context, $this->options['context']);
233
}
234
if (!$ssl) {
235
unset($context['ssl']);
0 commit comments