From b098a2fdde42a2bdbf0926a3af616cdef4ad3829 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 2 Mar 2015 16:40:05 +0000 Subject: [PATCH] Fix clear cache when a dir does not exist, fixes #3810 --- src/Composer/Command/ClearCacheCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Command/ClearCacheCommand.php b/src/Composer/Command/ClearCacheCommand.php index 9512ba416..818b8ee30 100644 --- a/src/Composer/Command/ClearCacheCommand.php +++ b/src/Composer/Command/ClearCacheCommand.php @@ -53,13 +53,13 @@ EOT if (!$cachePath) { $io->writeError("Cache directory does not exist ($key): $cachePath"); - return; + continue; } $cache = new Cache($io, $cachePath); if (!$cache->isEnabled()) { $io->writeError("Cache is not enabled ($key): $cachePath"); - return; + continue; } $io->writeError("Clearing cache ($key): $cachePath");