1 | <?php namespace Usman\Guardian\Composers; |
||
5 | class ComposersServiceProvider extends ServiceProvider { |
||
6 | |||
7 | /** |
||
8 | * Registers the view composers after the application is booted. |
||
9 | * |
||
10 | * @return void |
||
11 | */ |
||
12 | public function boot() |
||
28 | |||
29 | /** |
||
30 | * Register the service provider. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function register() |
||
38 | |||
39 | } |
||
40 |
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: