1 | <?php namespace Mcamara\LaravelLocalization\Middleware; |
||
6 | class LocaleCookieRedirect extends LaravelLocalizationMiddlewareBase |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * Handle an incoming request. |
||
11 | * |
||
12 | * @param \Illuminate\Http\Request $request |
||
13 | * @param \Closure $next |
||
14 | * |
||
15 | * @return mixed |
||
16 | */ |
||
17 | public function handle($request, Closure $next) { |
||
39 | } |
||
40 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: