From f2b998604cdbd6c17bf87062dfedf0f93d9f578a Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Sat, 10 Mar 2018 09:48:01 -0800 Subject: [PATCH] Fix #12, union operator --- lib/Client.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Client.php b/lib/Client.php index aa381a2..2c402a5 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -181,16 +181,13 @@ private function buildUrl($queryParams = null) */ private function createCurlOptions($method, $body = null, $headers = null) { - $options = array_merge( - [ + $options = [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => 1, CURLOPT_CUSTOMREQUEST => strtoupper($method), CURLOPT_SSL_VERIFYPEER => true, CURLOPT_FAILONERROR => false - ], - $this->curlOptions - ); + ] + $this->curlOptions; if (isset($headers)) { $headers = array_merge($this->headers, $headers);