From 0b778ad7e7694842070e79e3ff96730a199a63bb Mon Sep 17 00:00:00 2001 From: Tarek AKROUT Date: Tue, 1 Nov 2016 10:49:24 +0100 Subject: [PATCH] Replace array_merge with array_merge_recursive in Stream class in order to for example add proxy to http options --- src/Ripcord/Client/Transport/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ripcord/Client/Transport/Stream.php b/src/Ripcord/Client/Transport/Stream.php index 38fd871..8811f5c 100644 --- a/src/Ripcord/Client/Transport/Stream.php +++ b/src/Ripcord/Client/Transport/Stream.php @@ -41,7 +41,7 @@ public function __construct($contextOptions = null) */ public function post($url, $request) { - $options = array_merge( + $options = array_merge_recursive( $this->options, [ 'http' => [