1 | <?php namespace Modules\Page\Providers; |
||
9 | class PageServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | /** |
||
12 | * Indicates if loading of the provider is deferred. |
||
13 | * |
||
14 | * @var bool |
||
15 | */ |
||
16 | protected $defer = false; |
||
17 | |||
18 | /** |
||
19 | * Register the service provider. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function register() |
||
24 | { |
||
25 | $this->registerBindings(); |
||
26 | } |
||
27 | |||
28 | public function boot() |
||
33 | |||
34 | /** |
||
35 | * Get the services provided by the provider. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function provides() |
||
43 | |||
44 | private function registerBindings() |
||
59 | } |
||
60 |
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: