Merge pull request #10088 from alexander-schranz/patch-1
Fix GithubDriver nextPage deprecation notice with no link headerpull/10089/head
commit
73e95aa0f9
|
@ -576,6 +576,10 @@ class GitHubDriver extends VcsDriver
|
||||||
{
|
{
|
||||||
$header = $response->getHeader('link');
|
$header = $response->getHeader('link');
|
||||||
|
|
||||||
|
if (!$header) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$links = explode(',', $header);
|
$links = explode(',', $header);
|
||||||
foreach ($links as $link) {
|
foreach ($links as $link) {
|
||||||
if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
|
if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
|
||||||
|
|
Loading…
Reference in New Issue