| 1 | <?php |
||
| 7 | class YourMembershipServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | |||
| 10 | private $packageName = 'yourmembership'; |
||
| 11 | private $packageConfigPath = __DIR__.'/config/yourmembership.php'; |
||
| 12 | /** |
||
| 13 | * Indicates if loading of the provider is deferred. |
||
| 14 | * |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | protected $defer = true; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Register the service provider. |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function register() |
||
| 35 | |||
| 36 | public function boot() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the services provided by the provider. |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function provides() |
||
| 52 | |||
| 53 | } |
||
| 54 |
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: