Skip to content

Improve PHP 8.2+ compatibility by avoiding leftover dynamic properties - #44

Merged
clue merged 1 commit into
clue:1.xfrom
clue-labs:php8.2
May 27, 2026
Merged

Improve PHP 8.2+ compatibility by avoiding leftover dynamic properties#44
clue merged 1 commit into
clue:1.xfrom
clue-labs:php8.2

Conversation

@clue

@clueclue commented May 27, 2026

Copy link
Copy Markdown
Owner

This changeset improves PHP 8.2+ compatibility by avoiding leftover dynamic properties. This is really only a leftover that wasn't spotted before, so increasing error reporting for our tests to avoid similar problems looking forward.

Builds on top of #42, #37 and clue/reactphp-socks#118
Refs #40

@clueclue added this to the v1.5.0 milestone May 27, 2026
@clue
clue requested a review from CopilotMay 27, 2026 08:56
@clueclue added the new feature New feature or request label May 27, 2026

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

Removes a leftover dynamic-property assignment in CompositeConnection::close() to ensure PHP 8.2+ compatibility (dynamic properties are deprecated since 8.2), and raises error_reporting to -1 in both PHPUnit configs so similar issues surface in tests. Also bumps the clue/socks-react dependency to ^1.5, which presumably contains the analogous fix.

Changes:

  • Drop the $this->remote = null; assignment in CompositeConnection::close() (the property was never declared).
  • Set error_reporting=-1 in phpunit.xml.dist and phpunit.xml.legacy to catch deprecations during tests.
  • Bump clue/socks-react constraint from ^1.4 to ^1.5.

Reviewed changes

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

FileDescription
src/Io/CompositeConnection.phpRemoves leftover dynamic property assignment to $this->remote in close().
phpunit.xml.distEnables full error reporting during tests.
phpunit.xml.legacyEnables full error reporting during tests (legacy PHPUnit schema).
composer.jsonBumps clue/socks-react to ^1.5.

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

@clue
clue merged commit 9e72025 into clue:1.xMay 27, 2026
13 checks passed
@clue
clue deleted the php8.2 branch May 27, 2026 08:58
@clueclue mentioned this pull request May 27, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new featureNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@clue