| 1 | <?php |
||
| 7 | class WidgetsServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Perform post-registration booting of services. |
||
| 11 | */ |
||
| 12 | public function boot() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register any package services. |
||
| 23 | */ |
||
| 24 | public function register() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Register default service. |
||
| 35 | */ |
||
| 36 | public function registerProvider() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Register dynamic resolving service. |
||
| 45 | */ |
||
| 46 | public function registerDynamicProvider() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the services provided by the provider. |
||
| 58 | * |
||
| 59 | * @return array |
||
|
|
|||
| 60 | */ |
||
| 61 | public function provides() |
||
| 65 | } |
||
| 66 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.