Skip to content

Commit

Permalink
Fix php 5.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Aug 17, 2021
1 parent 46f2d9d commit d6f4111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Downloader/FileDownloader.php
Expand Up @@ -142,7 +142,7 @@ public function download(PackageInterface $package, $path, PackageInterface $pre

$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);
Expand Down

0 comments on commit d6f4111

Please sign in to comment.