Skip to content

PHP 8.5 support - #37

Merged
milo merged 2 commits into
milo:masterfrom
dg:pull-85
Nov 24, 2025
Merged

PHP 8.5 support#37
milo merged 2 commits into
milo:masterfrom
dg:pull-85

Conversation

@dg

@dgdg commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

No description provided.

CopilotAI review requested due to automatic review settings November 24, 2025 04:22

CopilotAI left a comment

Copy link
Copy Markdown

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.

FileDescription
composer.jsonUpdates PHP version constraint to support PHP 8.5
src/Github/Http/StreamClient.phpAdds handling for the new http_get_last_response_headers() function available in PHP 8.4+
.github/workflows/tests.ymlAdds 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.

Comment threadcomposer.json
],
"require": {
"php": ">=8.0 <8.5"
"php": "8.0 - 8.5"

CopilotAINov 24, 2025

Copy link

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
Copy Markdown
ContributorAuthor

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:masterNov 24, 2025
12 checks passed
@dg

dg commented Nov 25, 2025

Copy link
Copy Markdown
ContributorAuthor

Thanks

Sign up for freeto 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.

3 participants

@dg@milo