Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function handle($request, Closure $next) |
||
29 | { |
||
30 | if (! $this->config['enabled']) { |
||
31 | return $next($request); |
||
32 | } |
||
33 | |||
34 | if ($this->protectedByDemoMode($request)) { |
||
35 | if (! $this->hasDemoAccess($request)) { |
||
36 | return new RedirectResponse($this->config['redirect_unauthorized_users_to_url']); |
||
37 | } |
||
38 | } |
||
39 | |||
40 | return $next($request); |
||
41 | } |
||
42 | |||
67 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..