Skip to content

Support for PHP 8.0, PHP 8.1 and PHP 8.2 #1003

Closed

Description

@SimonFrings

I am currently investing some time into Ratchet and want to test the project against PHP 8.0+. Inspired by #923 by @WyriHaximus, I wanted to try it out myself. Before running the test suite with the PHP 8 versions, I first have to update PHPUnit to the latest version (at least v8, maybe v9 as a first step) and make it work across the current supported PHP versions for this project (PHP 5.4 - PHP 7.4). I did the same thing for ReactPHP a while ago (e.g. reactphp/http#364), so I already know my ways around.

Will keep you posted 👍

Activity

  1. CoderJoeW commented on Mar 17, 2023

    @CoderJoeW
  2. agarzon-orangerine commented on Mar 23, 2023

    @agarzon-orangerine
  3. clue commented on Mar 23, 2023

    @clue
    Member

    To add some context: Ratchet already has limited support for PHP 8+ and many people use this in production, but it may report some minor deprecations as mentioned in the linked tickets. I've started looking into this together with @SimonFrings to bring full support for PHP 8+, update the test environment, and fix any warnings. Ratchet could definitely use some love and we're still working on ways to ensure this will be addressed in the future!

    If you also want to see this ticket solved, you can upvote or help by sponsoring our development. ❤️ We'll work out a longer-term plan to ensure ongoing development of Ratchet, but this is probably out of scope for this ticket at the moment (see #921?). In the meantime, I'll hide offtopic comments here to allow us to focus and getting things done. 💪

  4. thorewi commented on Apr 26, 2023

    @thorewi
  5. pgavanuatu commented on May 28, 2023

    @pgavanuatu

    Hi,
    First of all : congrats on the great work on this project.
    I need to prepare my code for php8.2 and as you already know... last version of rachet is not working because PHP is becoming a strict language and we need now to declare every Variables.

    Is there a timeline for your fixes for php8.2 ?
    If it is one month,
    I fix it localy with #[AllowDynamicProperties] and wait for your solution

    if it is more, I will need to change to something else...

    Thanks a lot for your help
    Regards
    Philippe

  6. akawaldschrat commented on Dec 14, 2023

    @akawaldschrat
  7. agarzon-orangerine commented on Dec 14, 2023

    @agarzon-orangerine
  8. seb303 commented on Dec 14, 2023

    @seb303

    Really hope for the new patch to solve the 8.2 depricated issue!

    We're using error_reporting(E_ALL ^ E_DEPRECATED); as a workaround where we're using Rachet ... not ideal as it may hide other depreciations which we would want to be aware of.

  9. xalagu commented on Dec 31, 2023

    @xalagu
  10. xalagu commented on Dec 31, 2023

    @xalagu
  11. pinned this issue on Jul 1, 2024
  12. added this to the 0.4.5 milestone on May 14, 2025
  13. clue commented on May 23, 2025

    @clue
    Member

    Thanks for your patience, I know it's been a while, but it's finally happening! 🚀

    Over the past weeks, I've merged a number of PRs to finally bring full support for PHP 8.4+ (see #1094, #1096, #1097, #1099 and others). This is part of a larger effort reviving Ratchet as discussed in #1054, solving many other issues along the way.

    If you'd like to support us on this journey, consider sponsoring the project. ❤️

  14. unpinned this issue on May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions