Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks!
(Any non-English issues will be closed immediately.)
Please provide your PHP and Swoole version. (php -v and php --ri swoole)
php 7.3
swoole 4.8.6
Please provide your Laravel/Lumen version.
laravel 5.8
Which release version of this package are you using?
2.11
What did you do? If possible, provide a recipe for reproducing the error.
php artisan swoole:http start
What did you expect to see?
swoole started
What did you see instead?
Starting swoole http server...
Swoole http server started: http://0.0.0.0:9205
(You can run this command to ensure the swoole_http_server process is running: ps aux|grep "swoole")
[2022-01-24 12:22:14] dev.ERROR: Type error: Swoole\Server::construct() expects parameter 3 to be int, string given {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Type error: Swoole\Server::construct() expects parameter 3 to be int, string given at /var/www/kds/releases/1642947007/vendor/swooletw/laravel-swoole/src/HttpServiceProvider.php:173)"} []
In HttpServiceProvider.php line 173:
Type error: Swoole\Server::__construct() expects parameter 3 to be int, string given
Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)
Please provide your PHP and Swoole version. (
php -v
andphp --ri swoole
) php 7.3 swoole 4.8.6Please provide your Laravel/Lumen version. laravel 5.8
Which release version of this package are you using? 2.11
What did you do? If possible, provide a recipe for reproducing the error. php artisan swoole:http start
What did you expect to see? swoole started
What did you see instead? Starting swoole http server... Swoole http server started: http://0.0.0.0:9205
In HttpServiceProvider.php line 173:
Type error: Swoole\Server::__construct() expects parameter 3 to be int, string given