Skip to content

Commit ca1fad4

Browse files
derrabusnicolas-grekas
authored andcommitted
[DI] fix return type declarations
1 parent 9c63be4 commit ca1fad4

File tree

8 files changed

+8
-16
lines changed

8 files changed

+8
-16
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,9 +1743,7 @@ private function getKernelRootHash(ContainerBuilder $container)
17431743
}
17441744

17451745
/**
1746-
* Returns the base path for the XSD files.
1747-
*
1748-
* @return string The XSD base path
1746+
* {@inheritdoc}
17491747
*/
17501748
public function getXsdValidationBasePath()
17511749
{

src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,7 @@ public function addUserProviderFactory(UserProviderFactoryInterface $factory)
798798
}
799799

800800
/**
801-
* Returns the base path for the XSD files.
802-
*
803-
* @return string The XSD base path
801+
* {@inheritdoc}
804802
*/
805803
public function getXsdValidationBasePath()
806804
{

src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ private function normalizeBundleName($name)
255255
}
256256

257257
/**
258-
* Returns the base path for the XSD files.
259-
*
260-
* @return string The XSD base path
258+
* {@inheritdoc}
261259
*/
262260
public function getXsdValidationBasePath()
263261
{

src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function load(array $configs, ContainerBuilder $container)
6464
}
6565

6666
/**
67-
* Returns the base path for the XSD files.
68-
*
69-
* @return string The XSD base path
67+
* {@inheritdoc}
7068
*/
7169
public function getXsdValidationBasePath()
7270
{

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ public function setConfigurator($configurator)
796796
/**
797797
* Gets the configurator to call after the service is fully initialized.
798798
*
799-
* @return callable|null The PHP callable to call
799+
* @return callable|array|null
800800
*/
801801
public function getConfigurator()
802802
{

src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getNamespace();
3737
/**
3838
* Returns the base path for the XSD files.
3939
*
40-
* @return string The XSD base path
40+
* @return string|false
4141
*/
4242
public function getXsdValidationBasePath();
4343

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ private function loadFromExtensions(\DOMDocument $xml)
710710
*
711711
* @param \DOMElement $element A \DOMElement instance
712712
*
713-
* @return array A PHP array
713+
* @return mixed
714714
*/
715715
public static function convertDomElementToArray(\DOMElement $element)
716716
{

src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function resolveValue($value, array $resolving = [])
195195
* @param string $value The string to resolve
196196
* @param array $resolving An array of keys that are being resolved (used internally to detect circular references)
197197
*
198-
* @return string The resolved string
198+
* @return mixed The resolved string
199199
*
200200
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
201201
* @throws ParameterCircularReferenceException if a circular reference if detected

0 commit comments

Comments
 (0)