hyperf / box

Box is committed to helping improve the programming experience of PHP applications, expecially for Hyperf, managing the PHP environment and related dependencies, providing the ability to package PHP applications as binary programs, and also providing reverse proxy services for managing and deploying Swoole/Swow applications.
143 stars 20 forks source link

window环境启动hyperf项目报错 #60

Closed asdlin closed 2 years ago

asdlin commented 2 years ago

box版本v0.5.2 window环境在hyperf入口修改了hander为ProcScanHandler() image 启动的时候提示 Fatal error: Declaration of Hyperf\Engine\Http\Server::bind(string $name, int $port = 0, int $flags = Swow\Socket::BIND_FLAG_NONE) must be compatible with Swow\Socket::bind(string $name, int $port = 0, int $flags = Swow\Socket::BIND_FLAG_NONE): Hyperf\Di\ClassLoader in D:\project\swow-skeleton\vendor\hyperf\engine-swow\src\Http\Server.php on line 53 image

huangzhhui commented 2 years ago

你创建的 swow-skeleton 并不是 Hyperf 3.0 的,而是面向 2.2 的,你可以通过 box composer create-project hyperf/swow-skeleton:dev-master 可以创建对应 3.0 的骨架