Skip to content

Conversation

@dg
Copy link
Contributor

@dg dg commented Nov 24, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 24, 2025 04:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds PHP 8.5 support to the library by updating version constraints and handling the new http_get_last_response_headers() function introduced in PHP 8.4 as a replacement for the deprecated $http_response_header magic variable.

Key Changes:

  • Updated PHP version constraint in composer.json to include PHP 8.5
  • Added compatibility code for http_get_last_response_headers() function in StreamClient
  • Added PHP 8.5 to the GitHub Actions test matrix and updated upload-artifact action to v4

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
composer.json Updates PHP version constraint to support PHP 8.5
src/Github/Http/StreamClient.php Adds handling for the new http_get_last_response_headers() function available in PHP 8.4+
.github/workflows/tests.yml Adds PHP 8.5 to test matrix and upgrades upload-artifact action to v4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

],
"require": {
"php": ">=8.0 <8.5"
"php": "8.0 - 8.5"
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PHP version constraint syntax "8.0 - 8.5" is not valid Composer syntax. This should be changed to a proper constraint like ">=8.0 <8.6" or "^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5". The hyphen syntax is not recognized by Composer for version ranges.

Suggested change
"php": "8.0 - 8.5"
"php": ">=8.0 <8.6"

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@milo milo merged commit 429f23c into milo:master Nov 24, 2025
12 checks passed
@dg
Copy link
Contributor Author

dg commented Nov 25, 2025

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants