mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Avoid outputting network errors or others while loading suggestions
This commit is contained in:
parent
3b2745a00d
commit
0089a69c57
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue