1 | <?php namespace Cornford\Notifier\Providers; |
||
9 | class NotifierServiceProvider extends ServiceProvider { |
||
10 | |||
11 | /** |
||
12 | * Indicates if loading of the provider is deferred. |
||
13 | * |
||
14 | * @var boolean |
||
15 | */ |
||
16 | protected $defer = false; |
||
17 | |||
18 | /** |
||
19 | * Bootstrap the application events. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function boot(\Illuminate\Routing\Router $router) |
||
37 | |||
38 | /** |
||
39 | * Register the service provider. |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | public function register() |
||
63 | |||
64 | /** |
||
65 | * Get the services provided by the provider. |
||
66 | * |
||
67 | * @return string[] |
||
68 | */ |
||
69 | public function provides() |
||
73 | |||
74 | } |
||
75 |
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: