From 0089a69c57621fa79dc7d4948a364dde3791736e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 12 May 2022 22:51:38 +0200 Subject: [PATCH] Avoid outputting network errors or others while loading suggestions --- src/Composer/Console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index ba140a149..c45dec711 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -466,7 +466,7 @@ class Application extends BaseApplication if (null === $this->composer) { try { - $this->composer = Factory::create($this->io, null, $disablePlugins, $disableScripts); + $this->composer = Factory::create(Platform::isInputCompletionProcess() ? new NullIO() : $this->io, null, $disablePlugins, $disableScripts); } catch (\InvalidArgumentException $e) { if ($required) { $this->io->writeError($e->getMessage());