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
Copy link
Copy Markdown
Owner

@clue clue commented May 27, 2026

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

@clue clue added this to the v1.5.0 milestone May 27, 2026
@clue clue requested a review from Copilot May 27, 2026 08:56
@clue clue added the new feature New feature or request label May 27, 2026
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

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.

File Description
src/Io/CompositeConnection.php Removes leftover dynamic property assignment to $this->remote in close().
phpunit.xml.dist Enables full error reporting during tests.
phpunit.xml.legacy Enables full error reporting during tests (legacy PHPUnit schema).
composer.json Bumps 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.x May 27, 2026
13 checks passed
@clue clue deleted the php8.2 branch May 27, 2026 08:58
@clue clue mentioned this pull request May 27, 2026
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