From 9f853f324f1982cfb923b6404c5bf72c2018299c Mon Sep 17 00:00:00 2001 From: Douglas Greenshields Date: Fri, 8 Nov 2019 17:25:00 +0000 Subject: [PATCH] [Routing] revert the return type for UrlGeneratorInterface::generate to remove null --- .../Component/Routing/Generator/UrlGeneratorInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php b/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php index beb73324cac8..64714d354dba 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php +++ b/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php @@ -75,7 +75,7 @@ interface UrlGeneratorInterface extends RequestContextAwareInterface * @param mixed[] $parameters An array of parameters * @param int $referenceType The type of reference to be generated (one of the constants) * - * @return string|null The generated URL + * @return string The generated URL * * @throws RouteNotFoundException If the named route doesn't exist * @throws MissingMandatoryParametersException When some parameters are missing that are mandatory for the route