From d67e920ef8d4f61d253860ce801fcedeed4a87a9 Mon Sep 17 00:00:00 2001 From: Avtandil Kikabidze Date: Wed, 17 Apr 2024 12:49:01 +0400 Subject: [PATCH] Add return type --- src/Lodash/Middlewares/ApiLocale.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lodash/Middlewares/ApiLocale.php b/src/Lodash/Middlewares/ApiLocale.php index 4e05755..b2cdabb 100644 --- a/src/Lodash/Middlewares/ApiLocale.php +++ b/src/Lodash/Middlewares/ApiLocale.php @@ -6,6 +6,7 @@ use Closure; use Illuminate\Http\Request; +use Symfony\Component\HttpFoundation\Response; use function app; use function array_keys; @@ -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', []);