1 | <?php |
||
10 | class DemoMode |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $config; |
||
16 | |||
17 | public function __construct(Repository $config) |
||
21 | |||
22 | /** |
||
23 | * Handle an incoming request. |
||
24 | * |
||
25 | * @param \Illuminate\Http\Request $request |
||
26 | * @param \Closure $next |
||
27 | * |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function handle($request, Closure $next) |
||
40 | |||
41 | protected function protectedByDemoMode(Request $request) : bool |
||
45 | |||
46 | protected function hasDemoAccess(Request $request) : bool |
||
58 | } |
||
59 |
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..