1
0
Fork 0

Avoid outputting network errors or others while loading suggestions

pull/10320/head
Jordi Boggiano 2022-05-12 22:51:38 +02:00
parent 3b2745a00d
commit 0089a69c57
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

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