Skip to content

Commit d67e920

Browse files
committed
Add return type
1 parent 780230a commit d67e920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Lodash/Middlewares/ApiLocale.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Closure;
88
use Illuminate\Http\Request;
9+
use Symfony\Component\HttpFoundation\Response;
910

1011
use function app;
1112
use function array_keys;
@@ -16,7 +17,7 @@
1617

1718
class ApiLocale
1819
{
19-
public function handle(Request $request, Closure $next)
20+
public function handle(Request $request, Closure $next): Response
2021
{
2122
if ($request->wantsJson()) {
2223
$locales = config('lodash.locales', []);

0 commit comments

Comments
 (0)