1 | <?php |
||
11 | class MaintenanceModeMiddleware |
||
12 | { |
||
13 | /** |
||
14 | * Maintenance Mode Service. |
||
15 | * |
||
16 | * @var \Rdehnhardt\MaintenanceMode\MaintenanceModeService |
||
17 | */ |
||
18 | protected $maintenance; |
||
19 | |||
20 | /** |
||
21 | * Lumen Application Instance. |
||
22 | * |
||
23 | * @var \Laravel\Lumen\Application |
||
24 | */ |
||
25 | protected $app; |
||
26 | |||
27 | /** |
||
28 | * View Factory. |
||
29 | * |
||
30 | * @var \Illuminate\View\Factory |
||
31 | */ |
||
32 | protected $view; |
||
33 | |||
34 | public function __construct(MaintenanceModeService $maintenance, Application $app) |
||
40 | |||
41 | /** |
||
42 | * Handle incoming requests. |
||
43 | * |
||
44 | * @param Request $request |
||
45 | * @param \Closure $next |
||
46 | * |
||
47 | * @return \Symfony\Component\HttpFoundation\Response |
||
48 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
||
49 | * @throws \InvalidArgumentException |
||
50 | */ |
||
51 | public function handle($request, Closure $next) |
||
63 | |||
64 | /** |
||
65 | * Get client ip |
||
66 | */ |
||
67 | private function getIp() |
||
77 | } |
||
78 |
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..