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() |
||
27 | |||
28 | /** |
||
29 | * Register the service provider. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function register() |
||
37 | } |
||
38 |
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: