Skip to content

Commit

Permalink
Updated CsrfCookieController to use named arguments (#487)
Browse files Browse the repository at this point in the history
Co-authored-by: Oussama Mater <oussama@buckhill.co.uk>
  • Loading branch information
OussamaMater and Oussama Mater committed Dec 14, 2023
1 parent 700ce11 commit 4fc91ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/CsrfCookieController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class CsrfCookieController
public function show(Request $request)
{
if ($request->expectsJson()) {
return new JsonResponse(null, 204);
return new JsonResponse(status: 204);
}

return new Response('', 204);
return new Response(status: 204);
}
}

0 comments on commit 4fc91ed

Please sign in to comment.