Fix php 5.3 support
parent
46f2d9de48
commit
d6f4111f35
|
@ -142,7 +142,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
|||
|
||||
$accept = 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 */
|
||||
$url = reset($urls);
|
||||
$index = key($urls);
|
||||
|
|
Loading…
Reference in New Issue