From 69169b04573b4da93a44c8254e2d0cd76e33ba1c Mon Sep 17 00:00:00 2001 From: goyt Date: Wed, 5 Jul 2017 23:41:25 +0200 Subject: [PATCH] since a path variable must be required, change back --- RouteDescriber/RouteMetadataDescriber.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RouteDescriber/RouteMetadataDescriber.php b/RouteDescriber/RouteMetadataDescriber.php index 18d3939..68fe1e6 100644 --- a/RouteDescriber/RouteMetadataDescriber.php +++ b/RouteDescriber/RouteMetadataDescriber.php @@ -33,9 +33,8 @@ final class RouteMetadataDescriber implements RouteDescriberInterface } $parameter = $operation->getParameters()->get($pathVariable, 'path'); - if (null === $parameter->getRequired()) { - $parameter->setRequired(true); - } + $parameter->setRequired(true); + if (null === $parameter->getType()) { $parameter->setType('string'); }