From bec0a6f4d9f91430b81b09dae0e0482d48b65a50 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 23 Aug 2019 22:10:22 +0200 Subject: [PATCH] [DI] fix return type declarations --- Definition.php | 2 +- Extension/ExtensionInterface.php | 2 +- Loader/XmlFileLoader.php | 2 +- ParameterBag/ParameterBag.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Definition.php b/Definition.php index 3f820c0c8..c7d204948 100644 --- a/Definition.php +++ b/Definition.php @@ -796,7 +796,7 @@ public function setConfigurator($configurator) /** * Gets the configurator to call after the service is fully initialized. * - * @return callable|null The PHP callable to call + * @return callable|array|null */ public function getConfigurator() { diff --git a/Extension/ExtensionInterface.php b/Extension/ExtensionInterface.php index 18de31272..6a7a2cf02 100644 --- a/Extension/ExtensionInterface.php +++ b/Extension/ExtensionInterface.php @@ -37,7 +37,7 @@ public function getNamespace(); /** * Returns the base path for the XSD files. * - * @return string The XSD base path + * @return string|false */ public function getXsdValidationBasePath(); diff --git a/Loader/XmlFileLoader.php b/Loader/XmlFileLoader.php index 799b60d98..c4b9b69a0 100644 --- a/Loader/XmlFileLoader.php +++ b/Loader/XmlFileLoader.php @@ -710,7 +710,7 @@ private function loadFromExtensions(\DOMDocument $xml) * * @param \DOMElement $element A \DOMElement instance * - * @return array A PHP array + * @return mixed */ public static function convertDomElementToArray(\DOMElement $element) { diff --git a/ParameterBag/ParameterBag.php b/ParameterBag/ParameterBag.php index c4e702181..e13d2824f 100644 --- a/ParameterBag/ParameterBag.php +++ b/ParameterBag/ParameterBag.php @@ -195,7 +195,7 @@ public function resolveValue($value, array $resolving = []) * @param string $value The string to resolve * @param array $resolving An array of keys that are being resolved (used internally to detect circular references) * - * @return string The resolved string + * @return mixed The resolved string * * @throws ParameterNotFoundException if a placeholder references a parameter that does not exist * @throws ParameterCircularReferenceException if a circular reference if detected