| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Usman\Guardian\Composers; |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | $this->app->view->composers([ |
||
|
|
|||
| 15 | 'Usman\Guardian\Composers\RoleOptionsComposer' => [ |
||
| 16 | 'guardian::partials.user.add', |
||
| 17 | 'guardian::partials.user.edit', |
||
| 18 | 'guardian::partials.user.search-form', |
||
| 19 | 'guardian::partials.capability.add', |
||
| 20 | 'guardian::partials.capability.edit' |
||
| 21 | ], |
||
| 22 | 'Usman\Guardian\Composers\CapabilityOptionsComposer' => [ |
||
| 23 | 'guardian::partials.role.add', |
||
| 24 | 'guardian::partials.role.edit' |
||
| 25 | ] |
||
| 26 | ]); |
||
| 27 | } |
||
| 28 | |||
| 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: