laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.78k stars 296 forks source link

Octane is Passing Wrong Type to Swoole Server Causing Fatal TypeError on octane:start on Laravel 9, PHP 8.1 app #586

Closed temmyscope closed 2 years ago

temmyscope commented 2 years ago

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:

driesvints commented 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.