File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]))
You can’t perform that action at this time.
0 commit comments