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', []);