| 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 | 55 | public function boot() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Register our translator |
||
| 44 | * |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | 55 | public function register() |
|
| 51 | } |
||
| 52 |
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: