Closed temmyscope closed 2 years ago
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
Description:
The swoole server keeps terminating, throwing a
TypeError: Swoole\Server::__construct(): Argument #2 ($port) must be of type int, string given
.It shows that the errror is coming from
vendor/laravel/octane/bin/createSwooleServer.php:12
.I am running my application in a docker container, hence I can't manually edit the specific file where the issue is.
Steps To Reproduce:
Create a fresh Laravel project
Install Octane and set the OCTANE_SERVER env key to "swoole".
Install Swoole server: sudo pecl channel-update pecl.php.net sudo pecl install swoole
Run php artisan octane:start from the project root folder.