[DI] fix return type declarations

This commit is contained in:
Alexander M. Turek 2019-08-23 22:10:22 +02:00 committed by Nicolas Grekas
parent 9c63be489e
commit ca1fad471e
8 changed files with 8 additions and 16 deletions

View File

@ -1743,9 +1743,7 @@ class FrameworkExtension extends Extension
} }
/** /**
* Returns the base path for the XSD files. * {@inheritdoc}
*
* @return string The XSD base path
*/ */
public function getXsdValidationBasePath() public function getXsdValidationBasePath()
{ {

View File

@ -798,9 +798,7 @@ class SecurityExtension extends Extension
} }
/** /**
* Returns the base path for the XSD files. * {@inheritdoc}
*
* @return string The XSD base path
*/ */
public function getXsdValidationBasePath() public function getXsdValidationBasePath()
{ {

View File

@ -255,9 +255,7 @@ class TwigExtension extends Extension
} }
/** /**
* Returns the base path for the XSD files. * {@inheritdoc}
*
* @return string The XSD base path
*/ */
public function getXsdValidationBasePath() public function getXsdValidationBasePath()
{ {

View File

@ -64,9 +64,7 @@ class WebProfilerExtension extends Extension
} }
/** /**
* Returns the base path for the XSD files. * {@inheritdoc}
*
* @return string The XSD base path
*/ */
public function getXsdValidationBasePath() public function getXsdValidationBasePath()
{ {

View File

@ -796,7 +796,7 @@ class Definition
/** /**
* Gets the configurator to call after the service is fully initialized. * 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() public function getConfigurator()
{ {

View File

@ -37,7 +37,7 @@ interface ExtensionInterface
/** /**
* Returns the base path for the XSD files. * Returns the base path for the XSD files.
* *
* @return string The XSD base path * @return string|false
*/ */
public function getXsdValidationBasePath(); public function getXsdValidationBasePath();

View File

@ -710,7 +710,7 @@ EOF
* *
* @param \DOMElement $element A \DOMElement instance * @param \DOMElement $element A \DOMElement instance
* *
* @return array A PHP array * @return mixed
*/ */
public static function convertDomElementToArray(\DOMElement $element) public static function convertDomElementToArray(\DOMElement $element)
{ {

View File

@ -195,7 +195,7 @@ class ParameterBag implements ParameterBagInterface
* @param string $value The string to resolve * @param string $value The string to resolve
* @param array $resolving An array of keys that are being resolved (used internally to detect circular references) * @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 ParameterNotFoundException if a placeholder references a parameter that does not exist
* @throws ParameterCircularReferenceException if a circular reference if detected * @throws ParameterCircularReferenceException if a circular reference if detected