@@ -313,7 +313,7 @@ private function doProcess(ContainerBuilder $container): void
313313
314314class EnvConfiguration implements ConfigurationInterface
315315{
316- public function getConfigTreeBuilder ()
316+ public function getConfigTreeBuilder (): TreeBuilder
317317 {
318318 $ treeBuilder = new TreeBuilder ('env_extension ' );
319319 $ treeBuilder ->getRootNode ()
@@ -376,15 +376,15 @@ public function getConfigTreeBuilder()
376376
377377class EnvConfigurationWithoutRootNode implements ConfigurationInterface
378378{
379- public function getConfigTreeBuilder ()
379+ public function getConfigTreeBuilder (): TreeBuilder
380380 {
381381 return new TreeBuilder ();
382382 }
383383}
384384
385385class ConfigurationWithArrayNodeRequiringOneElement implements ConfigurationInterface
386386{
387- public function getConfigTreeBuilder ()
387+ public function getConfigTreeBuilder (): TreeBuilder
388388 {
389389 $ treeBuilder = new TreeBuilder ('env_extension ' );
390390 $ treeBuilder ->getRootNode ()
@@ -410,12 +410,12 @@ public function __construct(ConfigurationInterface $configuration = null)
410410 $ this ->configuration = $ configuration ?? new EnvConfiguration ();
411411 }
412412
413- public function getAlias ()
413+ public function getAlias (): string
414414 {
415415 return 'env_extension ' ;
416416 }
417417
418- public function getConfiguration (array $ config , ContainerBuilder $ container )
418+ public function getConfiguration (array $ config , ContainerBuilder $ container ): ? ConfigurationInterface
419419 {
420420 return $ this ->configuration ;
421421 }
0 commit comments