Skip to content

Commit

Permalink
Merge pull request #10088 from alexander-schranz/patch-1
Browse files Browse the repository at this point in the history
Fix GithubDriver nextPage deprecation notice with no link header
  • Loading branch information
Seldaek committed Sep 3, 2021
2 parents 5b16d61 + 99c6b45 commit 73e95aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Composer/Repository/Vcs/GitHubDriver.php
Expand Up @@ -575,6 +575,10 @@ protected function setupGitDriver($url)
protected function getNextPage(Response $response)
{
$header = $response->getHeader('link');

if (!$header) {
return;
}

$links = explode(',', $header);
foreach ($links as $link) {
Expand Down

0 comments on commit 73e95aa

Please sign in to comment.