函数参数前面的三个点表示什么?
我正在使用Laravel 5.3,在其中一个函数中,我发现了这段代码:
public function handle($request, Closure $next, ...$guards)
{
$this->authenticate($guards);
return $next($request);
}
代码来自 。\Illuminate\Auth\Middleware\Authenticate::class
变量之前的3个点是什么?$guards