Skip to content

Commit 55740de

Browse files
[DependencyInjection] Revert native return types on ExtensionInterface et al.
1 parent 204849b commit 55740de

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

Extension/ConfigurationExtensionInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ interface ConfigurationExtensionInterface
2323
{
2424
/**
2525
* Returns extension configuration.
26+
*
27+
* @return ConfigurationInterface|null
2628
*/
27-
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface;
29+
public function getConfiguration(array $config, ContainerBuilder $container);
2830
}

Extension/Extension.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ abstract class Extension implements ExtensionInterface, ConfigurationExtensionIn
2828
{
2929
private array $processedConfigs = [];
3030

31-
public function getXsdValidationBasePath(): string|false
31+
/**
32+
* @return string|false
33+
*/
34+
public function getXsdValidationBasePath()
3235
{
3336
return false;
3437
}
3538

36-
public function getNamespace(): string
39+
/**
40+
* @return string
41+
*/
42+
public function getNamespace()
3743
{
3844
return 'http://example.org/schema/dic/'.$this->getAlias();
3945
}
@@ -67,7 +73,10 @@ public function getAlias(): string
6773
return Container::underscore($classBaseName);
6874
}
6975

70-
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
76+
/**
77+
* @return ConfigurationInterface|null
78+
*/
79+
public function getConfiguration(array $config, ContainerBuilder $container)
7180
{
7281
$class = static::class;
7382

Extension/ExtensionInterface.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,24 @@ public function load(array $configs, ContainerBuilder $container);
3333

3434
/**
3535
* Returns the namespace to be used for this extension (XML namespace).
36+
*
37+
* @return string
3638
*/
37-
public function getNamespace(): string;
39+
public function getNamespace();
3840

3941
/**
4042
* Returns the base path for the XSD files.
43+
*
44+
* @return string|false
4145
*/
42-
public function getXsdValidationBasePath(): string|false;
46+
public function getXsdValidationBasePath();
4347

4448
/**
4549
* Returns the recommended alias to use in XML.
4650
*
4751
* This alias is also the mandatory prefix to use when using YAML.
52+
*
53+
* @return string
4854
*/
49-
public function getAlias(): string;
55+
public function getAlias();
5056
}

0 commit comments

Comments
 (0)