diff --git a/src/Composer/Util/GitHub.php b/src/Composer/Util/GitHub.php index b69073d13..a0b2b7460 100644 --- a/src/Composer/Util/GitHub.php +++ b/src/Composer/Util/GitHub.php @@ -129,7 +129,7 @@ class GitHub // no existing token, create one if (empty($contents['token'])) { - $headers[] = array('Content-Type: application/json'); + $headers[] = 'Content-Type: application/json'; $contents = JsonFile::parseJson($this->remoteFilesystem->getContents($originUrl, 'https://'. $apiUrl . '/authorizations', false, array( 'retry-auth-failure' => false,