1 | <?php |
||
12 | class RouteServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * @type \Illuminate\Foundation\Http\Kernel |
||
16 | */ |
||
17 | protected $kernel; |
||
18 | |||
19 | /** |
||
20 | * Define the routes for the application. |
||
21 | * |
||
22 | * @param Router $router |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function map(Router $router) |
||
37 | |||
38 | /** |
||
39 | * @param Router $router |
||
40 | * @param Kernel|\Illuminate\Foundation\Http\Kernel $kernel |
||
41 | */ |
||
42 | public function boot(Router $router, Kernel $kernel) |
||
53 | |||
54 | protected function getMiddleware() |
||
60 | |||
61 | /** |
||
62 | * Get module namespace |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | protected function getNamespace() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | protected function requireRoutes() |
||
78 | |||
79 | /** |
||
80 | * Register the service provider. |
||
81 | * |
||
82 | * @return void |
||
83 | */ |
||
84 | public function register() |
||
88 | } |
||
89 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.