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