Skip to content

Run tests on PHP 8.5 and update test environment#77

Merged
clue merged 1 commit into
ratchetphp:masterfrom
clue-labs:php8.5
May 31, 2026
Merged

Run tests on PHP 8.5 and update test environment#77
clue merged 1 commit into
ratchetphp:masterfrom
clue-labs:php8.5

Conversation

@clue
Copy link
Copy Markdown
Member

@clue clue commented May 25, 2026

Builds on top of #75 and clue/framework-x#297

Copy link
Copy Markdown

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

Updates the test suite and CI workflow to ensure the project continues to run cleanly on newer PHP versions (including PHP 8.5), aligning with prior compatibility work referenced in #75.

Changes:

  • Adjust unit tests to avoid calling Reflection*::setAccessible(true) on PHP ≥ 8.1.
  • Update GitHub Actions CI environment to Ubuntu 24.04 and expand the PHP matrix to include 8.5.
  • Bump the actions/checkout action major version used by CI.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/unit/Messaging/MessageBufferTest.php Conditionalizes reflection accessibility toggles to avoid PHP ≥ 8.1 issues while keeping compatibility for older PHP.
tests/unit/Messaging/FrameTest.php Same reflection accessibility gating to keep unit tests compatible across supported PHP versions.
.github/workflows/ci.yml Updates CI runner OS, adds PHP 8.5 to the test matrix, and updates the checkout action version.

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

@clue clue added this to the 0.4.1 milestone May 31, 2026
@clue clue merged commit 47e0e8e into ratchetphp:master May 31, 2026
14 checks passed
@clue clue deleted the php8.5 branch May 31, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants