| 1 | <?php |
||
| 16 | class ServiceProvider extends LaravelServiceProvider |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Indicates if loading of the provider is deferred. |
||
| 20 | * |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | protected $defer = true; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Boot the provider. |
||
| 27 | */ |
||
| 28 | public function boot() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Register the service provider. |
||
| 35 | */ |
||
| 36 | public function register() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the services provided by the provider. |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function provides() |
||
| 52 | } |
||
| 53 |
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: