From f712e202ec67a9e0c62a77523e467eed7d1ed052 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 24 Nov 2025 05:17:05 +0100 Subject: [PATCH 1/2] PHP 8.5 is supported --- .github/workflows/tests.yml | 2 +- composer.json | 2 +- src/Github/Http/StreamClient.php | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a4dd90..6395c28 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - php: [8.0, 8.1, 8.2, 8.3, 8.4] + php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5] name: PHP ${{ matrix.php }} tests steps: diff --git a/composer.json b/composer.json index 1d8b8b0..c01c964 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": ">=8.0 <8.5" + "php": "8.0 - 8.5" }, "require-dev": { "nette/tester": "^2.4" diff --git a/src/Github/Http/StreamClient.php b/src/Github/Http/StreamClient.php index 3e2f255..f345d17 100644 --- a/src/Github/Http/StreamClient.php +++ b/src/Github/Http/StreamClient.php @@ -83,6 +83,9 @@ protected function fileGetContents(string $url, array $contextOptions): array $content = file_get_contents($url, false, $context); restore_error_handler(); + if (PHP_VERSION_ID >= 80400) { + $http_response_header = http_get_last_response_headers(); + } if (!isset($http_response_header)) { throw new BadResponseException('Missing HTTP headers, request failed.', 0, $e); } From 429f23cf3ca9ac948fdc3f946d29089b3ecbbc96 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 24 Nov 2025 05:21:01 +0100 Subject: [PATCH 2/2] updated GitHub actions --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6395c28..0c2653d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: - run: composer install --no-progress --prefer-dist - run: vendor/bin/tester tests -s - if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: output path: tests/**/output