Skip to content

Commit 347ab47

Browse files
committed
Fixed getting link header
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
1 parent 13d174d commit 347ab47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

administrator/components/com_patchtester/src/Model/PullsModel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ public function requestFromGithub(int $page): array
372372
if ($page === 1) {
373373
// Default this to being a single page of results
374374
$lastPage = 1;
375-
if (isset($pullsResponse->headers['link'])) {
376-
$linkHeader = $pullsResponse->headers['link'];
375+
if ($linkHeader = $pullsResponse->getHeader('link')) {
377376
// The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
378377
if (is_array($linkHeader)) {
379378
$linkHeader = $linkHeader[0];

0 commit comments

Comments
 (0)