1
0
Fork 0

Use proper defaults for IO authentications

pull/4849/head
Jordi Boggiano 2016-01-29 12:51:23 +00:00
parent 49d7d65933
commit 2617ec5d28
1 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ abstract class BaseIO implements IOInterface
*/
public function loadConfiguration(Config $config)
{
$githubOauth = $config->get('github-oauth');
$gitlabOauth = $config->get('gitlab-oauth');
$httpBasic = $config->get('http-basic');
$githubOauth = $config->get('github-oauth') ?: array();
$gitlabOauth = $config->get('gitlab-oauth') ?: array();
$httpBasic = $config->get('http-basic') ?: array();
// Use COMPOSER_AUTH environment variable if set
if ($composerAuthEnv = getenv('COMPOSER_AUTH')) {