fix(mcp): return a Response from the consent view closure

Passport::authorizationView's typed contract expects a Closure returning a
Symfony Response; use response()->view(...) so static analysis passes.
This commit is contained in:
Víctor Falcón 2026-07-17 18:03:28 +02:00
parent fb877faa0e
commit 15d70d2db9
1 changed files with 1 additions and 1 deletions

View File

@ -59,6 +59,6 @@ class AppServiceProvider extends ServiceProvider
// Render the OAuth consent screen (Claude Desktop / ChatGPT connecting
// to the MCP server) with our own on-brand Blade view.
Passport::authorizationView(fn (array $parameters) => view('mcp.authorize', $parameters));
Passport::authorizationView(fn (array $parameters) => response()->view('mcp.authorize', $parameters));
}
}