composer require topthink/think-multi-app后提示错误

浏览:2301 发布日期:2019/10/12 分类:ThinkPHP6专区
[b][/b]composer require topthink/think-multi-app后提示array_unshift() expects parameter 1 to be array, null given 在Middleware.php line 97

这个是错误的地方 @access public
@param mixed $middleware
@param string $type 中间件类型
/
public function unshift($middleware, string $type = 'route')
{
$middleware = $this->buildMiddleware($middleware, $type);

if (!empty($middleware)) {
array_unshift($this->queue[$type], $middleware);
}
}
先谢谢啦
最佳答案
评论( 相关
后面还有条评论,点击查看>>