diff --git a/modules/openapi-generator/src/main/resources/php-symfony/routing.mustache b/modules/openapi-generator/src/main/resources/php-symfony/routing.mustache index 38dd72c9c62c..57bf5984b8dc 100644 --- a/modules/openapi-generator/src/main/resources/php-symfony/routing.mustache +++ b/modules/openapi-generator/src/main/resources/php-symfony/routing.mustache @@ -17,7 +17,7 @@ {{/hasPathParams}} {{#pathParams}} {{#pattern}} - {{paramName}}: '{{pattern}}' + {{paramName}}: '{{{pattern}}}' {{/pattern}} {{^pattern}} {{#isLong}}