Skip to content

Commit bec0a6f

Browse files
derrabusnicolas-grekas
authored andcommitted
[DI] fix return type declarations
1 parent 32f2bf5 commit bec0a6f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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
{

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

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
{

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)