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());