Skip to content

Commit c2bb706

Browse files
committed
Fixed PHP 5.4 compatibility issue on WebClient
1 parent f32e6a5 commit c2bb706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Clients/WebClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function request($type, $file = null)
323323
}
324324

325325
// parameters for cURL request
326-
[$resource, $headers] = $this->getParameters($type, $file);
326+
list($resource, $headers) = $this->getParameters($type, $file);
327327

328328
// check the request
329329
$file = $this->checkRequest($type, $file);
@@ -341,7 +341,7 @@ public function request($type, $file = null)
341341
$options[CURLOPT_URL] = $this->getUrl() . "/$resource";
342342

343343
// get the response and the HTTP status code
344-
[$response, $status] = $this->exec($options);
344+
list($response, $status) = $this->exec($options);
345345

346346
// reduce memory usage closing cURL resource
347347
if(isset($options[CURLOPT_INFILE]) && is_resource($options[CURLOPT_INFILE]))

0 commit comments

Comments
 (0)