From 2617ec5d28f90bbb41892588baa4da8c2f627d98 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 29 Jan 2016 12:51:23 +0000 Subject: [PATCH] Use proper defaults for IO authentications --- src/Composer/IO/BaseIO.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/IO/BaseIO.php b/src/Composer/IO/BaseIO.php index 3a5a1d701..a2ed28874 100644 --- a/src/Composer/IO/BaseIO.php +++ b/src/Composer/IO/BaseIO.php @@ -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')) {