Skip to content

Commit b6a870c

Browse files
Fix sendgrid#12, union operator
1 parent 37735f5 commit b6a870c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Client.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,13 @@ private function buildUrl($queryParams = null)
181181
*/
182182
private function createCurlOptions($method, $body = null, $headers = null)
183183
{
184-
$options = array_merge(
185-
[
184+
$options = [
186185
CURLOPT_RETURNTRANSFER => true,
187186
CURLOPT_HEADER => 1,
188187
CURLOPT_CUSTOMREQUEST => strtoupper($method),
189188
CURLOPT_SSL_VERIFYPEER => true,
190189
CURLOPT_FAILONERROR => false
191-
],
192-
$this->curlOptions
193-
);
190+
] + $this->curlOptions;
194191

195192
if (isset($headers)) {
196193
$headers = array_merge($this->headers, $headers);

0 commit comments

Comments
 (0)