请求响应报must be of type support\Request错误

darcy

问题描述

请求响应报错
($request) must be of type support\Request

程序代码

报错信息

TypeError: plugin\qzgapi\app\controller\NoticeController::alipayIsp(): Argument #1 ($request) must be of type support\Request, support\Request given, called in /home/wwwroot/qzgmini.com/vendor/workerman/webman-framework/src/App.php on line 336 and defined in /home/wwwroot/qzgmini.com/plugin/qzgapi/app/controller/NoticeController.php:58

截图报错信息里报错文件相关代码

操作系统及workerman/webman等框架组件具体版本

120 1 0
1个回答

lsmir2

NoticeController::alipayIsp()
返回类型不对

  • darcy 2天前

    不是返回类型问题,是请求类型有问题,把Request类型删除(也就是不给定义类型)就可以了

🔝