From 46f2d9de48adc3995479bece95a827d2156d31fe Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 17 Aug 2021 16:53:16 +0200 Subject: [PATCH] Fix php 5.3 support --- src/Composer/Downloader/FileDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index 95a634a37..05b0d6af1 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -172,7 +172,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface // the cache is corrupt the archive will be deleted and the next attempt will re-download it // see https://github.com/composer/composer/issues/10028 if (!$cache->isReadOnly()) { - $this->lastCacheWrites[$package->getName()] = $cacheKey; + $self->lastCacheWrites[$package->getName()] = $cacheKey; } $result = \React\Promise\resolve($fileName); } else {