1 | <?php |
||
10 | class DemoMode |
||
11 | { |
||
12 | /** @var array */ |
||
13 | protected $config; |
||
14 | |||
15 | public function __construct(Repository $config) |
||
19 | |||
20 | /** |
||
21 | * Handle an incoming request. |
||
22 | * |
||
23 | * @param \Illuminate\Http\Request $request |
||
24 | * @param \Closure $next |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function handle($request, Closure $next) |
||
42 | |||
43 | protected function protectedByDemoMode(Request $request): bool |
||
47 | |||
48 | protected function hasDemoAccess(Request $request): bool |
||
56 | |||
57 | protected function demoRouteEnabled(): bool |
||
61 | |||
62 | protected function isIpAuthorized(Request $request): bool |
||
66 | } |
||
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..