throwable: TypeError: Cycle\ORM\Select::__construct(): Argument #2 ($role) must be of type string, null given,

发布者: 墨鱼VPN 发布时间: 2021.07.13 18:46:50

throwable: TypeError: Cycle\ORM\Select::__construct(): Argument #2 ($role) must be of type string, null given, called in  /vendor/yiisoft/factory/src/Definition/ArrayDefinitionBuilder.php on line 55 and defined in /var/www/html/merchant-api.liangyoucai.com/vendor/cycle/orm/src/Select.php:64


评论
登陆评论
墨鱼VPN 评论时间2021.07.13 22:45
public function __construct( CurrentUser $currentUser, MerchantUserRepository $userRepository, AuthRoleRepository $authRoleRepository ) { $this->currentUser = $currentUser; $this->userRepository = $userRepository; $this->authRoleRepository = $authRoleRepository; } 构造函数有三个变量,第三个repository 没有就是为NULL了,他扩展了Select ,参数什么的都没有就报错