| 1 | <?php namespace Felixkiss\UniqueWithValidator; |
||
| 5 | class ServiceProvider extends BaseServiceProvider |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Bootstrap the application events. |
||
| 9 | * |
||
| 10 | * @return void |
||
| 11 | */ |
||
| 12 | public function boot() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register the service provider. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function register() |
||
| 47 | } |
||
| 48 |
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: