We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56d046a + f2b9986 commit 64c851bCopy full SHA for 64c851b
lib/Client.php
@@ -181,16 +181,13 @@ private function buildUrl($queryParams = null)
181
*/
182
private function createCurlOptions($method, $body = null, $headers = null)
183
{
184
- $options = array_merge(
185
- [
+ $options = [
186
CURLOPT_RETURNTRANSFER => true,
187
CURLOPT_HEADER => 1,
188
CURLOPT_CUSTOMREQUEST => strtoupper($method),
189
CURLOPT_SSL_VERIFYPEER => true,
190
CURLOPT_FAILONERROR => false
191
- ],
192
- $this->curlOptions
193
- );
+ ] + $this->curlOptions;
194
195
if (isset($headers)) {
196
$headers = array_merge($this->headers, $headers);
0 commit comments