1 | <?php namespace Arcanesoft\Auth\Providers; |
||
12 | class ComposerServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Main Functions |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * Register the service provider. |
||
20 | */ |
||
21 | public function register() |
||
25 | |||
26 | /** |
||
27 | * Register bindings in the container. |
||
28 | */ |
||
29 | public function boot() |
||
36 | } |
||
37 |
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: