AsgardCms /
User
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | view()->composer( |
||
|
0 ignored issues
–
show
|
|||
| 4 | [ |
||
| 5 | 'user::admin.partials.permissions', |
||
| 6 | 'user::admin.partials.permissions-create', |
||
| 7 | ], |
||
| 8 | 'Modules\User\Composers\PermissionsViewComposer' |
||
| 9 | ); |
||
| 10 | |||
| 11 | view()->composer( |
||
| 12 | [ |
||
| 13 | 'partials.sidebar-nav', |
||
| 14 | 'partials.top-nav', |
||
| 15 | 'layouts.master', |
||
| 16 | 'partials.*' |
||
| 17 | ], |
||
| 18 | 'Modules\User\Composers\UsernameViewComposer' |
||
| 19 | ); |
||
| 20 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: