From 7865d3d76acddfb2882810f2b9c104f51464b263 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 29 Apr 2021 10:13:19 -0400 Subject: [PATCH] Remove short array syntax for PHP 5.3 compatibility --- src/Curl/Curl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index abbf7c7..e4c378d 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -346,12 +346,12 @@ class Curl public function _fastDownload($url, $filename, $connections = 4) { // First we need to retrive the 'Content-Length' header. // Use GET because not all hosts support HEAD requests. - $this->setOpts([ + $this->setOpts(array( CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_NOBODY => true, CURLOPT_HEADER => true, CURLOPT_ENCODING => '', - ]); + )); $this->setUrl($url); $this->exec(); @@ -371,7 +371,7 @@ class Curl $nextChunk = $chunkSize; // We need this later. - $file_parts = []; + $file_parts = array(); $multi_curl = new MultiCurl(); $multi_curl->setConcurrency($connections);