1 | <?php |
||
8 | class DocumentsServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Where the route file lives, both inside the package and in the app (if overwritten). |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | public $routeFilePath = '/../routes/webfactor/documents.php'; |
||
17 | |||
18 | /** |
||
19 | * Perform post-registration booting of services. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function boot() |
||
36 | |||
37 | /** |
||
38 | * Register any package services. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function register() |
||
46 | |||
47 | public function publishFiles() |
||
64 | |||
65 | /** |
||
66 | * Define the routes for the application. |
||
67 | * |
||
68 | * @param \Illuminate\Routing\Router $router |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | public function setupRoutes(Router $router) |
||
84 | } |
||
85 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: