Skip to content

Commit 7865d3d

Browse files
committed
Remove short array syntax for PHP 5.3 compatibility
1 parent 45db373 commit 7865d3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Curl/Curl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,12 @@ public function download($url, $mixed_filename)
346346
public function _fastDownload($url, $filename, $connections = 4) {
347347
// First we need to retrive the 'Content-Length' header.
348348
// Use GET because not all hosts support HEAD requests.
349-
$this->setOpts([
349+
$this->setOpts(array(
350350
CURLOPT_CUSTOMREQUEST => 'GET',
351351
CURLOPT_NOBODY => true,
352352
CURLOPT_HEADER => true,
353353
CURLOPT_ENCODING => '',
354-
]);
354+
));
355355
$this->setUrl($url);
356356
$this->exec();
357357

@@ -371,7 +371,7 @@ public function _fastDownload($url, $filename, $connections = 4) {
371371
$nextChunk = $chunkSize;
372372

373373
// We need this later.
374-
$file_parts = [];
374+
$file_parts = array();
375375

376376
$multi_curl = new MultiCurl();
377377
$multi_curl->setConcurrency($connections);

0 commit comments

Comments
 (0)