From 4d1b34bf2657a0024739b36cc8a569070c21eba1 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sat, 19 Aug 2023 12:08:44 +0800 Subject: [PATCH] yh --- config/autoload/server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/autoload/server.php b/config/autoload/server.php index c133094..67bbd32 100644 --- a/config/autoload/server.php +++ b/config/autoload/server.php @@ -20,7 +20,7 @@ return [ 'name' => 'http', 'type' => Server::SERVER_HTTP, 'host' => '0.0.0.0', - 'port' => env('HTTP_PORT', 9501), + 'port' => (int)env('HTTP_PORT', 9501), 'sock_type' => SWOOLE_SOCK_TCP, 'callbacks' => [ Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],