From cfdeb617791929f03c47f1b18994ad0429704f51 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 12 Sep 2016 11:00:10 +0200 Subject: [PATCH] Avoid warning when testing for packagist over http --- src/Composer/Command/DiagnoseCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php index f6b5a7d94..dbfad7829 100644 --- a/src/Composer/Command/DiagnoseCommand.php +++ b/src/Composer/Command/DiagnoseCommand.php @@ -24,6 +24,7 @@ use Composer\Util\RemoteFilesystem; use Composer\Util\StreamContextFactory; use Composer\SelfUpdate\Keys; use Composer\SelfUpdate\Versions; +use Composer\IO\NullIO; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -77,6 +78,7 @@ EOT } $config->merge(array('config' => array('secure-http' => false))); + $config->prohibitUrlByConfig('http://packagist.org', new NullIO); $this->rfs = Factory::createRemoteFilesystem($io, $config); $this->process = new ProcessExecutor($io);