From e151a6c51c08e638d271c64b5384cbbd5ecc6333 Mon Sep 17 00:00:00 2001 From: Arnout Boks Date: Thu, 31 Jan 2019 09:37:28 +0100 Subject: [PATCH] Only load configuration into IO if IO is available --- src/Composer/Repository/RepositoryFactory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/RepositoryFactory.php b/src/Composer/Repository/RepositoryFactory.php index 3c7e837c3..d8e917147 100644 --- a/src/Composer/Repository/RepositoryFactory.php +++ b/src/Composer/Repository/RepositoryFactory.php @@ -93,7 +93,9 @@ class RepositoryFactory { if (!$config) { $config = Factory::createConfig($io); - $io->loadConfiguration($config); + if ($io) { + $io->loadConfiguration($config); + } } if (!$rm) { if (!$io) {