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() |
||
32 | |||
33 | /** |
||
34 | * Register any package services. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function register() |
||
44 | |||
45 | public function publishFiles() |
||
62 | |||
63 | /** |
||
64 | * Define the routes for the application. |
||
65 | * |
||
66 | * @param \Illuminate\Routing\Router $router |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | public function setupRoutes(Router $router) |
||
82 | } |
||
83 |
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: