Skip to content

Commit

Permalink
Add Response as a return type for middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Apr 9, 2024
1 parent 885ba99 commit 920d6d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/middleware.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ namespace {{ namespace }};

use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

class {{ class }}
{
public function handle(Request $request, Closure $next)
public function handle(Request $request, Closure $next): Response
{
return $next($request);
}
Expand Down

0 comments on commit 920d6d2

Please sign in to comment.