问题描述 $this->user = json_decode($result); 在php7.4是正常的,php8.2就报错这个错误:Cannot assign stdClass to property app\api\controller\v1\Base::$user...
问题描述 这里详细描述问题 后端配置了跨域请求但是前端一直跨域 程序代码 public function process(Request|\Webman\Http\Request $request, callable $handler): Response { // 设置 CORS 相关头部 $response = $handler($request); /...
问题描述 安装think-cache后报错,php8.4 函数参数类型声明不兼容 报错信息 ErrorException: Webman\ThinkCache\CacheManager::getConfig(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used i...
问题描述 在中间件中需要将$request->rawBody()获取的数据处理后重新放入rawBody中共后续业务逻辑中 为此你搜索到了哪些方案及不适用的原因 通过$request->setPost();放入post中,但是控制器中需要全面切换到$request->post()获取新放入的参数,改造点太多,而且不符合原系统设计的请求通过raw application/json交互的初衷。...