镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

PHP 8.2 deprecation #35

Closed
Closed

Description

@bartvanhoutte

👋 Just discovered a deprecation using mq-react running on PHP 8.2.

Creation of dynamic property React\Promise\Deferred::$pending is deprecated in /var/www/vendor/clue/mq-react/src/Queue.php on line 432

Couple of ways to solve this:

  1. Add #[AllowDynamicProperties] in reactphp/promise v2 branch. Fast but might not be what we want.
  2. Add some sort of deferred/promise index in Queue. Quite a bit of work but clean.

What do you think?

Activity

  1. SimonFrings commented on Dec 14, 2022

    @SimonFrings
    Contributor

    Hey @bartvanhoutte, good catch 👍

    I think we can go a similar as @clue did in reactphp/http#459. As you said, it involves some work but seems to be the best way. I don't know when exactly we will get to implement this as we're currently working a lot on ReactPHP and the upcoming v3, but we also don't want to push this too far back because PHP 8.2 has already been released. If you want to give it a try we're always happy about PRs! 😉

  2. changed the title [-]PHP 8.2 depration[/-] [+]PHP 8.2 deprecation[/+] on Dec 15, 2022
  3. added this to the v1.6.0 milestone on Feb 20, 2023
  4. clue commented on Jul 27, 2023

    @clue
    Owner

    Closed via #43 :shipit:

    @bartvanhoutte Thank you for reporting and the sparking this development with your initial PR! 👍

  5. bartvanhoutte commented on Jul 27, 2023

    @bartvanhoutte
    ContributorAuthor

    @clue 👍 Didn't follow up because I don't know how to squash commits or something like that 😅

  6. clue commented on Jul 27, 2023

    @clue
    Owner

    @bartvanhoutte Don't worry, we're happy to help if you run into something like this next time. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needednew featureNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions