今天无意发现swoole已经发布6.2版本了,开始支持php8.5了。正好手里也没活计,就编译测试了下。
目前启动没问题,但访问时提示: ErrorException: ArrayObject::exchangeArray(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /vendor/workerman/coroutine/src/Context/Swoole.php:51
使用的都是默认最新版本:composer create-project workerman/webman
升级下 workerman/coroutine
升级后已经OK。
建议社区问答弄个帖子标记或者状态,如果问题已解决,由用户点击确认或者管理员确认,然后给当前问题帖子打上标记【已解决】等,以免浪费社区其他人精力!但估计也有用户看到解决方案后也会无视确认。。。