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