diff options
author | Emil Vaagland <emil.vaagland@schibsted.com> | 2016-10-26 22:06:57 +0200 |
---|---|---|
committer | Emil Vaagland <emil.vaagland@schibsted.com> | 2016-10-26 22:06:57 +0200 |
commit | abe31d57608bf4df6863e48e4c26cf5be24266b4 (patch) | |
tree | a97a513d6249a3c35259b9ad2e3224ad747d1cd6 | |
parent | aa09fb89e2be2624de9db4dde914d27cbdece95c (diff) | |
download | php-http-client-abe31d57608bf4df6863e48e4c26cf5be24266b4.zip php-http-client-abe31d57608bf4df6863e48e4c26cf5be24266b4.tar.gz php-http-client-abe31d57608bf4df6863e48e4c26cf5be24266b4.tar.bz2 |
#12 change from to php union operator to combine curl options
-rw-r--r-- | lib/Client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Client.php b/lib/Client.php index 1e77470..a383cc0 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -141,12 +141,12 @@ class Client { $curl = curl_init($url); - curl_setopt_array($curl, array_merge([ + curl_setopt_array($curl, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => 1, CURLOPT_CUSTOMREQUEST => strtoupper($method), CURLOPT_SSL_VERIFYPEER => false, - ], $this->curlOptions)); + ] + $this->curlOptions); if (isset($headers)) { $this->headers = array_merge($this->headers, $headers); |