| 1 | <?php namespace Cornford\Googlitics; |
||
| 6 | class AnalyticsServiceProvider extends ServiceProvider { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Indicates if loading of the provider is deferred. |
||
| 10 | * |
||
| 11 | * @var bool |
||
| 12 | */ |
||
| 13 | protected $defer = false; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Bootstrap the application events. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function boot() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Register the service provider. |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function register() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the services provided by the provider. |
||
| 55 | * |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | public function provides() |
||
| 62 | |||
| 63 | } |
||
| 64 |
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: