1 | <?php namespace Modules\Setting\Providers; |
||
12 | class SettingServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Indicates if loading of the provider is deferred. |
||
16 | * |
||
17 | * @var bool |
||
18 | */ |
||
19 | protected $defer = false; |
||
20 | |||
21 | /** |
||
22 | * Register the service provider. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function register() |
||
39 | |||
40 | /** |
||
41 | * Get the services provided by the provider. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function provides() |
||
49 | |||
50 | private function registerBindings() |
||
66 | } |
||
67 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: