Closed overvoidjs closed 5 years ago
Didn't check if this is related, but at least react/react
's dependencies for socket and http are ages old. Please try using the packages individually.
@overvoidjs Welcome to @ReactPHP :)
It looks like you're using an old version of this project, which is why the arguments do not match the current documentation. See https://github.com/reactphp/http#install for up-to-date installation instructions.
I hope this helps! :+1:
@clue it might help to deprecate the react/react package.
@andig This has its pros and cons, let's discuss this in the main repo, e.g. https://github.com/reactphp/react/issues/349 :+1:
Fatal error: Uncaught TypeError: Argument 1 passed to React\Http\Server::__construct() must be an instance of React\Socket\ServerInterface, instance of Closure given, called in /var/www/html/apiz/test.php on line 19 and defined in /var/www/html/vendor/react/http/src/Server.php:14 Stack trace: #0 /var/www/html/apiz/test.php(19): React\Http\Server->__construct(Object(Closure)) #1 {main} thrown in /var/www/html/vendor/react/http/src/Server.php on line 14
composer.json
Pls fix this, it's was be my first experience with ReactPHP ._."