1
0
Fork 0

Fix php 5.3 support

pull/10065/head
Jordi Boggiano 2021-08-17 16:59:00 +02:00
parent 46f2d9de48
commit d6f4111f35
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
$accept = null; $accept = null;
$reject = null; $reject = null;
$download = function () use ($io, $output, $httpDownloader, $cache, $cacheKeyGenerator, $eventDispatcher, $package, $fileName, &$urls, &$accept, &$reject) { $download = function () use ($io, $output, $httpDownloader, $cache, $cacheKeyGenerator, $eventDispatcher, $package, $fileName, &$urls, &$accept, &$reject, $self) {
/** @var array{base: string, processed: string, cacheKey: string} $url */ /** @var array{base: string, processed: string, cacheKey: string} $url */
$url = reset($urls); $url = reset($urls);
$index = key($urls); $index = key($urls);