diff --git a/src/Composer/Repository/Vcs/GitHubDriver.php b/src/Composer/Repository/Vcs/GitHubDriver.php index e7d84a078..af0ef59da 100644 --- a/src/Composer/Repository/Vcs/GitHubDriver.php +++ b/src/Composer/Repository/Vcs/GitHubDriver.php @@ -575,6 +575,10 @@ class GitHubDriver extends VcsDriver protected function getNextPage(Response $response) { $header = $response->getHeader('link'); + + if (!$header) { + return; + } $links = explode(',', $header); foreach ($links as $link) {