Skip to content

Commit f712e20

Browse files
committed
PHP 8.5 is supported
1 parent 60d84e1 commit f712e20

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: [8.0, 8.1, 8.2, 8.3, 8.4]
11+
php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
1212

1313
name: PHP ${{ matrix.php }} tests
1414
steps:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=8.0 <8.5"
14+
"php": "8.0 - 8.5"
1515
},
1616
"require-dev": {
1717
"nette/tester": "^2.4"

src/Github/Http/StreamClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ protected function fileGetContents(string $url, array $contextOptions): array
8383
$content = file_get_contents($url, false, $context);
8484
restore_error_handler();
8585

86+
if (PHP_VERSION_ID >= 80400) {
87+
$http_response_header = http_get_last_response_headers();
88+
}
8689
if (!isset($http_response_header)) {
8790
throw new BadResponseException('Missing HTTP headers, request failed.', 0, $e);
8891
}

0 commit comments

Comments
 (0)