Skip to content

Update to support Symfony 8 (PHP 8.4+)#1119

Merged
clue merged 1 commit into
ratchetphp:0.4.xfrom
clue-labs:symfony8
Jun 14, 2026
Merged

Update to support Symfony 8 (PHP 8.4+)#1119
clue merged 1 commit into
ratchetphp:0.4.xfrom
clue-labs:symfony8

Conversation

@clue

@clue clue commented Jun 10, 2026

Copy link
Copy Markdown
Member

This changeset adds support for Symfony 8 on PHP 8.4+. This is part 16 of reviving Ratchet as discussed in #1054, unblocking more future progress.

With these changes applied, the existing test suite now confirms that Symfony 8 can successfully be used on PHP 8.4+. Unlike the recent Symfony 6 (#1095) and Symfony 7 (#1098) updates which each needed dedicated compatibility classes, Symfony 8 requires none: its method signatures match Symfony 7's, so the existing classes already apply. This only widens the symfony/http-foundation and symfony/routing constraints to allow ^8.0. Thanks to Ratchet's multi-version constraints, Composer transparently picks up Symfony 8 on PHP 8.4+ while remaining compatible with legacy Symfony and PHP 5.4+ on older versions.

Overall, reviving Ratchet remains a massive effort. If you want to support this project, please consider sponsoring @reactphp ❤️

Builds on top of #1118 and #1098, one step closer to reviving Ratchet as discussed in #1054

@clue clue added this to the 0.4.5 milestone Jun 10, 2026
@clue clue requested a review from Copilot June 10, 2026 09:01

Copilot AI 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

Adds Composer and internal-session integration updates so Ratchet can be installed with Symfony 8 (intended for PHP 8.4+) while keeping existing multi-version compatibility across older Symfony/PHP versions.

Changes:

  • Widen symfony/http-foundation and symfony/routing constraints to allow ^8.0.
  • Update internal Symfony session storage/proxy documentation/comments to mention Symfony 8 compatibility.
  • Keep the existing Symfony 7 compatibility layer as the selected implementation for Symfony 8 (no new compatibility classes introduced).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Ratchet/Session/Storage/VirtualSessionStorageForSymfony7.php Docblock updated to mention Symfony 8 usage.
src/Ratchet/Session/Storage/VirtualSessionStorage.php Alias-selection comment updated to mention Symfony 8.
src/Ratchet/Session/Storage/Proxy/VirtualProxyForSymfony7.php Docblock updated to mention Symfony 8 usage.
src/Ratchet/Session/Storage/Proxy/VirtualProxy.php Alias-selection comment updated to mention Symfony 8.
composer.json Allow symfony/http-foundation and symfony/routing ^8.0.

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

Comment thread src/Ratchet/Session/Storage/VirtualSessionStorage.php
Comment thread src/Ratchet/Session/Storage/Proxy/VirtualProxy.php
@clue clue merged commit e621c6c into ratchetphp:0.4.x Jun 14, 2026
15 checks passed
@clue clue deleted the symfony8 branch June 14, 2026 13:02
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