$method is expanded, but the parameter $callback of Illuminate\Container\Container::call() does not expect variable arguments.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
21
throw new HttpResponseException(app()->call(/** @scrutinizer ignore-type */ ...$method));
It seems like app()->call($method) can also be of type callable; however, parameter $response of Illuminate\Http\Exceptio...xception::__construct() does only seem to accept Symfony\Component\HttpFoundation\Response, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
21
throw new HttpResponseException(/** @scrutinizer ignore-type */ app()->call(...$method));