| 1 | <?php |
||
| 9 | final class Configurator implements ContainerConfigurator |
||
| 10 | { |
||
| 11 | /** @var ApplicationConfigServiceProvider */ |
||
| 12 | private $provider; |
||
| 13 | |||
| 14 | public function addConfig(ApplicationConfig $config, $prefix = 'config') |
||
| 15 | { |
||
| 16 | $this->provider = new ApplicationConfigServiceProvider($config, $prefix); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @internal |
||
| 21 | * |
||
| 22 | * @return ServiceProviderInterface |
||
|
|
|||
| 23 | */ |
||
| 24 | public function getServiceProvider() |
||
| 28 | } |
||
| 29 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.