国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

新裝webman啟動報錯

dsx5ds

問題描述

系統(tǒng)新裝的,php8.1
安裝了webman+admin
啟動直接報錯

看作者最近提交了修改,還原了一下就好了
/vendor/workerman/webman-framework/src/Http/Request.php on line 119
改為
public function file(?string $name = null): array

報錯信息

Fatal error: Declaration of Webman\Http\Request::file($name = null) must be compatible with Workerman\Protocols\Http\Request::file(?string $name = null): mixed in /www/wwwroot/wuhu/vendor/workerman/webman-framework/src/Http/Request.php on line 119
Worker[13331] process terminated with ERROR: E_COMPILE_ERROR "Declaration of Webman\Http\Request::file($name = null) must be compatible with Workerman\Protocols\Http\Request::file(?string $name = null): mixed in /www/wwwroot/wuhu/vendor/workerman/webman-framework/src/Http/Request.php on line 119"
PHP Fatal error:  Declaration of Webman\Http\Request::file($name = null) must be compatible with Workerman\Protocols\Http\Request::file(?string $name = null): mixed in /www/wwwroot/wuhu/vendor/workerman/webman-framework/src/Http/Request.php on line 119
893 1 1
1個回答

walkor 打賞

可能你使用了composer代理,下載的 workerman/webman-framework 不是最新的。目前最新 workerman/webman-framework 為1.6.6

  • 達達尼黑 2024-11-25

    我也是碰到這個問題,把 Webman\Http\Request 文件的119行這里改成與后面文件一樣的?string $name = null) :mixed

  • walkor 2024-11-25

    執(zhí)行 composer require workerman/webman-framework ^1.6.6

  • yovae 2024-12-12

    正解

??