Skip to content

Too few arguments error #17

@Tubusy

Description

@Tubusy

Is there a way to fix this?

`php website-chatroom.php

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function React\Socket\Server::__construct(), 1 passed in /Ratchet-examples/bin/website-chatroom.php on line 45 and at least 2 expected in /Ratchet-examples/vendor/react/socket/src/Server.php:13
Stack trace:
#0 /Ratchet-examples/bin/website-chatroom.php(45): React\Socket\Server->__construct()
#1 {main}
thrown in /Ratchet-examples/vendor/react/socket/src/Server.php on line 13
`

Which is refering to

public function __construct($uri, LoopInterface $loop, array $context = array())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions