Skip to content

Context class constuct function implicitly marking parameter $context as nullable is deprecated on PHP8.1 and above #62

@sundian

Description

@sundian

ERROR:
React\ZMQ\Context::__construct(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead

How to fix?
Need add '?' before $context parameter type class:
public function __construct(LoopInterface $loop, ?ZMQContext $context = null)

Metadata

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