Skip to content

Commit

Permalink
Add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
akalongman committed Apr 17, 2024
1 parent 780230a commit d67e920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lodash/Middlewares/ApiLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

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

use function app;
use function array_keys;
Expand All @@ -16,7 +17,7 @@

class ApiLocale
{
public function handle(Request $request, Closure $next)
public function handle(Request $request, Closure $next): Response
{
if ($request->wantsJson()) {
$locales = config('lodash.locales', []);
Expand Down

0 comments on commit d67e920

Please sign in to comment.