1 | <?php |
||
7 | class SquantoManagerServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | protected $defer = false; |
||
10 | |||
11 | /** |
||
12 | * @return array |
||
13 | */ |
||
14 | public function provides() |
||
18 | |||
19 | /** |
||
20 | * Bootstrap any application services. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | 62 | public function boot() |
|
36 | |||
37 | /** |
||
38 | * Register our translator |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | 62 | public function register() |
|
46 | } |
||
47 |
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: