Skip to content

Improve PHP 8.5+ support by avoiding deprecated setAccessible() calls#67

Merged
clue merged 1 commit intoclue:1.xfrom
clue-labs:php8.5
Apr 12, 2026
Merged

Improve PHP 8.5+ support by avoiding deprecated setAccessible() calls#67
clue merged 1 commit intoclue:1.xfrom
clue-labs:php8.5

Conversation

@clue
Copy link
Copy Markdown
Owner

@clue clue commented Apr 12, 2026

This changeset improves PHP 8.5+ support by avoiding the deprecated setAccessible() call as discussed in clue/framework-x#297.

Builds on top of #66, reactphp/socket#325, reactphp/promise#264, reactphp/event-loop#282, and clue/framework-x#297

@clue clue added this to the v1.10.0 milestone Apr 12, 2026
@clue clue added the new feature New feature or request label Apr 12, 2026
@clue clue requested a review from Copilot April 12, 2026 22:28
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

This PR aims to improve compatibility with newer PHP versions (PHP 8.5+) by avoiding deprecated ReflectionProperty::setAccessible() calls, and updates dependencies/CI accordingly.

Changes:

  • Guard ReflectionProperty::setAccessible(true) calls behind a PHP_VERSION_ID < 80100 check in both production code and tests.
  • Bump ReactPHP package constraints (react/promise, react/socket, react/event-loop) presumably to pick up upstream compatibility fixes.
  • Update CI to include PHP 8.5 and change actions/checkout major version.

Reviewed changes

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

File Description
tests/ProxyConnectorTest.php Avoids calling deprecated setAccessible() on PHP ≥ 8.1 in the test suite.
src/ProxyConnector.php Avoids calling deprecated setAccessible() on PHP ≥ 8.1 when sanitizing exception traces.
composer.json Updates ReactPHP dependency constraints to newer versions.
.github/workflows/ci.yml Expands PHP test matrix (adds 8.5) and changes checkout action major version.

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

@clue clue merged commit 28b107d into clue:1.x Apr 12, 2026
20 checks passed
@clue clue deleted the php8.5 branch April 12, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants