Skip to content

Namespace changes in React\Promise v3.x #159

Open
@whoisninjaturtle

Description

React\Promise reorganized their project structure in version 3, such that the RejectedPromise class once located in the React\Promise namespace is now located in React\Promise\Internal instead.

This causes a missing class inside Ratchet\Pawl\Connector which still attempts to import it from the React\Promise namespace.

The composer.json dependency for React\Promise is created by React\Socket which requires ^3.2 || ^2.6 || ^1.2.1 but neither React\Socket nor Ratchet\Pawl specify a major version below 3, meaning the default dependencies lead you into this situation.

In either case, it seems to go hand in hand; the namespace can neither be adjusted nor left alone without revisiting those dependencies in one direction or the other.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions